1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    *
5    *
6    *
7    * The contents of this file are subject to the terms of the Liferay Enterprise
8    * Subscription License ("License"). You may not use this file except in
9    * compliance with the License. You can obtain a copy of the License by
10   * contacting Liferay, Inc. See the License for the specific language governing
11   * permissions and limitations under the License, including but not limited to
12   * distribution rights 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   * <p>
31   * ServiceBuilder generated this class. Modifications in this class will be
32   * overwritten the next time is generated.
33   * </p>
34   *
35   * @author    Brian Wing Shun Chan
36   * @see       ExpandoValuePersistenceImpl
37   * @see       ExpandoValueUtil
38   * @generated
39   */
40  public interface ExpandoValuePersistence extends BasePersistence {
41      public void cacheResult(
42          com.liferay.portlet.expando.model.ExpandoValue expandoValue);
43  
44      public void cacheResult(
45          java.util.List<com.liferay.portlet.expando.model.ExpandoValue> expandoValues);
46  
47      public void clearCache();
48  
49      public com.liferay.portlet.expando.model.ExpandoValue create(long valueId);
50  
51      public com.liferay.portlet.expando.model.ExpandoValue remove(long valueId)
52          throws com.liferay.portal.SystemException,
53              com.liferay.portlet.expando.NoSuchValueException;
54  
55      public com.liferay.portlet.expando.model.ExpandoValue remove(
56          com.liferay.portlet.expando.model.ExpandoValue expandoValue)
57          throws com.liferay.portal.SystemException;
58  
59      /**
60       * @deprecated Use {@link #update(ExpandoValue, boolean merge)}.
61       */
62      public com.liferay.portlet.expando.model.ExpandoValue update(
63          com.liferay.portlet.expando.model.ExpandoValue expandoValue)
64          throws com.liferay.portal.SystemException;
65  
66      /**
67       * Add, update, or merge, the entity. This method also calls the model
68       * listeners to trigger the proper events associated with adding, deleting,
69       * or updating an entity.
70       *
71       * @param  expandoValue the entity to add, update, or merge
72       * @param  merge boolean value for whether to merge the entity. The default
73       *         value is false. Setting merge to true is more expensive and
74       *         should only be true when expandoValue is transient. See
75       *         LEP-5473 for a detailed discussion of this method.
76       * @return the entity that was added, updated, or merged
77       */
78      public com.liferay.portlet.expando.model.ExpandoValue update(
79          com.liferay.portlet.expando.model.ExpandoValue expandoValue,
80          boolean merge) throws com.liferay.portal.SystemException;
81  
82      public com.liferay.portlet.expando.model.ExpandoValue updateImpl(
83          com.liferay.portlet.expando.model.ExpandoValue expandoValue,
84          boolean merge) throws com.liferay.portal.SystemException;
85  
86      public com.liferay.portlet.expando.model.ExpandoValue findByPrimaryKey(
87          long valueId)
88          throws com.liferay.portal.SystemException,
89              com.liferay.portlet.expando.NoSuchValueException;
90  
91      public com.liferay.portlet.expando.model.ExpandoValue fetchByPrimaryKey(
92          long valueId) throws com.liferay.portal.SystemException;
93  
94      public java.util.List<com.liferay.portlet.expando.model.ExpandoValue> findByTableId(
95          long tableId) throws com.liferay.portal.SystemException;
96  
97      public java.util.List<com.liferay.portlet.expando.model.ExpandoValue> findByTableId(
98          long tableId, int start, int end)
99          throws com.liferay.portal.SystemException;
100 
101     public java.util.List<com.liferay.portlet.expando.model.ExpandoValue> findByTableId(
102         long tableId, int start, int end,
103         com.liferay.portal.kernel.util.OrderByComparator obc)
104         throws com.liferay.portal.SystemException;
105 
106     public com.liferay.portlet.expando.model.ExpandoValue findByTableId_First(
107         long tableId, com.liferay.portal.kernel.util.OrderByComparator obc)
108         throws com.liferay.portal.SystemException,
109             com.liferay.portlet.expando.NoSuchValueException;
110 
111     public com.liferay.portlet.expando.model.ExpandoValue findByTableId_Last(
112         long tableId, com.liferay.portal.kernel.util.OrderByComparator obc)
113         throws com.liferay.portal.SystemException,
114             com.liferay.portlet.expando.NoSuchValueException;
115 
116     public com.liferay.portlet.expando.model.ExpandoValue[] findByTableId_PrevAndNext(
117         long valueId, long tableId,
118         com.liferay.portal.kernel.util.OrderByComparator obc)
119         throws com.liferay.portal.SystemException,
120             com.liferay.portlet.expando.NoSuchValueException;
121 
122     public java.util.List<com.liferay.portlet.expando.model.ExpandoValue> findByColumnId(
123         long columnId) throws com.liferay.portal.SystemException;
124 
125     public java.util.List<com.liferay.portlet.expando.model.ExpandoValue> findByColumnId(
126         long columnId, int start, int end)
127         throws com.liferay.portal.SystemException;
128 
129     public java.util.List<com.liferay.portlet.expando.model.ExpandoValue> findByColumnId(
130         long columnId, int start, int end,
131         com.liferay.portal.kernel.util.OrderByComparator obc)
132         throws com.liferay.portal.SystemException;
133 
134     public com.liferay.portlet.expando.model.ExpandoValue findByColumnId_First(
135         long columnId, com.liferay.portal.kernel.util.OrderByComparator obc)
136         throws com.liferay.portal.SystemException,
137             com.liferay.portlet.expando.NoSuchValueException;
138 
139     public com.liferay.portlet.expando.model.ExpandoValue findByColumnId_Last(
140         long columnId, com.liferay.portal.kernel.util.OrderByComparator obc)
141         throws com.liferay.portal.SystemException,
142             com.liferay.portlet.expando.NoSuchValueException;
143 
144     public com.liferay.portlet.expando.model.ExpandoValue[] findByColumnId_PrevAndNext(
145         long valueId, long columnId,
146         com.liferay.portal.kernel.util.OrderByComparator obc)
147         throws com.liferay.portal.SystemException,
148             com.liferay.portlet.expando.NoSuchValueException;
149 
150     public java.util.List<com.liferay.portlet.expando.model.ExpandoValue> findByRowId(
151         long rowId) throws com.liferay.portal.SystemException;
152 
153     public java.util.List<com.liferay.portlet.expando.model.ExpandoValue> findByRowId(
154         long rowId, int start, int end)
155         throws com.liferay.portal.SystemException;
156 
157     public java.util.List<com.liferay.portlet.expando.model.ExpandoValue> findByRowId(
158         long rowId, int start, int end,
159         com.liferay.portal.kernel.util.OrderByComparator obc)
160         throws com.liferay.portal.SystemException;
161 
162     public com.liferay.portlet.expando.model.ExpandoValue findByRowId_First(
163         long rowId, com.liferay.portal.kernel.util.OrderByComparator obc)
164         throws com.liferay.portal.SystemException,
165             com.liferay.portlet.expando.NoSuchValueException;
166 
167     public com.liferay.portlet.expando.model.ExpandoValue findByRowId_Last(
168         long rowId, com.liferay.portal.kernel.util.OrderByComparator obc)
169         throws com.liferay.portal.SystemException,
170             com.liferay.portlet.expando.NoSuchValueException;
171 
172     public com.liferay.portlet.expando.model.ExpandoValue[] findByRowId_PrevAndNext(
173         long valueId, long rowId,
174         com.liferay.portal.kernel.util.OrderByComparator obc)
175         throws com.liferay.portal.SystemException,
176             com.liferay.portlet.expando.NoSuchValueException;
177 
178     public java.util.List<com.liferay.portlet.expando.model.ExpandoValue> findByT_C(
179         long tableId, long columnId) throws com.liferay.portal.SystemException;
180 
181     public java.util.List<com.liferay.portlet.expando.model.ExpandoValue> findByT_C(
182         long tableId, long columnId, int start, int end)
183         throws com.liferay.portal.SystemException;
184 
185     public java.util.List<com.liferay.portlet.expando.model.ExpandoValue> findByT_C(
186         long tableId, long columnId, int start, int end,
187         com.liferay.portal.kernel.util.OrderByComparator obc)
188         throws com.liferay.portal.SystemException;
189 
190     public com.liferay.portlet.expando.model.ExpandoValue findByT_C_First(
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_Last(
197         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 com.liferay.portlet.expando.model.ExpandoValue[] findByT_C_PrevAndNext(
203         long valueId, long tableId, long columnId,
204         com.liferay.portal.kernel.util.OrderByComparator obc)
205         throws com.liferay.portal.SystemException,
206             com.liferay.portlet.expando.NoSuchValueException;
207 
208     public java.util.List<com.liferay.portlet.expando.model.ExpandoValue> findByT_CPK(
209         long tableId, long classPK) throws com.liferay.portal.SystemException;
210 
211     public java.util.List<com.liferay.portlet.expando.model.ExpandoValue> findByT_CPK(
212         long tableId, long classPK, int start, int end)
213         throws com.liferay.portal.SystemException;
214 
215     public java.util.List<com.liferay.portlet.expando.model.ExpandoValue> findByT_CPK(
216         long tableId, long classPK, int start, int end,
217         com.liferay.portal.kernel.util.OrderByComparator obc)
218         throws com.liferay.portal.SystemException;
219 
220     public com.liferay.portlet.expando.model.ExpandoValue findByT_CPK_First(
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_Last(
227         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 com.liferay.portlet.expando.model.ExpandoValue[] findByT_CPK_PrevAndNext(
233         long valueId, long tableId, long classPK,
234         com.liferay.portal.kernel.util.OrderByComparator obc)
235         throws com.liferay.portal.SystemException,
236             com.liferay.portlet.expando.NoSuchValueException;
237 
238     public java.util.List<com.liferay.portlet.expando.model.ExpandoValue> findByT_R(
239         long tableId, long rowId) throws com.liferay.portal.SystemException;
240 
241     public java.util.List<com.liferay.portlet.expando.model.ExpandoValue> findByT_R(
242         long tableId, long rowId, int start, int end)
243         throws com.liferay.portal.SystemException;
244 
245     public java.util.List<com.liferay.portlet.expando.model.ExpandoValue> findByT_R(
246         long tableId, long rowId, int start, int end,
247         com.liferay.portal.kernel.util.OrderByComparator obc)
248         throws com.liferay.portal.SystemException;
249 
250     public com.liferay.portlet.expando.model.ExpandoValue findByT_R_First(
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_Last(
257         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[] findByT_R_PrevAndNext(
263         long valueId, long tableId, long rowId,
264         com.liferay.portal.kernel.util.OrderByComparator obc)
265         throws com.liferay.portal.SystemException,
266             com.liferay.portlet.expando.NoSuchValueException;
267 
268     public com.liferay.portlet.expando.model.ExpandoValue findByC_R(
269         long columnId, long rowId)
270         throws com.liferay.portal.SystemException,
271             com.liferay.portlet.expando.NoSuchValueException;
272 
273     public com.liferay.portlet.expando.model.ExpandoValue fetchByC_R(
274         long columnId, long rowId) throws com.liferay.portal.SystemException;
275 
276     public com.liferay.portlet.expando.model.ExpandoValue fetchByC_R(
277         long columnId, long rowId, boolean retrieveFromCache)
278         throws com.liferay.portal.SystemException;
279 
280     public java.util.List<com.liferay.portlet.expando.model.ExpandoValue> findByC_C(
281         long classNameId, long classPK)
282         throws com.liferay.portal.SystemException;
283 
284     public java.util.List<com.liferay.portlet.expando.model.ExpandoValue> findByC_C(
285         long classNameId, long classPK, int start, int end)
286         throws com.liferay.portal.SystemException;
287 
288     public java.util.List<com.liferay.portlet.expando.model.ExpandoValue> findByC_C(
289         long classNameId, long classPK, int start, int end,
290         com.liferay.portal.kernel.util.OrderByComparator obc)
291         throws com.liferay.portal.SystemException;
292 
293     public com.liferay.portlet.expando.model.ExpandoValue findByC_C_First(
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_Last(
300         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[] findByC_C_PrevAndNext(
306         long valueId, 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     public com.liferay.portlet.expando.model.ExpandoValue findByT_C_C(
312         long tableId, long columnId, long classPK)
313         throws com.liferay.portal.SystemException,
314             com.liferay.portlet.expando.NoSuchValueException;
315 
316     public com.liferay.portlet.expando.model.ExpandoValue fetchByT_C_C(
317         long tableId, long columnId, long classPK)
318         throws com.liferay.portal.SystemException;
319 
320     public com.liferay.portlet.expando.model.ExpandoValue fetchByT_C_C(
321         long tableId, long columnId, long classPK, boolean retrieveFromCache)
322         throws com.liferay.portal.SystemException;
323 
324     public java.util.List<com.liferay.portlet.expando.model.ExpandoValue> findByT_C_D(
325         long tableId, long columnId, java.lang.String data)
326         throws com.liferay.portal.SystemException;
327 
328     public java.util.List<com.liferay.portlet.expando.model.ExpandoValue> findByT_C_D(
329         long tableId, long columnId, java.lang.String data, int start, int end)
330         throws com.liferay.portal.SystemException;
331 
332     public java.util.List<com.liferay.portlet.expando.model.ExpandoValue> findByT_C_D(
333         long tableId, long columnId, java.lang.String data, int start, int end,
334         com.liferay.portal.kernel.util.OrderByComparator obc)
335         throws com.liferay.portal.SystemException;
336 
337     public com.liferay.portlet.expando.model.ExpandoValue findByT_C_D_First(
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_Last(
344         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 com.liferay.portlet.expando.model.ExpandoValue[] findByT_C_D_PrevAndNext(
350         long valueId, long tableId, long columnId, java.lang.String data,
351         com.liferay.portal.kernel.util.OrderByComparator obc)
352         throws com.liferay.portal.SystemException,
353             com.liferay.portlet.expando.NoSuchValueException;
354 
355     public java.util.List<Object> findWithDynamicQuery(
356         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
357         throws com.liferay.portal.SystemException;
358 
359     public java.util.List<Object> findWithDynamicQuery(
360         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
361         int end) throws com.liferay.portal.SystemException;
362 
363     public java.util.List<com.liferay.portlet.expando.model.ExpandoValue> findAll()
364         throws com.liferay.portal.SystemException;
365 
366     public java.util.List<com.liferay.portlet.expando.model.ExpandoValue> findAll(
367         int start, int end) throws com.liferay.portal.SystemException;
368 
369     public java.util.List<com.liferay.portlet.expando.model.ExpandoValue> findAll(
370         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
371         throws com.liferay.portal.SystemException;
372 
373     public void removeByTableId(long tableId)
374         throws com.liferay.portal.SystemException;
375 
376     public void removeByColumnId(long columnId)
377         throws com.liferay.portal.SystemException;
378 
379     public void removeByRowId(long rowId)
380         throws com.liferay.portal.SystemException;
381 
382     public void removeByT_C(long tableId, long columnId)
383         throws com.liferay.portal.SystemException;
384 
385     public void removeByT_CPK(long tableId, long classPK)
386         throws com.liferay.portal.SystemException;
387 
388     public void removeByT_R(long tableId, long rowId)
389         throws com.liferay.portal.SystemException;
390 
391     public void removeByC_R(long columnId, long rowId)
392         throws com.liferay.portal.SystemException,
393             com.liferay.portlet.expando.NoSuchValueException;
394 
395     public void removeByC_C(long classNameId, long classPK)
396         throws com.liferay.portal.SystemException;
397 
398     public void removeByT_C_C(long tableId, long columnId, long classPK)
399         throws com.liferay.portal.SystemException,
400             com.liferay.portlet.expando.NoSuchValueException;
401 
402     public void removeByT_C_D(long tableId, long columnId, java.lang.String data)
403         throws com.liferay.portal.SystemException;
404 
405     public void removeAll() throws com.liferay.portal.SystemException;
406 
407     public int countByTableId(long tableId)
408         throws com.liferay.portal.SystemException;
409 
410     public int countByColumnId(long columnId)
411         throws com.liferay.portal.SystemException;
412 
413     public int countByRowId(long rowId)
414         throws com.liferay.portal.SystemException;
415 
416     public int countByT_C(long tableId, long columnId)
417         throws com.liferay.portal.SystemException;
418 
419     public int countByT_CPK(long tableId, long classPK)
420         throws com.liferay.portal.SystemException;
421 
422     public int countByT_R(long tableId, long rowId)
423         throws com.liferay.portal.SystemException;
424 
425     public int countByC_R(long columnId, long rowId)
426         throws com.liferay.portal.SystemException;
427 
428     public int countByC_C(long classNameId, long classPK)
429         throws com.liferay.portal.SystemException;
430 
431     public int countByT_C_C(long tableId, long columnId, long classPK)
432         throws com.liferay.portal.SystemException;
433 
434     public int countByT_C_D(long tableId, long columnId, java.lang.String data)
435         throws com.liferay.portal.SystemException;
436 
437     public int countAll() throws com.liferay.portal.SystemException;
438 }