1   /**
2    * Copyright (c) 2000-2008 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         long classNameId, long tableId, long columnId, long classPK,
196         java.lang.String data) throws com.liferay.portal.SystemException;
197 
198     public void deleteColumnValues(long columnId)
199         throws com.liferay.portal.SystemException;
200 
201     public void deleteRowValues(long rowId)
202         throws com.liferay.portal.SystemException;
203 
204     public void deleteTableValues(long tableId)
205         throws com.liferay.portal.SystemException;
206 
207     public void deleteValue(long valueId)
208         throws com.liferay.portal.PortalException,
209             com.liferay.portal.SystemException;
210 
211     public void deleteValue(long columnId, long rowId)
212         throws com.liferay.portal.PortalException,
213             com.liferay.portal.SystemException;
214 
215     public void deleteValue(java.lang.String className,
216         java.lang.String tableName, java.lang.String columnName, long classPK)
217         throws com.liferay.portal.PortalException,
218             com.liferay.portal.SystemException;
219 
220     public void deleteValue(long classNameId, java.lang.String tableName,
221         java.lang.String columnName, long classPK)
222         throws com.liferay.portal.PortalException,
223             com.liferay.portal.SystemException;
224 
225     public void deleteValues(java.lang.String className, long classPK)
226         throws com.liferay.portal.SystemException;
227 
228     public void deleteValues(long classNameId, long classPK)
229         throws com.liferay.portal.SystemException;
230 
231     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
232     public java.util.List<com.liferay.portlet.expando.model.ExpandoValue> getColumnValues(
233         long columnId, int start, int end)
234         throws com.liferay.portal.SystemException;
235 
236     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
237     public java.util.List<com.liferay.portlet.expando.model.ExpandoValue> getColumnValues(
238         java.lang.String className, java.lang.String tableName,
239         java.lang.String columnName, 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         long classNameId, 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         java.lang.String className, java.lang.String tableName,
251         java.lang.String columnName, java.lang.String data, 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         long classNameId, 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 int getColumnValuesCount(long columnId)
262         throws com.liferay.portal.SystemException;
263 
264     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
265     public int getColumnValuesCount(java.lang.String className,
266         java.lang.String tableName, java.lang.String columnName)
267         throws com.liferay.portal.SystemException;
268 
269     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
270     public int getColumnValuesCount(long classNameId,
271         java.lang.String tableName, java.lang.String columnName)
272         throws com.liferay.portal.SystemException;
273 
274     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
275     public int getColumnValuesCount(java.lang.String className,
276         java.lang.String tableName, java.lang.String columnName,
277         java.lang.String data) throws com.liferay.portal.SystemException;
278 
279     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
280     public int getColumnValuesCount(long classNameId,
281         java.lang.String tableName, java.lang.String columnName,
282         java.lang.String data) throws com.liferay.portal.SystemException;
283 
284     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
285     public boolean getData(java.lang.String className,
286         java.lang.String tableName, java.lang.String columnName, long classPK,
287         boolean defaultData)
288         throws com.liferay.portal.PortalException,
289             com.liferay.portal.SystemException;
290 
291     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
292     public boolean[] getData(java.lang.String className,
293         java.lang.String tableName, java.lang.String columnName, long classPK,
294         boolean[] defaultData)
295         throws com.liferay.portal.PortalException,
296             com.liferay.portal.SystemException;
297 
298     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
299     public java.util.Date getData(java.lang.String className,
300         java.lang.String tableName, java.lang.String columnName, long classPK,
301         java.util.Date defaultData)
302         throws com.liferay.portal.PortalException,
303             com.liferay.portal.SystemException;
304 
305     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
306     public java.util.Date[] getData(java.lang.String className,
307         java.lang.String tableName, java.lang.String columnName, long classPK,
308         java.util.Date[] defaultData)
309         throws com.liferay.portal.PortalException,
310             com.liferay.portal.SystemException;
311 
312     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
313     public double getData(java.lang.String className,
314         java.lang.String tableName, java.lang.String columnName, long classPK,
315         double defaultData)
316         throws com.liferay.portal.PortalException,
317             com.liferay.portal.SystemException;
318 
319     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
320     public double[] getData(java.lang.String className,
321         java.lang.String tableName, java.lang.String columnName, long classPK,
322         double[] defaultData)
323         throws com.liferay.portal.PortalException,
324             com.liferay.portal.SystemException;
325 
326     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
327     public float getData(java.lang.String className,
328         java.lang.String tableName, java.lang.String columnName, long classPK,
329         float defaultData)
330         throws com.liferay.portal.PortalException,
331             com.liferay.portal.SystemException;
332 
333     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
334     public float[] getData(java.lang.String className,
335         java.lang.String tableName, java.lang.String columnName, long classPK,
336         float[] defaultData)
337         throws com.liferay.portal.PortalException,
338             com.liferay.portal.SystemException;
339 
340     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
341     public int getData(java.lang.String className, java.lang.String tableName,
342         java.lang.String columnName, long classPK, int 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,
348         java.lang.String tableName, java.lang.String columnName, long classPK,
349         int[] defaultData)
350         throws com.liferay.portal.PortalException,
351             com.liferay.portal.SystemException;
352 
353     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
354     public long getData(java.lang.String className, java.lang.String tableName,
355         java.lang.String columnName, long classPK, long 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,
361         java.lang.String tableName, java.lang.String columnName, long classPK,
362         long[] defaultData)
363         throws com.liferay.portal.PortalException,
364             com.liferay.portal.SystemException;
365 
366     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
367     public short getData(java.lang.String className,
368         java.lang.String tableName, java.lang.String columnName, long classPK,
369         short defaultData)
370         throws com.liferay.portal.PortalException,
371             com.liferay.portal.SystemException;
372 
373     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
374     public short[] getData(java.lang.String className,
375         java.lang.String tableName, java.lang.String columnName, long classPK,
376         short[] defaultData)
377         throws com.liferay.portal.PortalException,
378             com.liferay.portal.SystemException;
379 
380     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
381     public java.lang.String getData(java.lang.String className,
382         java.lang.String tableName, java.lang.String columnName, long classPK,
383         java.lang.String defaultData)
384         throws com.liferay.portal.PortalException,
385             com.liferay.portal.SystemException;
386 
387     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
388     public java.lang.String[] getData(java.lang.String className,
389         java.lang.String tableName, java.lang.String columnName, long classPK,
390         java.lang.String[] defaultData)
391         throws com.liferay.portal.PortalException,
392             com.liferay.portal.SystemException;
393 
394     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
395     public java.util.List<com.liferay.portlet.expando.model.ExpandoValue> getDefaultTableColumnValues(
396         java.lang.String className, java.lang.String columnName, int start,
397         int end) throws com.liferay.portal.SystemException;
398 
399     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
400     public java.util.List<com.liferay.portlet.expando.model.ExpandoValue> getDefaultTableColumnValues(
401         long classNameId, java.lang.String columnName, int start, int end)
402         throws com.liferay.portal.SystemException;
403 
404     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
405     public int getDefaultTableColumnValuesCount(java.lang.String className,
406         java.lang.String columnName) throws com.liferay.portal.SystemException;
407 
408     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
409     public int getDefaultTableColumnValuesCount(long classNameId,
410         java.lang.String columnName) throws com.liferay.portal.SystemException;
411 
412     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
413     public java.util.List<com.liferay.portlet.expando.model.ExpandoValue> getRowValues(
414         long rowId) throws com.liferay.portal.SystemException;
415 
416     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
417     public java.util.List<com.liferay.portlet.expando.model.ExpandoValue> getRowValues(
418         long rowId, int start, int end)
419         throws com.liferay.portal.SystemException;
420 
421     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
422     public java.util.List<com.liferay.portlet.expando.model.ExpandoValue> getRowValues(
423         java.lang.String className, java.lang.String tableName, long classPK,
424         int start, int end) throws com.liferay.portal.SystemException;
425 
426     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
427     public java.util.List<com.liferay.portlet.expando.model.ExpandoValue> getRowValues(
428         long classNameId, java.lang.String tableName, long classPK, int start,
429         int end) throws com.liferay.portal.SystemException;
430 
431     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
432     public int getRowValuesCount(long rowId)
433         throws com.liferay.portal.SystemException;
434 
435     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
436     public int getRowValuesCount(java.lang.String className,
437         java.lang.String tableName, long classPK)
438         throws com.liferay.portal.SystemException;
439 
440     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
441     public int getRowValuesCount(long classNameId, java.lang.String tableName,
442         long classPK) throws com.liferay.portal.SystemException;
443 
444     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
445     public com.liferay.portlet.expando.model.ExpandoValue getValue(long valueId)
446         throws com.liferay.portal.PortalException,
447             com.liferay.portal.SystemException;
448 
449     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
450     public com.liferay.portlet.expando.model.ExpandoValue getValue(
451         long columnId, long rowId)
452         throws com.liferay.portal.PortalException,
453             com.liferay.portal.SystemException;
454 
455     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
456     public com.liferay.portlet.expando.model.ExpandoValue getValue(
457         java.lang.String className, java.lang.String tableName,
458         java.lang.String columnName, long classPK)
459         throws com.liferay.portal.SystemException;
460 
461     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
462     public com.liferay.portlet.expando.model.ExpandoValue getValue(
463         long classNameId, java.lang.String tableName,
464         java.lang.String columnName, long classPK)
465         throws com.liferay.portal.SystemException;
466 }