1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.expando.service;
24  
25  import com.liferay.portal.PortalException;
26  import com.liferay.portal.SystemException;
27  import com.liferay.portal.kernel.annotation.Propagation;
28  import com.liferay.portal.kernel.annotation.Transactional;
29  
30  /**
31   * <a href="ExpandoValueLocalService.java.html"><b><i>View Source</i></b></a>
32   *
33   * <p>
34   * ServiceBuilder generated this class. Modifications in this class will be
35   * overwritten the next time is generated.
36   * </p>
37   *
38   * <p>
39   * This interface defines the service. The default implementation is
40   * <code>com.liferay.portlet.expando.service.impl.ExpandoValueLocalServiceImpl</code>.
41   * Modify methods in that class and rerun ServiceBuilder to populate this class
42   * and all other generated classes.
43   * </p>
44   *
45   * <p>
46   * This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.
47   * </p>
48   *
49   * @author Brian Wing Shun Chan
50   *
51   * @see com.liferay.portlet.expando.service.ExpandoValueLocalServiceUtil
52   *
53   */
54  @Transactional(rollbackFor =  {
55      PortalException.class, SystemException.class})
56  public interface ExpandoValueLocalService {
57      public com.liferay.portlet.expando.model.ExpandoValue addExpandoValue(
58          com.liferay.portlet.expando.model.ExpandoValue expandoValue)
59          throws com.liferay.portal.SystemException;
60  
61      public com.liferay.portlet.expando.model.ExpandoValue createExpandoValue(
62          long valueId);
63  
64      public void deleteExpandoValue(long valueId)
65          throws com.liferay.portal.SystemException,
66              com.liferay.portal.PortalException;
67  
68      public void deleteExpandoValue(
69          com.liferay.portlet.expando.model.ExpandoValue expandoValue)
70          throws com.liferay.portal.SystemException;
71  
72      public java.util.List<Object> dynamicQuery(
73          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
74          throws com.liferay.portal.SystemException;
75  
76      public java.util.List<Object> dynamicQuery(
77          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
78          int end) throws com.liferay.portal.SystemException;
79  
80      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
81      public com.liferay.portlet.expando.model.ExpandoValue getExpandoValue(
82          long valueId)
83          throws com.liferay.portal.SystemException,
84              com.liferay.portal.PortalException;
85  
86      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
87      public java.util.List<com.liferay.portlet.expando.model.ExpandoValue> getExpandoValues(
88          int start, int end) throws com.liferay.portal.SystemException;
89  
90      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
91      public int getExpandoValuesCount()
92          throws com.liferay.portal.SystemException;
93  
94      public com.liferay.portlet.expando.model.ExpandoValue updateExpandoValue(
95          com.liferay.portlet.expando.model.ExpandoValue expandoValue)
96          throws com.liferay.portal.SystemException;
97  
98      public com.liferay.portlet.expando.model.ExpandoValue addValue(
99          java.lang.String className, java.lang.String tableName,
100         java.lang.String columnName, long classPK, boolean data)
101         throws com.liferay.portal.PortalException,
102             com.liferay.portal.SystemException;
103 
104     public com.liferay.portlet.expando.model.ExpandoValue addValue(
105         java.lang.String className, java.lang.String tableName,
106         java.lang.String columnName, long classPK, boolean[] data)
107         throws com.liferay.portal.PortalException,
108             com.liferay.portal.SystemException;
109 
110     public com.liferay.portlet.expando.model.ExpandoValue addValue(
111         java.lang.String className, java.lang.String tableName,
112         java.lang.String columnName, long classPK, java.util.Date data)
113         throws com.liferay.portal.PortalException,
114             com.liferay.portal.SystemException;
115 
116     public com.liferay.portlet.expando.model.ExpandoValue addValue(
117         java.lang.String className, java.lang.String tableName,
118         java.lang.String columnName, long classPK, java.util.Date[] data)
119         throws com.liferay.portal.PortalException,
120             com.liferay.portal.SystemException;
121 
122     public com.liferay.portlet.expando.model.ExpandoValue addValue(
123         java.lang.String className, java.lang.String tableName,
124         java.lang.String columnName, long classPK, double data)
125         throws com.liferay.portal.PortalException,
126             com.liferay.portal.SystemException;
127 
128     public com.liferay.portlet.expando.model.ExpandoValue addValue(
129         java.lang.String className, java.lang.String tableName,
130         java.lang.String columnName, long classPK, double[] data)
131         throws com.liferay.portal.PortalException,
132             com.liferay.portal.SystemException;
133 
134     public com.liferay.portlet.expando.model.ExpandoValue addValue(
135         java.lang.String className, java.lang.String tableName,
136         java.lang.String columnName, long classPK, float data)
137         throws com.liferay.portal.PortalException,
138             com.liferay.portal.SystemException;
139 
140     public com.liferay.portlet.expando.model.ExpandoValue addValue(
141         java.lang.String className, java.lang.String tableName,
142         java.lang.String columnName, long classPK, float[] data)
143         throws com.liferay.portal.PortalException,
144             com.liferay.portal.SystemException;
145 
146     public com.liferay.portlet.expando.model.ExpandoValue addValue(
147         java.lang.String className, java.lang.String tableName,
148         java.lang.String columnName, long classPK, int data)
149         throws com.liferay.portal.PortalException,
150             com.liferay.portal.SystemException;
151 
152     public com.liferay.portlet.expando.model.ExpandoValue addValue(
153         java.lang.String className, java.lang.String tableName,
154         java.lang.String columnName, long classPK, int[] data)
155         throws com.liferay.portal.PortalException,
156             com.liferay.portal.SystemException;
157 
158     public com.liferay.portlet.expando.model.ExpandoValue addValue(
159         java.lang.String className, java.lang.String tableName,
160         java.lang.String columnName, long classPK, long data)
161         throws com.liferay.portal.PortalException,
162             com.liferay.portal.SystemException;
163 
164     public com.liferay.portlet.expando.model.ExpandoValue addValue(
165         java.lang.String className, java.lang.String tableName,
166         java.lang.String columnName, long classPK, long[] data)
167         throws com.liferay.portal.PortalException,
168             com.liferay.portal.SystemException;
169 
170     public com.liferay.portlet.expando.model.ExpandoValue addValue(
171         java.lang.String className, java.lang.String tableName,
172         java.lang.String columnName, long classPK, short data)
173         throws com.liferay.portal.PortalException,
174             com.liferay.portal.SystemException;
175 
176     public com.liferay.portlet.expando.model.ExpandoValue addValue(
177         java.lang.String className, java.lang.String tableName,
178         java.lang.String columnName, long classPK, short[] data)
179         throws com.liferay.portal.PortalException,
180             com.liferay.portal.SystemException;
181 
182     public com.liferay.portlet.expando.model.ExpandoValue addValue(
183         java.lang.String className, java.lang.String tableName,
184         java.lang.String columnName, long classPK, java.lang.String data)
185         throws com.liferay.portal.PortalException,
186             com.liferay.portal.SystemException;
187 
188     public com.liferay.portlet.expando.model.ExpandoValue addValue(
189         java.lang.String className, java.lang.String tableName,
190         java.lang.String columnName, long classPK, java.lang.String[] data)
191         throws com.liferay.portal.PortalException,
192             com.liferay.portal.SystemException;
193 
194     public com.liferay.portlet.expando.model.ExpandoValue addValue(
195         java.lang.String className, java.lang.String tableName,
196         java.lang.String columnName, long classPK, java.lang.Object data)
197         throws com.liferay.portal.PortalException,
198             com.liferay.portal.SystemException;
199 
200     public com.liferay.portlet.expando.model.ExpandoValue addValue(
201         long classNameId, long tableId, long columnId, long classPK,
202         java.lang.String data) throws com.liferay.portal.SystemException;
203 
204     public void deleteColumnValues(long columnId)
205         throws com.liferay.portal.SystemException;
206 
207     public void deleteRowValues(long rowId)
208         throws com.liferay.portal.SystemException;
209 
210     public void deleteTableValues(long tableId)
211         throws com.liferay.portal.SystemException;
212 
213     public void deleteValue(long valueId)
214         throws com.liferay.portal.PortalException,
215             com.liferay.portal.SystemException;
216 
217     public void deleteValue(long columnId, long rowId)
218         throws com.liferay.portal.PortalException,
219             com.liferay.portal.SystemException;
220 
221     public void deleteValue(java.lang.String className,
222         java.lang.String tableName, java.lang.String columnName, long classPK)
223         throws com.liferay.portal.PortalException,
224             com.liferay.portal.SystemException;
225 
226     public void deleteValue(long classNameId, java.lang.String tableName,
227         java.lang.String columnName, long classPK)
228         throws com.liferay.portal.PortalException,
229             com.liferay.portal.SystemException;
230 
231     public void deleteValues(java.lang.String className, long classPK)
232         throws com.liferay.portal.SystemException;
233 
234     public void deleteValues(long classNameId, long classPK)
235         throws com.liferay.portal.SystemException;
236 
237     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
238     public java.util.List<com.liferay.portlet.expando.model.ExpandoValue> getColumnValues(
239         long columnId, int start, int end)
240         throws com.liferay.portal.SystemException;
241 
242     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
243     public java.util.List<com.liferay.portlet.expando.model.ExpandoValue> getColumnValues(
244         java.lang.String className, java.lang.String tableName,
245         java.lang.String columnName, int start, int end)
246         throws com.liferay.portal.SystemException;
247 
248     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
249     public java.util.List<com.liferay.portlet.expando.model.ExpandoValue> getColumnValues(
250         long classNameId, java.lang.String tableName,
251         java.lang.String columnName, int start, int end)
252         throws com.liferay.portal.SystemException;
253 
254     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
255     public java.util.List<com.liferay.portlet.expando.model.ExpandoValue> getColumnValues(
256         java.lang.String className, java.lang.String tableName,
257         java.lang.String columnName, java.lang.String data, int start, int end)
258         throws com.liferay.portal.SystemException;
259 
260     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
261     public java.util.List<com.liferay.portlet.expando.model.ExpandoValue> getColumnValues(
262         long classNameId, java.lang.String tableName,
263         java.lang.String columnName, java.lang.String data, int start, int end)
264         throws com.liferay.portal.SystemException;
265 
266     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
267     public int getColumnValuesCount(long columnId)
268         throws com.liferay.portal.SystemException;
269 
270     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
271     public int getColumnValuesCount(java.lang.String className,
272         java.lang.String tableName, java.lang.String columnName)
273         throws com.liferay.portal.SystemException;
274 
275     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
276     public int getColumnValuesCount(long classNameId,
277         java.lang.String tableName, java.lang.String columnName)
278         throws com.liferay.portal.SystemException;
279 
280     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
281     public int getColumnValuesCount(java.lang.String className,
282         java.lang.String tableName, java.lang.String columnName,
283         java.lang.String data) throws com.liferay.portal.SystemException;
284 
285     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
286     public int getColumnValuesCount(long classNameId,
287         java.lang.String tableName, java.lang.String columnName,
288         java.lang.String data) throws com.liferay.portal.SystemException;
289 
290     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
291     public boolean getData(java.lang.String className,
292         java.lang.String tableName, java.lang.String columnName, long classPK,
293         boolean defaultData)
294         throws com.liferay.portal.PortalException,
295             com.liferay.portal.SystemException;
296 
297     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
298     public boolean[] getData(java.lang.String className,
299         java.lang.String tableName, java.lang.String columnName, long classPK,
300         boolean[] defaultData)
301         throws com.liferay.portal.PortalException,
302             com.liferay.portal.SystemException;
303 
304     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
305     public java.util.Date getData(java.lang.String className,
306         java.lang.String tableName, java.lang.String columnName, long classPK,
307         java.util.Date defaultData)
308         throws com.liferay.portal.PortalException,
309             com.liferay.portal.SystemException;
310 
311     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
312     public java.util.Date[] getData(java.lang.String className,
313         java.lang.String tableName, java.lang.String columnName, long classPK,
314         java.util.Date[] defaultData)
315         throws com.liferay.portal.PortalException,
316             com.liferay.portal.SystemException;
317 
318     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
319     public double getData(java.lang.String className,
320         java.lang.String tableName, java.lang.String columnName, long classPK,
321         double defaultData)
322         throws com.liferay.portal.PortalException,
323             com.liferay.portal.SystemException;
324 
325     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
326     public double[] getData(java.lang.String className,
327         java.lang.String tableName, java.lang.String columnName, long classPK,
328         double[] defaultData)
329         throws com.liferay.portal.PortalException,
330             com.liferay.portal.SystemException;
331 
332     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
333     public float getData(java.lang.String className,
334         java.lang.String tableName, java.lang.String columnName, long classPK,
335         float defaultData)
336         throws com.liferay.portal.PortalException,
337             com.liferay.portal.SystemException;
338 
339     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
340     public float[] getData(java.lang.String className,
341         java.lang.String tableName, java.lang.String columnName, long classPK,
342         float[] defaultData)
343         throws com.liferay.portal.PortalException,
344             com.liferay.portal.SystemException;
345 
346     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
347     public int getData(java.lang.String className, java.lang.String tableName,
348         java.lang.String columnName, long classPK, int defaultData)
349         throws com.liferay.portal.PortalException,
350             com.liferay.portal.SystemException;
351 
352     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
353     public int[] getData(java.lang.String className,
354         java.lang.String tableName, java.lang.String columnName, long classPK,
355         int[] defaultData)
356         throws com.liferay.portal.PortalException,
357             com.liferay.portal.SystemException;
358 
359     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
360     public long getData(java.lang.String className, java.lang.String tableName,
361         java.lang.String columnName, long classPK, long defaultData)
362         throws com.liferay.portal.PortalException,
363             com.liferay.portal.SystemException;
364 
365     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
366     public long[] getData(java.lang.String className,
367         java.lang.String tableName, java.lang.String columnName, long classPK,
368         long[] defaultData)
369         throws com.liferay.portal.PortalException,
370             com.liferay.portal.SystemException;
371 
372     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
373     public short getData(java.lang.String className,
374         java.lang.String tableName, java.lang.String columnName, long classPK,
375         short defaultData)
376         throws com.liferay.portal.PortalException,
377             com.liferay.portal.SystemException;
378 
379     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
380     public short[] getData(java.lang.String className,
381         java.lang.String tableName, java.lang.String columnName, long classPK,
382         short[] defaultData)
383         throws com.liferay.portal.PortalException,
384             com.liferay.portal.SystemException;
385 
386     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
387     public java.lang.String getData(java.lang.String className,
388         java.lang.String tableName, java.lang.String columnName, long classPK,
389         java.lang.String defaultData)
390         throws com.liferay.portal.PortalException,
391             com.liferay.portal.SystemException;
392 
393     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
394     public java.lang.String[] getData(java.lang.String className,
395         java.lang.String tableName, java.lang.String columnName, long classPK,
396         java.lang.String[] defaultData)
397         throws com.liferay.portal.PortalException,
398             com.liferay.portal.SystemException;
399 
400     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
401     public java.io.Serializable getData(java.lang.String className,
402         java.lang.String tableName, java.lang.String columnName, long classPK)
403         throws com.liferay.portal.PortalException,
404             com.liferay.portal.SystemException;
405 
406     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
407     public java.util.List<com.liferay.portlet.expando.model.ExpandoValue> getDefaultTableColumnValues(
408         java.lang.String className, java.lang.String columnName, int start,
409         int end) throws com.liferay.portal.SystemException;
410 
411     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
412     public java.util.List<com.liferay.portlet.expando.model.ExpandoValue> getDefaultTableColumnValues(
413         long classNameId, java.lang.String columnName, int start, int end)
414         throws com.liferay.portal.SystemException;
415 
416     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
417     public int getDefaultTableColumnValuesCount(java.lang.String className,
418         java.lang.String columnName) throws com.liferay.portal.SystemException;
419 
420     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
421     public int getDefaultTableColumnValuesCount(long classNameId,
422         java.lang.String columnName) throws com.liferay.portal.SystemException;
423 
424     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
425     public java.util.List<com.liferay.portlet.expando.model.ExpandoValue> getRowValues(
426         long rowId) throws com.liferay.portal.SystemException;
427 
428     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
429     public java.util.List<com.liferay.portlet.expando.model.ExpandoValue> getRowValues(
430         long rowId, int start, int end)
431         throws com.liferay.portal.SystemException;
432 
433     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
434     public java.util.List<com.liferay.portlet.expando.model.ExpandoValue> getRowValues(
435         java.lang.String className, java.lang.String tableName, long classPK,
436         int start, int end) throws com.liferay.portal.SystemException;
437 
438     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
439     public java.util.List<com.liferay.portlet.expando.model.ExpandoValue> getRowValues(
440         long classNameId, java.lang.String tableName, long classPK, int start,
441         int end) throws com.liferay.portal.SystemException;
442 
443     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
444     public int getRowValuesCount(long rowId)
445         throws com.liferay.portal.SystemException;
446 
447     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
448     public int getRowValuesCount(java.lang.String className,
449         java.lang.String tableName, long classPK)
450         throws com.liferay.portal.SystemException;
451 
452     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
453     public int getRowValuesCount(long classNameId, java.lang.String tableName,
454         long classPK) throws com.liferay.portal.SystemException;
455 
456     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
457     public com.liferay.portlet.expando.model.ExpandoValue getValue(long valueId)
458         throws com.liferay.portal.PortalException,
459             com.liferay.portal.SystemException;
460 
461     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
462     public com.liferay.portlet.expando.model.ExpandoValue getValue(
463         long columnId, long rowId)
464         throws com.liferay.portal.PortalException,
465             com.liferay.portal.SystemException;
466 
467     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
468     public com.liferay.portlet.expando.model.ExpandoValue getValue(
469         java.lang.String className, java.lang.String tableName,
470         java.lang.String columnName, long classPK)
471         throws com.liferay.portal.SystemException;
472 
473     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
474     public com.liferay.portlet.expando.model.ExpandoValue getValue(
475         long classNameId, java.lang.String tableName,
476         java.lang.String columnName, long classPK)
477         throws com.liferay.portal.SystemException;
478 }