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.SystemException;
18  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
19  import com.liferay.portal.kernel.dao.orm.DynamicQuery;
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#findWithDynamicQuery(DynamicQuery)
48       */
49      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
50          throws SystemException {
51          return getPersistence().findWithDynamicQuery(dynamicQuery);
52      }
53  
54      /**
55       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
56       */
57      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
58          int start, int end) throws SystemException {
59          return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
60      }
61  
62      /**
63       * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
64       */
65      public static TasksProposal remove(TasksProposal tasksProposal)
66          throws SystemException {
67          return getPersistence().remove(tasksProposal);
68      }
69  
70      /**
71       * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
72       */
73      public static TasksProposal update(TasksProposal tasksProposal,
74          boolean merge) throws SystemException {
75          return getPersistence().update(tasksProposal, merge);
76      }
77  
78      public static void cacheResult(
79          com.liferay.portlet.tasks.model.TasksProposal tasksProposal) {
80          getPersistence().cacheResult(tasksProposal);
81      }
82  
83      public static void cacheResult(
84          java.util.List<com.liferay.portlet.tasks.model.TasksProposal> tasksProposals) {
85          getPersistence().cacheResult(tasksProposals);
86      }
87  
88      public static com.liferay.portlet.tasks.model.TasksProposal create(
89          long proposalId) {
90          return getPersistence().create(proposalId);
91      }
92  
93      public static com.liferay.portlet.tasks.model.TasksProposal remove(
94          long proposalId)
95          throws com.liferay.portal.SystemException,
96              com.liferay.portlet.tasks.NoSuchProposalException {
97          return getPersistence().remove(proposalId);
98      }
99  
100     /**
101      * @deprecated Use {@link com.liferay.portal.service.persistence.BasePersistence.#update(com.liferay.portal.model.BaseModel, boolean)}.
102      */
103     public static com.liferay.portlet.tasks.model.TasksProposal update(
104         com.liferay.portlet.tasks.model.TasksProposal tasksProposal)
105         throws com.liferay.portal.SystemException {
106         return getPersistence().update(tasksProposal);
107     }
108 
109     public static com.liferay.portlet.tasks.model.TasksProposal updateImpl(
110         com.liferay.portlet.tasks.model.TasksProposal tasksProposal,
111         boolean merge) throws com.liferay.portal.SystemException {
112         return getPersistence().updateImpl(tasksProposal, merge);
113     }
114 
115     public static com.liferay.portlet.tasks.model.TasksProposal findByPrimaryKey(
116         long proposalId)
117         throws com.liferay.portal.SystemException,
118             com.liferay.portlet.tasks.NoSuchProposalException {
119         return getPersistence().findByPrimaryKey(proposalId);
120     }
121 
122     public static com.liferay.portlet.tasks.model.TasksProposal fetchByPrimaryKey(
123         long proposalId) throws com.liferay.portal.SystemException {
124         return getPersistence().fetchByPrimaryKey(proposalId);
125     }
126 
127     public static java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findByGroupId(
128         long groupId) throws com.liferay.portal.SystemException {
129         return getPersistence().findByGroupId(groupId);
130     }
131 
132     public static java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findByGroupId(
133         long groupId, int start, int end)
134         throws com.liferay.portal.SystemException {
135         return getPersistence().findByGroupId(groupId, start, end);
136     }
137 
138     public static java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findByGroupId(
139         long groupId, int start, int end,
140         com.liferay.portal.kernel.util.OrderByComparator obc)
141         throws com.liferay.portal.SystemException {
142         return getPersistence().findByGroupId(groupId, start, end, obc);
143     }
144 
145     public static com.liferay.portlet.tasks.model.TasksProposal findByGroupId_First(
146         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
147         throws com.liferay.portal.SystemException,
148             com.liferay.portlet.tasks.NoSuchProposalException {
149         return getPersistence().findByGroupId_First(groupId, obc);
150     }
151 
152     public static com.liferay.portlet.tasks.model.TasksProposal findByGroupId_Last(
153         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
154         throws com.liferay.portal.SystemException,
155             com.liferay.portlet.tasks.NoSuchProposalException {
156         return getPersistence().findByGroupId_Last(groupId, obc);
157     }
158 
159     public static com.liferay.portlet.tasks.model.TasksProposal[] findByGroupId_PrevAndNext(
160         long proposalId, long groupId,
161         com.liferay.portal.kernel.util.OrderByComparator obc)
162         throws com.liferay.portal.SystemException,
163             com.liferay.portlet.tasks.NoSuchProposalException {
164         return getPersistence()
165                    .findByGroupId_PrevAndNext(proposalId, groupId, obc);
166     }
167 
168     public static java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findByG_U(
169         long groupId, long userId) throws com.liferay.portal.SystemException {
170         return getPersistence().findByG_U(groupId, userId);
171     }
172 
173     public static java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findByG_U(
174         long groupId, long userId, int start, int end)
175         throws com.liferay.portal.SystemException {
176         return getPersistence().findByG_U(groupId, userId, start, end);
177     }
178 
179     public static java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findByG_U(
180         long groupId, long userId, int start, int end,
181         com.liferay.portal.kernel.util.OrderByComparator obc)
182         throws com.liferay.portal.SystemException {
183         return getPersistence().findByG_U(groupId, userId, start, end, obc);
184     }
185 
186     public static com.liferay.portlet.tasks.model.TasksProposal findByG_U_First(
187         long groupId, long userId,
188         com.liferay.portal.kernel.util.OrderByComparator obc)
189         throws com.liferay.portal.SystemException,
190             com.liferay.portlet.tasks.NoSuchProposalException {
191         return getPersistence().findByG_U_First(groupId, userId, obc);
192     }
193 
194     public static com.liferay.portlet.tasks.model.TasksProposal findByG_U_Last(
195         long groupId, long userId,
196         com.liferay.portal.kernel.util.OrderByComparator obc)
197         throws com.liferay.portal.SystemException,
198             com.liferay.portlet.tasks.NoSuchProposalException {
199         return getPersistence().findByG_U_Last(groupId, userId, obc);
200     }
201 
202     public static com.liferay.portlet.tasks.model.TasksProposal[] findByG_U_PrevAndNext(
203         long proposalId, long groupId, long userId,
204         com.liferay.portal.kernel.util.OrderByComparator obc)
205         throws com.liferay.portal.SystemException,
206             com.liferay.portlet.tasks.NoSuchProposalException {
207         return getPersistence()
208                    .findByG_U_PrevAndNext(proposalId, groupId, userId, obc);
209     }
210 
211     public static com.liferay.portlet.tasks.model.TasksProposal findByC_C(
212         long classNameId, java.lang.String classPK)
213         throws com.liferay.portal.SystemException,
214             com.liferay.portlet.tasks.NoSuchProposalException {
215         return getPersistence().findByC_C(classNameId, classPK);
216     }
217 
218     public static com.liferay.portlet.tasks.model.TasksProposal fetchByC_C(
219         long classNameId, java.lang.String classPK)
220         throws com.liferay.portal.SystemException {
221         return getPersistence().fetchByC_C(classNameId, classPK);
222     }
223 
224     public static com.liferay.portlet.tasks.model.TasksProposal fetchByC_C(
225         long classNameId, java.lang.String classPK, boolean retrieveFromCache)
226         throws com.liferay.portal.SystemException {
227         return getPersistence()
228                    .fetchByC_C(classNameId, classPK, retrieveFromCache);
229     }
230 
231     public static java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findAll()
232         throws com.liferay.portal.SystemException {
233         return getPersistence().findAll();
234     }
235 
236     public static java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findAll(
237         int start, int end) throws com.liferay.portal.SystemException {
238         return getPersistence().findAll(start, end);
239     }
240 
241     public static java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findAll(
242         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
243         throws com.liferay.portal.SystemException {
244         return getPersistence().findAll(start, end, obc);
245     }
246 
247     public static void removeByGroupId(long groupId)
248         throws com.liferay.portal.SystemException {
249         getPersistence().removeByGroupId(groupId);
250     }
251 
252     public static void removeByG_U(long groupId, long userId)
253         throws com.liferay.portal.SystemException {
254         getPersistence().removeByG_U(groupId, userId);
255     }
256 
257     public static void removeByC_C(long classNameId, java.lang.String classPK)
258         throws com.liferay.portal.SystemException,
259             com.liferay.portlet.tasks.NoSuchProposalException {
260         getPersistence().removeByC_C(classNameId, classPK);
261     }
262 
263     public static void removeAll() throws com.liferay.portal.SystemException {
264         getPersistence().removeAll();
265     }
266 
267     public static int countByGroupId(long groupId)
268         throws com.liferay.portal.SystemException {
269         return getPersistence().countByGroupId(groupId);
270     }
271 
272     public static int countByG_U(long groupId, long userId)
273         throws com.liferay.portal.SystemException {
274         return getPersistence().countByG_U(groupId, userId);
275     }
276 
277     public static int countByC_C(long classNameId, java.lang.String classPK)
278         throws com.liferay.portal.SystemException {
279         return getPersistence().countByC_C(classNameId, classPK);
280     }
281 
282     public static int countAll() throws com.liferay.portal.SystemException {
283         return getPersistence().countAll();
284     }
285 
286     public static TasksProposalPersistence getPersistence() {
287         if (_persistence == null) {
288             _persistence = (TasksProposalPersistence)PortalBeanLocatorUtil.locate(TasksProposalPersistence.class.getName());
289         }
290 
291         return _persistence;
292     }
293 
294     public void setPersistence(TasksProposalPersistence persistence) {
295         _persistence = persistence;
296     }
297 
298     private static TasksProposalPersistence _persistence;
299 }