1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.tasks.service.persistence;
16  
17  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18  import com.liferay.portal.kernel.dao.orm.DynamicQuery;
19  import com.liferay.portal.kernel.exception.SystemException;
20  
21  import com.liferay.portlet.tasks.model.TasksProposal;
22  
23  import java.util.List;
24  
25  /**
26   * <a href="TasksProposalUtil.java.html"><b><i>View Source</i></b></a>
27   *
28   * <p>
29   * ServiceBuilder generated this class. Modifications in this class will be
30   * overwritten the next time is generated.
31   * </p>
32   *
33   * @author    Brian Wing Shun Chan
34   * @see       TasksProposalPersistence
35   * @see       TasksProposalPersistenceImpl
36   * @generated
37   */
38  public class TasksProposalUtil {
39      /**
40       * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
41       */
42      public static void clearCache() {
43          getPersistence().clearCache();
44      }
45  
46      /**
47       * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(TasksProposal)
48       */
49      public static void clearCache(TasksProposal tasksProposal) {
50          getPersistence().clearCache(tasksProposal);
51      }
52  
53      /**
54       * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
55       */
56      public long countWithDynamicQuery(DynamicQuery dynamicQuery)
57          throws SystemException {
58          return getPersistence().countWithDynamicQuery(dynamicQuery);
59      }
60  
61      /**
62       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
63       */
64      public static List<TasksProposal> findWithDynamicQuery(
65          DynamicQuery dynamicQuery) throws SystemException {
66          return getPersistence().findWithDynamicQuery(dynamicQuery);
67      }
68  
69      /**
70       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
71       */
72      public static List<TasksProposal> findWithDynamicQuery(
73          DynamicQuery dynamicQuery, int start, int end)
74          throws SystemException {
75          return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
76      }
77  
78      /**
79       * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
80       */
81      public static TasksProposal remove(TasksProposal tasksProposal)
82          throws SystemException {
83          return getPersistence().remove(tasksProposal);
84      }
85  
86      /**
87       * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
88       */
89      public static TasksProposal update(TasksProposal tasksProposal,
90          boolean merge) throws SystemException {
91          return getPersistence().update(tasksProposal, merge);
92      }
93  
94      public static void cacheResult(
95          com.liferay.portlet.tasks.model.TasksProposal tasksProposal) {
96          getPersistence().cacheResult(tasksProposal);
97      }
98  
99      public static void cacheResult(
100         java.util.List<com.liferay.portlet.tasks.model.TasksProposal> tasksProposals) {
101         getPersistence().cacheResult(tasksProposals);
102     }
103 
104     public static com.liferay.portlet.tasks.model.TasksProposal create(
105         long proposalId) {
106         return getPersistence().create(proposalId);
107     }
108 
109     public static com.liferay.portlet.tasks.model.TasksProposal remove(
110         long proposalId)
111         throws com.liferay.portal.kernel.exception.SystemException,
112             com.liferay.portlet.tasks.NoSuchProposalException {
113         return getPersistence().remove(proposalId);
114     }
115 
116     public static com.liferay.portlet.tasks.model.TasksProposal updateImpl(
117         com.liferay.portlet.tasks.model.TasksProposal tasksProposal,
118         boolean merge)
119         throws com.liferay.portal.kernel.exception.SystemException {
120         return getPersistence().updateImpl(tasksProposal, merge);
121     }
122 
123     public static com.liferay.portlet.tasks.model.TasksProposal findByPrimaryKey(
124         long proposalId)
125         throws com.liferay.portal.kernel.exception.SystemException,
126             com.liferay.portlet.tasks.NoSuchProposalException {
127         return getPersistence().findByPrimaryKey(proposalId);
128     }
129 
130     public static com.liferay.portlet.tasks.model.TasksProposal fetchByPrimaryKey(
131         long proposalId)
132         throws com.liferay.portal.kernel.exception.SystemException {
133         return getPersistence().fetchByPrimaryKey(proposalId);
134     }
135 
136     public static java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findByGroupId(
137         long groupId)
138         throws com.liferay.portal.kernel.exception.SystemException {
139         return getPersistence().findByGroupId(groupId);
140     }
141 
142     public static java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findByGroupId(
143         long groupId, int start, int end)
144         throws com.liferay.portal.kernel.exception.SystemException {
145         return getPersistence().findByGroupId(groupId, start, end);
146     }
147 
148     public static java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findByGroupId(
149         long groupId, int start, int end,
150         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
151         throws com.liferay.portal.kernel.exception.SystemException {
152         return getPersistence()
153                    .findByGroupId(groupId, start, end, orderByComparator);
154     }
155 
156     public static com.liferay.portlet.tasks.model.TasksProposal findByGroupId_First(
157         long groupId,
158         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
159         throws com.liferay.portal.kernel.exception.SystemException,
160             com.liferay.portlet.tasks.NoSuchProposalException {
161         return getPersistence().findByGroupId_First(groupId, orderByComparator);
162     }
163 
164     public static com.liferay.portlet.tasks.model.TasksProposal findByGroupId_Last(
165         long groupId,
166         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
167         throws com.liferay.portal.kernel.exception.SystemException,
168             com.liferay.portlet.tasks.NoSuchProposalException {
169         return getPersistence().findByGroupId_Last(groupId, orderByComparator);
170     }
171 
172     public static com.liferay.portlet.tasks.model.TasksProposal[] findByGroupId_PrevAndNext(
173         long proposalId, long groupId,
174         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
175         throws com.liferay.portal.kernel.exception.SystemException,
176             com.liferay.portlet.tasks.NoSuchProposalException {
177         return getPersistence()
178                    .findByGroupId_PrevAndNext(proposalId, groupId,
179             orderByComparator);
180     }
181 
182     public static java.util.List<com.liferay.portlet.tasks.model.TasksProposal> filterFindByGroupId(
183         long groupId)
184         throws com.liferay.portal.kernel.exception.SystemException {
185         return getPersistence().filterFindByGroupId(groupId);
186     }
187 
188     public static java.util.List<com.liferay.portlet.tasks.model.TasksProposal> filterFindByGroupId(
189         long groupId, int start, int end)
190         throws com.liferay.portal.kernel.exception.SystemException {
191         return getPersistence().filterFindByGroupId(groupId, start, end);
192     }
193 
194     public static java.util.List<com.liferay.portlet.tasks.model.TasksProposal> filterFindByGroupId(
195         long groupId, int start, int end,
196         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
197         throws com.liferay.portal.kernel.exception.SystemException {
198         return getPersistence()
199                    .filterFindByGroupId(groupId, start, end, orderByComparator);
200     }
201 
202     public static java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findByG_U(
203         long groupId, long userId)
204         throws com.liferay.portal.kernel.exception.SystemException {
205         return getPersistence().findByG_U(groupId, userId);
206     }
207 
208     public static java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findByG_U(
209         long groupId, long userId, int start, int end)
210         throws com.liferay.portal.kernel.exception.SystemException {
211         return getPersistence().findByG_U(groupId, userId, start, end);
212     }
213 
214     public static java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findByG_U(
215         long groupId, long userId, int start, int end,
216         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
217         throws com.liferay.portal.kernel.exception.SystemException {
218         return getPersistence()
219                    .findByG_U(groupId, userId, start, end, orderByComparator);
220     }
221 
222     public static com.liferay.portlet.tasks.model.TasksProposal findByG_U_First(
223         long groupId, long userId,
224         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
225         throws com.liferay.portal.kernel.exception.SystemException,
226             com.liferay.portlet.tasks.NoSuchProposalException {
227         return getPersistence()
228                    .findByG_U_First(groupId, userId, orderByComparator);
229     }
230 
231     public static com.liferay.portlet.tasks.model.TasksProposal findByG_U_Last(
232         long groupId, long userId,
233         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
234         throws com.liferay.portal.kernel.exception.SystemException,
235             com.liferay.portlet.tasks.NoSuchProposalException {
236         return getPersistence()
237                    .findByG_U_Last(groupId, userId, orderByComparator);
238     }
239 
240     public static com.liferay.portlet.tasks.model.TasksProposal[] findByG_U_PrevAndNext(
241         long proposalId, long groupId, long userId,
242         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
243         throws com.liferay.portal.kernel.exception.SystemException,
244             com.liferay.portlet.tasks.NoSuchProposalException {
245         return getPersistence()
246                    .findByG_U_PrevAndNext(proposalId, groupId, userId,
247             orderByComparator);
248     }
249 
250     public static java.util.List<com.liferay.portlet.tasks.model.TasksProposal> filterFindByG_U(
251         long groupId, long userId)
252         throws com.liferay.portal.kernel.exception.SystemException {
253         return getPersistence().filterFindByG_U(groupId, userId);
254     }
255 
256     public static java.util.List<com.liferay.portlet.tasks.model.TasksProposal> filterFindByG_U(
257         long groupId, long userId, int start, int end)
258         throws com.liferay.portal.kernel.exception.SystemException {
259         return getPersistence().filterFindByG_U(groupId, userId, start, end);
260     }
261 
262     public static java.util.List<com.liferay.portlet.tasks.model.TasksProposal> filterFindByG_U(
263         long groupId, long userId, int start, int end,
264         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
265         throws com.liferay.portal.kernel.exception.SystemException {
266         return getPersistence()
267                    .filterFindByG_U(groupId, userId, start, end,
268             orderByComparator);
269     }
270 
271     public static com.liferay.portlet.tasks.model.TasksProposal findByC_C(
272         long classNameId, java.lang.String classPK)
273         throws com.liferay.portal.kernel.exception.SystemException,
274             com.liferay.portlet.tasks.NoSuchProposalException {
275         return getPersistence().findByC_C(classNameId, classPK);
276     }
277 
278     public static com.liferay.portlet.tasks.model.TasksProposal fetchByC_C(
279         long classNameId, java.lang.String classPK)
280         throws com.liferay.portal.kernel.exception.SystemException {
281         return getPersistence().fetchByC_C(classNameId, classPK);
282     }
283 
284     public static com.liferay.portlet.tasks.model.TasksProposal fetchByC_C(
285         long classNameId, java.lang.String classPK, boolean retrieveFromCache)
286         throws com.liferay.portal.kernel.exception.SystemException {
287         return getPersistence()
288                    .fetchByC_C(classNameId, classPK, retrieveFromCache);
289     }
290 
291     public static java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findAll()
292         throws com.liferay.portal.kernel.exception.SystemException {
293         return getPersistence().findAll();
294     }
295 
296     public static java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findAll(
297         int start, int end)
298         throws com.liferay.portal.kernel.exception.SystemException {
299         return getPersistence().findAll(start, end);
300     }
301 
302     public static java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findAll(
303         int start, int end,
304         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
305         throws com.liferay.portal.kernel.exception.SystemException {
306         return getPersistence().findAll(start, end, orderByComparator);
307     }
308 
309     public static void removeByGroupId(long groupId)
310         throws com.liferay.portal.kernel.exception.SystemException {
311         getPersistence().removeByGroupId(groupId);
312     }
313 
314     public static void removeByG_U(long groupId, long userId)
315         throws com.liferay.portal.kernel.exception.SystemException {
316         getPersistence().removeByG_U(groupId, userId);
317     }
318 
319     public static void removeByC_C(long classNameId, java.lang.String classPK)
320         throws com.liferay.portal.kernel.exception.SystemException,
321             com.liferay.portlet.tasks.NoSuchProposalException {
322         getPersistence().removeByC_C(classNameId, classPK);
323     }
324 
325     public static void removeAll()
326         throws com.liferay.portal.kernel.exception.SystemException {
327         getPersistence().removeAll();
328     }
329 
330     public static int countByGroupId(long groupId)
331         throws com.liferay.portal.kernel.exception.SystemException {
332         return getPersistence().countByGroupId(groupId);
333     }
334 
335     public static int filterCountByGroupId(long groupId)
336         throws com.liferay.portal.kernel.exception.SystemException {
337         return getPersistence().filterCountByGroupId(groupId);
338     }
339 
340     public static int countByG_U(long groupId, long userId)
341         throws com.liferay.portal.kernel.exception.SystemException {
342         return getPersistence().countByG_U(groupId, userId);
343     }
344 
345     public static int filterCountByG_U(long groupId, long userId)
346         throws com.liferay.portal.kernel.exception.SystemException {
347         return getPersistence().filterCountByG_U(groupId, userId);
348     }
349 
350     public static int countByC_C(long classNameId, java.lang.String classPK)
351         throws com.liferay.portal.kernel.exception.SystemException {
352         return getPersistence().countByC_C(classNameId, classPK);
353     }
354 
355     public static int countAll()
356         throws com.liferay.portal.kernel.exception.SystemException {
357         return getPersistence().countAll();
358     }
359 
360     public static TasksProposalPersistence getPersistence() {
361         if (_persistence == null) {
362             _persistence = (TasksProposalPersistence)PortalBeanLocatorUtil.locate(TasksProposalPersistence.class.getName());
363         }
364 
365         return _persistence;
366     }
367 
368     public void setPersistence(TasksProposalPersistence persistence) {
369         _persistence = persistence;
370     }
371 
372     private static TasksProposalPersistence _persistence;
373 }