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