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