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.persistence;
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  import com.liferay.portal.service.persistence.BasePersistence;
30  
31  /**
32   * <a href="ExpandoValuePersistence.java.html"><b><i>View Source</i></b></a>
33   *
34   * @author Brian Wing Shun Chan
35   *
36   */
37  @Transactional(rollbackFor =  {
38      PortalException.class, SystemException.class})
39  public interface ExpandoValuePersistence extends BasePersistence {
40      public com.liferay.portlet.expando.model.ExpandoValue create(long valueId);
41  
42      public com.liferay.portlet.expando.model.ExpandoValue remove(long valueId)
43          throws com.liferay.portal.SystemException,
44              com.liferay.portlet.expando.NoSuchValueException;
45  
46      public com.liferay.portlet.expando.model.ExpandoValue remove(
47          com.liferay.portlet.expando.model.ExpandoValue expandoValue)
48          throws com.liferay.portal.SystemException;
49  
50      /**
51       * @deprecated Use <code>update(ExpandoValue expandoValue, boolean merge)</code>.
52       */
53      public com.liferay.portlet.expando.model.ExpandoValue update(
54          com.liferay.portlet.expando.model.ExpandoValue expandoValue)
55          throws com.liferay.portal.SystemException;
56  
57      /**
58       * Add, update, or merge, the entity. This method also calls the model
59       * listeners to trigger the proper events associated with adding, deleting,
60       * or updating an entity.
61       *
62       * @param        expandoValue the entity to add, update, or merge
63       * @param        merge boolean value for whether to merge the entity. The
64       *                default value is false. Setting merge to true is more
65       *                expensive and should only be true when expandoValue is
66       *                transient. See LEP-5473 for a detailed discussion of this
67       *                method.
68       * @return        true if the portlet can be displayed via Ajax
69       */
70      public com.liferay.portlet.expando.model.ExpandoValue update(
71          com.liferay.portlet.expando.model.ExpandoValue expandoValue,
72          boolean merge) throws com.liferay.portal.SystemException;
73  
74      public com.liferay.portlet.expando.model.ExpandoValue updateImpl(
75          com.liferay.portlet.expando.model.ExpandoValue expandoValue,
76          boolean merge) throws com.liferay.portal.SystemException;
77  
78      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
79      public com.liferay.portlet.expando.model.ExpandoValue findByPrimaryKey(
80          long valueId)
81          throws com.liferay.portal.SystemException,
82              com.liferay.portlet.expando.NoSuchValueException;
83  
84      public com.liferay.portlet.expando.model.ExpandoValue fetchByPrimaryKey(
85          long valueId) throws com.liferay.portal.SystemException;
86  
87      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
88      public java.util.List<com.liferay.portlet.expando.model.ExpandoValue> findByTableId(
89          long tableId) throws com.liferay.portal.SystemException;
90  
91      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
92      public java.util.List<com.liferay.portlet.expando.model.ExpandoValue> findByTableId(
93          long tableId, int start, int end)
94          throws com.liferay.portal.SystemException;
95  
96      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
97      public java.util.List<com.liferay.portlet.expando.model.ExpandoValue> findByTableId(
98          long tableId, int start, int end,
99          com.liferay.portal.kernel.util.OrderByComparator obc)
100         throws com.liferay.portal.SystemException;
101 
102     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
103     public com.liferay.portlet.expando.model.ExpandoValue findByTableId_First(
104         long tableId, com.liferay.portal.kernel.util.OrderByComparator obc)
105         throws com.liferay.portal.SystemException,
106             com.liferay.portlet.expando.NoSuchValueException;
107 
108     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
109     public com.liferay.portlet.expando.model.ExpandoValue findByTableId_Last(
110         long tableId, com.liferay.portal.kernel.util.OrderByComparator obc)
111         throws com.liferay.portal.SystemException,
112             com.liferay.portlet.expando.NoSuchValueException;
113 
114     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
115     public com.liferay.portlet.expando.model.ExpandoValue[] findByTableId_PrevAndNext(
116         long valueId, long tableId,
117         com.liferay.portal.kernel.util.OrderByComparator obc)
118         throws com.liferay.portal.SystemException,
119             com.liferay.portlet.expando.NoSuchValueException;
120 
121     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
122     public java.util.List<com.liferay.portlet.expando.model.ExpandoValue> findByColumnId(
123         long columnId) throws com.liferay.portal.SystemException;
124 
125     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
126     public java.util.List<com.liferay.portlet.expando.model.ExpandoValue> findByColumnId(
127         long columnId, int start, int end)
128         throws com.liferay.portal.SystemException;
129 
130     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
131     public java.util.List<com.liferay.portlet.expando.model.ExpandoValue> findByColumnId(
132         long columnId, int start, int end,
133         com.liferay.portal.kernel.util.OrderByComparator obc)
134         throws com.liferay.portal.SystemException;
135 
136     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
137     public com.liferay.portlet.expando.model.ExpandoValue findByColumnId_First(
138         long columnId, com.liferay.portal.kernel.util.OrderByComparator obc)
139         throws com.liferay.portal.SystemException,
140             com.liferay.portlet.expando.NoSuchValueException;
141 
142     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
143     public com.liferay.portlet.expando.model.ExpandoValue findByColumnId_Last(
144         long columnId, com.liferay.portal.kernel.util.OrderByComparator obc)
145         throws com.liferay.portal.SystemException,
146             com.liferay.portlet.expando.NoSuchValueException;
147 
148     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
149     public com.liferay.portlet.expando.model.ExpandoValue[] findByColumnId_PrevAndNext(
150         long valueId, long columnId,
151         com.liferay.portal.kernel.util.OrderByComparator obc)
152         throws com.liferay.portal.SystemException,
153             com.liferay.portlet.expando.NoSuchValueException;
154 
155     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
156     public java.util.List<com.liferay.portlet.expando.model.ExpandoValue> findByRowId(
157         long rowId) throws com.liferay.portal.SystemException;
158 
159     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
160     public java.util.List<com.liferay.portlet.expando.model.ExpandoValue> findByRowId(
161         long rowId, int start, int end)
162         throws com.liferay.portal.SystemException;
163 
164     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
165     public java.util.List<com.liferay.portlet.expando.model.ExpandoValue> findByRowId(
166         long rowId, int start, int end,
167         com.liferay.portal.kernel.util.OrderByComparator obc)
168         throws com.liferay.portal.SystemException;
169 
170     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
171     public com.liferay.portlet.expando.model.ExpandoValue findByRowId_First(
172         long rowId, com.liferay.portal.kernel.util.OrderByComparator obc)
173         throws com.liferay.portal.SystemException,
174             com.liferay.portlet.expando.NoSuchValueException;
175 
176     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
177     public com.liferay.portlet.expando.model.ExpandoValue findByRowId_Last(
178         long rowId, com.liferay.portal.kernel.util.OrderByComparator obc)
179         throws com.liferay.portal.SystemException,
180             com.liferay.portlet.expando.NoSuchValueException;
181 
182     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
183     public com.liferay.portlet.expando.model.ExpandoValue[] findByRowId_PrevAndNext(
184         long valueId, long rowId,
185         com.liferay.portal.kernel.util.OrderByComparator obc)
186         throws com.liferay.portal.SystemException,
187             com.liferay.portlet.expando.NoSuchValueException;
188 
189     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
190     public java.util.List<com.liferay.portlet.expando.model.ExpandoValue> findByT_R(
191         long tableId, long rowId) throws com.liferay.portal.SystemException;
192 
193     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
194     public java.util.List<com.liferay.portlet.expando.model.ExpandoValue> findByT_R(
195         long tableId, long rowId, int start, int end)
196         throws com.liferay.portal.SystemException;
197 
198     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
199     public java.util.List<com.liferay.portlet.expando.model.ExpandoValue> findByT_R(
200         long tableId, long rowId, int start, int end,
201         com.liferay.portal.kernel.util.OrderByComparator obc)
202         throws com.liferay.portal.SystemException;
203 
204     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
205     public com.liferay.portlet.expando.model.ExpandoValue findByT_R_First(
206         long tableId, long rowId,
207         com.liferay.portal.kernel.util.OrderByComparator obc)
208         throws com.liferay.portal.SystemException,
209             com.liferay.portlet.expando.NoSuchValueException;
210 
211     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
212     public com.liferay.portlet.expando.model.ExpandoValue findByT_R_Last(
213         long tableId, long rowId,
214         com.liferay.portal.kernel.util.OrderByComparator obc)
215         throws com.liferay.portal.SystemException,
216             com.liferay.portlet.expando.NoSuchValueException;
217 
218     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
219     public com.liferay.portlet.expando.model.ExpandoValue[] findByT_R_PrevAndNext(
220         long valueId, long tableId, long rowId,
221         com.liferay.portal.kernel.util.OrderByComparator obc)
222         throws com.liferay.portal.SystemException,
223             com.liferay.portlet.expando.NoSuchValueException;
224 
225     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
226     public com.liferay.portlet.expando.model.ExpandoValue findByC_R(
227         long columnId, long rowId)
228         throws com.liferay.portal.SystemException,
229             com.liferay.portlet.expando.NoSuchValueException;
230 
231     public com.liferay.portlet.expando.model.ExpandoValue fetchByC_R(
232         long columnId, long rowId) throws com.liferay.portal.SystemException;
233 
234     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
235     public java.util.List<com.liferay.portlet.expando.model.ExpandoValue> findByC_C(
236         long classNameId, long classPK)
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> findByC_C(
241         long classNameId, long classPK, int start, int end)
242         throws com.liferay.portal.SystemException;
243 
244     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
245     public java.util.List<com.liferay.portlet.expando.model.ExpandoValue> findByC_C(
246         long classNameId, long classPK, int start, int end,
247         com.liferay.portal.kernel.util.OrderByComparator obc)
248         throws com.liferay.portal.SystemException;
249 
250     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
251     public com.liferay.portlet.expando.model.ExpandoValue findByC_C_First(
252         long classNameId, long classPK,
253         com.liferay.portal.kernel.util.OrderByComparator obc)
254         throws com.liferay.portal.SystemException,
255             com.liferay.portlet.expando.NoSuchValueException;
256 
257     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
258     public com.liferay.portlet.expando.model.ExpandoValue findByC_C_Last(
259         long classNameId, long classPK,
260         com.liferay.portal.kernel.util.OrderByComparator obc)
261         throws com.liferay.portal.SystemException,
262             com.liferay.portlet.expando.NoSuchValueException;
263 
264     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
265     public com.liferay.portlet.expando.model.ExpandoValue[] findByC_C_PrevAndNext(
266         long valueId, long classNameId, long classPK,
267         com.liferay.portal.kernel.util.OrderByComparator obc)
268         throws com.liferay.portal.SystemException,
269             com.liferay.portlet.expando.NoSuchValueException;
270 
271     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
272     public com.liferay.portlet.expando.model.ExpandoValue findByT_C_R(
273         long tableId, long columnId, long rowId)
274         throws com.liferay.portal.SystemException,
275             com.liferay.portlet.expando.NoSuchValueException;
276 
277     public com.liferay.portlet.expando.model.ExpandoValue fetchByT_C_R(
278         long tableId, long columnId, long rowId)
279         throws com.liferay.portal.SystemException;
280 
281     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
282     public java.util.List<com.liferay.portlet.expando.model.ExpandoValue> findByT_C_C_C(
283         long tableId, long columnId, long classNameId, long classPK)
284         throws com.liferay.portal.SystemException;
285 
286     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
287     public java.util.List<com.liferay.portlet.expando.model.ExpandoValue> findByT_C_C_C(
288         long tableId, long columnId, long classNameId, long classPK, int start,
289         int end) throws com.liferay.portal.SystemException;
290 
291     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
292     public java.util.List<com.liferay.portlet.expando.model.ExpandoValue> findByT_C_C_C(
293         long tableId, long columnId, long classNameId, long classPK, int start,
294         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
295         throws com.liferay.portal.SystemException;
296 
297     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
298     public com.liferay.portlet.expando.model.ExpandoValue findByT_C_C_C_First(
299         long tableId, long columnId, long classNameId, long classPK,
300         com.liferay.portal.kernel.util.OrderByComparator obc)
301         throws com.liferay.portal.SystemException,
302             com.liferay.portlet.expando.NoSuchValueException;
303 
304     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
305     public com.liferay.portlet.expando.model.ExpandoValue findByT_C_C_C_Last(
306         long tableId, long columnId, long classNameId, long classPK,
307         com.liferay.portal.kernel.util.OrderByComparator obc)
308         throws com.liferay.portal.SystemException,
309             com.liferay.portlet.expando.NoSuchValueException;
310 
311     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
312     public com.liferay.portlet.expando.model.ExpandoValue[] findByT_C_C_C_PrevAndNext(
313         long valueId, long tableId, long columnId, long classNameId,
314         long classPK, com.liferay.portal.kernel.util.OrderByComparator obc)
315         throws com.liferay.portal.SystemException,
316             com.liferay.portlet.expando.NoSuchValueException;
317 
318     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
319     public java.util.List<Object> findWithDynamicQuery(
320         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
321         throws com.liferay.portal.SystemException;
322 
323     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
324     public java.util.List<Object> findWithDynamicQuery(
325         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
326         int end) throws com.liferay.portal.SystemException;
327 
328     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
329     public java.util.List<com.liferay.portlet.expando.model.ExpandoValue> findAll()
330         throws com.liferay.portal.SystemException;
331 
332     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
333     public java.util.List<com.liferay.portlet.expando.model.ExpandoValue> findAll(
334         int start, int end) throws com.liferay.portal.SystemException;
335 
336     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
337     public java.util.List<com.liferay.portlet.expando.model.ExpandoValue> findAll(
338         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
339         throws com.liferay.portal.SystemException;
340 
341     public void removeByTableId(long tableId)
342         throws com.liferay.portal.SystemException;
343 
344     public void removeByColumnId(long columnId)
345         throws com.liferay.portal.SystemException;
346 
347     public void removeByRowId(long rowId)
348         throws com.liferay.portal.SystemException;
349 
350     public void removeByT_R(long tableId, long rowId)
351         throws com.liferay.portal.SystemException;
352 
353     public void removeByC_R(long columnId, long rowId)
354         throws com.liferay.portal.SystemException,
355             com.liferay.portlet.expando.NoSuchValueException;
356 
357     public void removeByC_C(long classNameId, long classPK)
358         throws com.liferay.portal.SystemException;
359 
360     public void removeByT_C_R(long tableId, long columnId, long rowId)
361         throws com.liferay.portal.SystemException,
362             com.liferay.portlet.expando.NoSuchValueException;
363 
364     public void removeByT_C_C_C(long tableId, long columnId, long classNameId,
365         long classPK) throws com.liferay.portal.SystemException;
366 
367     public void removeAll() throws com.liferay.portal.SystemException;
368 
369     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
370     public int countByTableId(long tableId)
371         throws com.liferay.portal.SystemException;
372 
373     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
374     public int countByColumnId(long columnId)
375         throws com.liferay.portal.SystemException;
376 
377     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
378     public int countByRowId(long rowId)
379         throws com.liferay.portal.SystemException;
380 
381     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
382     public int countByT_R(long tableId, long rowId)
383         throws com.liferay.portal.SystemException;
384 
385     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
386     public int countByC_R(long columnId, long rowId)
387         throws com.liferay.portal.SystemException;
388 
389     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
390     public int countByC_C(long classNameId, long classPK)
391         throws com.liferay.portal.SystemException;
392 
393     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
394     public int countByT_C_R(long tableId, long columnId, long rowId)
395         throws com.liferay.portal.SystemException;
396 
397     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
398     public int countByT_C_C_C(long tableId, long columnId, long classNameId,
399         long classPK) throws com.liferay.portal.SystemException;
400 
401     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
402     public int countAll() throws com.liferay.portal.SystemException;
403 }