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