1
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 import com.liferay.portal.kernel.util.ReferenceRegistry;
21
22 import com.liferay.portlet.tasks.model.TasksProposal;
23
24 import java.util.List;
25
26
39 public class TasksProposalUtil {
40
43 public static void clearCache() {
44 getPersistence().clearCache();
45 }
46
47
50 public static void clearCache(TasksProposal tasksProposal) {
51 getPersistence().clearCache(tasksProposal);
52 }
53
54
57 public int countWithDynamicQuery(DynamicQuery dynamicQuery)
58 throws SystemException {
59 return getPersistence().countWithDynamicQuery(dynamicQuery);
60 }
61
62
65 public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
66 throws SystemException {
67 return getPersistence().findWithDynamicQuery(dynamicQuery);
68 }
69
70
73 public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
74 int start, int end) throws SystemException {
75 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
76 }
77
78
81 public static TasksProposal remove(TasksProposal tasksProposal)
82 throws SystemException {
83 return getPersistence().remove(tasksProposal);
84 }
85
86
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.SystemException,
112 com.liferay.portlet.tasks.NoSuchProposalException {
113 return getPersistence().remove(proposalId);
114 }
115
116
119 public static com.liferay.portlet.tasks.model.TasksProposal update(
120 com.liferay.portlet.tasks.model.TasksProposal tasksProposal)
121 throws com.liferay.portal.SystemException {
122 return getPersistence().update(tasksProposal);
123 }
124
125 public static com.liferay.portlet.tasks.model.TasksProposal updateImpl(
126 com.liferay.portlet.tasks.model.TasksProposal tasksProposal,
127 boolean merge) throws com.liferay.portal.SystemException {
128 return getPersistence().updateImpl(tasksProposal, merge);
129 }
130
131 public static com.liferay.portlet.tasks.model.TasksProposal findByPrimaryKey(
132 long proposalId)
133 throws com.liferay.portal.SystemException,
134 com.liferay.portlet.tasks.NoSuchProposalException {
135 return getPersistence().findByPrimaryKey(proposalId);
136 }
137
138 public static com.liferay.portlet.tasks.model.TasksProposal fetchByPrimaryKey(
139 long proposalId) throws com.liferay.portal.SystemException {
140 return getPersistence().fetchByPrimaryKey(proposalId);
141 }
142
143 public static java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findByGroupId(
144 long groupId) throws com.liferay.portal.SystemException {
145 return getPersistence().findByGroupId(groupId);
146 }
147
148 public static java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findByGroupId(
149 long groupId, int start, int end)
150 throws com.liferay.portal.SystemException {
151 return getPersistence().findByGroupId(groupId, start, end);
152 }
153
154 public static java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findByGroupId(
155 long groupId, int start, int end,
156 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
157 throws com.liferay.portal.SystemException {
158 return getPersistence()
159 .findByGroupId(groupId, start, end, orderByComparator);
160 }
161
162 public static com.liferay.portlet.tasks.model.TasksProposal findByGroupId_First(
163 long groupId,
164 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
165 throws com.liferay.portal.SystemException,
166 com.liferay.portlet.tasks.NoSuchProposalException {
167 return getPersistence().findByGroupId_First(groupId, orderByComparator);
168 }
169
170 public static com.liferay.portlet.tasks.model.TasksProposal findByGroupId_Last(
171 long groupId,
172 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
173 throws com.liferay.portal.SystemException,
174 com.liferay.portlet.tasks.NoSuchProposalException {
175 return getPersistence().findByGroupId_Last(groupId, orderByComparator);
176 }
177
178 public static com.liferay.portlet.tasks.model.TasksProposal[] findByGroupId_PrevAndNext(
179 long proposalId, long groupId,
180 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
181 throws com.liferay.portal.SystemException,
182 com.liferay.portlet.tasks.NoSuchProposalException {
183 return getPersistence()
184 .findByGroupId_PrevAndNext(proposalId, groupId,
185 orderByComparator);
186 }
187
188 public static java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findByG_U(
189 long groupId, long userId) throws com.liferay.portal.SystemException {
190 return getPersistence().findByG_U(groupId, userId);
191 }
192
193 public static java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findByG_U(
194 long groupId, long userId, int start, int end)
195 throws com.liferay.portal.SystemException {
196 return getPersistence().findByG_U(groupId, userId, start, end);
197 }
198
199 public static java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findByG_U(
200 long groupId, long userId, int start, int end,
201 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
202 throws com.liferay.portal.SystemException {
203 return getPersistence()
204 .findByG_U(groupId, userId, start, end, orderByComparator);
205 }
206
207 public static com.liferay.portlet.tasks.model.TasksProposal findByG_U_First(
208 long groupId, long userId,
209 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
210 throws com.liferay.portal.SystemException,
211 com.liferay.portlet.tasks.NoSuchProposalException {
212 return getPersistence()
213 .findByG_U_First(groupId, userId, orderByComparator);
214 }
215
216 public static com.liferay.portlet.tasks.model.TasksProposal findByG_U_Last(
217 long groupId, long userId,
218 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
219 throws com.liferay.portal.SystemException,
220 com.liferay.portlet.tasks.NoSuchProposalException {
221 return getPersistence()
222 .findByG_U_Last(groupId, userId, orderByComparator);
223 }
224
225 public static com.liferay.portlet.tasks.model.TasksProposal[] findByG_U_PrevAndNext(
226 long proposalId, long groupId, long userId,
227 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
228 throws com.liferay.portal.SystemException,
229 com.liferay.portlet.tasks.NoSuchProposalException {
230 return getPersistence()
231 .findByG_U_PrevAndNext(proposalId, groupId, userId,
232 orderByComparator);
233 }
234
235 public static com.liferay.portlet.tasks.model.TasksProposal findByC_C(
236 long classNameId, java.lang.String classPK)
237 throws com.liferay.portal.SystemException,
238 com.liferay.portlet.tasks.NoSuchProposalException {
239 return getPersistence().findByC_C(classNameId, classPK);
240 }
241
242 public static com.liferay.portlet.tasks.model.TasksProposal fetchByC_C(
243 long classNameId, java.lang.String classPK)
244 throws com.liferay.portal.SystemException {
245 return getPersistence().fetchByC_C(classNameId, classPK);
246 }
247
248 public static com.liferay.portlet.tasks.model.TasksProposal fetchByC_C(
249 long classNameId, java.lang.String classPK, boolean retrieveFromCache)
250 throws com.liferay.portal.SystemException {
251 return getPersistence()
252 .fetchByC_C(classNameId, classPK, retrieveFromCache);
253 }
254
255 public static java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findAll()
256 throws com.liferay.portal.SystemException {
257 return getPersistence().findAll();
258 }
259
260 public static java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findAll(
261 int start, int end) throws com.liferay.portal.SystemException {
262 return getPersistence().findAll(start, end);
263 }
264
265 public static java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findAll(
266 int start, int end,
267 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
268 throws com.liferay.portal.SystemException {
269 return getPersistence().findAll(start, end, orderByComparator);
270 }
271
272 public static void removeByGroupId(long groupId)
273 throws com.liferay.portal.SystemException {
274 getPersistence().removeByGroupId(groupId);
275 }
276
277 public static void removeByG_U(long groupId, long userId)
278 throws com.liferay.portal.SystemException {
279 getPersistence().removeByG_U(groupId, userId);
280 }
281
282 public static void removeByC_C(long classNameId, java.lang.String classPK)
283 throws com.liferay.portal.SystemException,
284 com.liferay.portlet.tasks.NoSuchProposalException {
285 getPersistence().removeByC_C(classNameId, classPK);
286 }
287
288 public static void removeAll() throws com.liferay.portal.SystemException {
289 getPersistence().removeAll();
290 }
291
292 public static int countByGroupId(long groupId)
293 throws com.liferay.portal.SystemException {
294 return getPersistence().countByGroupId(groupId);
295 }
296
297 public static int countByG_U(long groupId, long userId)
298 throws com.liferay.portal.SystemException {
299 return getPersistence().countByG_U(groupId, userId);
300 }
301
302 public static int countByC_C(long classNameId, java.lang.String classPK)
303 throws com.liferay.portal.SystemException {
304 return getPersistence().countByC_C(classNameId, classPK);
305 }
306
307 public static int countAll() throws com.liferay.portal.SystemException {
308 return getPersistence().countAll();
309 }
310
311 public static TasksProposalPersistence getPersistence() {
312 if (_persistence == null) {
313 _persistence = (TasksProposalPersistence)PortalBeanLocatorUtil.locate(TasksProposalPersistence.class.getName());
314
315 ReferenceRegistry.registerReference(TasksProposalUtil.class,
316 "_persistence");
317 }
318
319 return _persistence;
320 }
321
322 public void setPersistence(TasksProposalPersistence persistence) {
323 _persistence = persistence;
324
325 ReferenceRegistry.registerReference(TasksProposalUtil.class,
326 "_persistence");
327 }
328
329 private static TasksProposalPersistence _persistence;
330 }