1
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
38 public class TasksProposalUtil {
39
42 public static void clearCache() {
43 getPersistence().clearCache();
44 }
45
46
49 public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
50 throws SystemException {
51 return getPersistence().findWithDynamicQuery(dynamicQuery);
52 }
53
54
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
65 public static TasksProposal remove(TasksProposal tasksProposal)
66 throws SystemException {
67 return getPersistence().remove(tasksProposal);
68 }
69
70
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.kernel.exception.SystemException,
96 com.liferay.portlet.tasks.NoSuchProposalException {
97 return getPersistence().remove(proposalId);
98 }
99
100 public static com.liferay.portlet.tasks.model.TasksProposal updateImpl(
101 com.liferay.portlet.tasks.model.TasksProposal tasksProposal,
102 boolean merge)
103 throws com.liferay.portal.kernel.exception.SystemException {
104 return getPersistence().updateImpl(tasksProposal, merge);
105 }
106
107 public static com.liferay.portlet.tasks.model.TasksProposal findByPrimaryKey(
108 long proposalId)
109 throws com.liferay.portal.kernel.exception.SystemException,
110 com.liferay.portlet.tasks.NoSuchProposalException {
111 return getPersistence().findByPrimaryKey(proposalId);
112 }
113
114 public static com.liferay.portlet.tasks.model.TasksProposal fetchByPrimaryKey(
115 long proposalId)
116 throws com.liferay.portal.kernel.exception.SystemException {
117 return getPersistence().fetchByPrimaryKey(proposalId);
118 }
119
120 public static java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findByGroupId(
121 long groupId)
122 throws com.liferay.portal.kernel.exception.SystemException {
123 return getPersistence().findByGroupId(groupId);
124 }
125
126 public static java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findByGroupId(
127 long groupId, int start, int end)
128 throws com.liferay.portal.kernel.exception.SystemException {
129 return getPersistence().findByGroupId(groupId, start, end);
130 }
131
132 public static java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findByGroupId(
133 long groupId, int start, int end,
134 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
135 throws com.liferay.portal.kernel.exception.SystemException {
136 return getPersistence()
137 .findByGroupId(groupId, start, end, orderByComparator);
138 }
139
140 public static com.liferay.portlet.tasks.model.TasksProposal findByGroupId_First(
141 long groupId,
142 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
143 throws com.liferay.portal.kernel.exception.SystemException,
144 com.liferay.portlet.tasks.NoSuchProposalException {
145 return getPersistence().findByGroupId_First(groupId, orderByComparator);
146 }
147
148 public static com.liferay.portlet.tasks.model.TasksProposal findByGroupId_Last(
149 long groupId,
150 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
151 throws com.liferay.portal.kernel.exception.SystemException,
152 com.liferay.portlet.tasks.NoSuchProposalException {
153 return getPersistence().findByGroupId_Last(groupId, orderByComparator);
154 }
155
156 public static com.liferay.portlet.tasks.model.TasksProposal[] findByGroupId_PrevAndNext(
157 long proposalId, 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()
162 .findByGroupId_PrevAndNext(proposalId, groupId,
163 orderByComparator);
164 }
165
166 public static java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findByG_U(
167 long groupId, long userId)
168 throws com.liferay.portal.kernel.exception.SystemException {
169 return getPersistence().findByG_U(groupId, userId);
170 }
171
172 public static java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findByG_U(
173 long groupId, long userId, int start, int end)
174 throws com.liferay.portal.kernel.exception.SystemException {
175 return getPersistence().findByG_U(groupId, userId, start, end);
176 }
177
178 public static java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findByG_U(
179 long groupId, long userId, int start, int end,
180 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
181 throws com.liferay.portal.kernel.exception.SystemException {
182 return getPersistence()
183 .findByG_U(groupId, userId, start, end, orderByComparator);
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 orderByComparator)
189 throws com.liferay.portal.kernel.exception.SystemException,
190 com.liferay.portlet.tasks.NoSuchProposalException {
191 return getPersistence()
192 .findByG_U_First(groupId, userId, orderByComparator);
193 }
194
195 public static com.liferay.portlet.tasks.model.TasksProposal findByG_U_Last(
196 long groupId, long userId,
197 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
198 throws com.liferay.portal.kernel.exception.SystemException,
199 com.liferay.portlet.tasks.NoSuchProposalException {
200 return getPersistence()
201 .findByG_U_Last(groupId, userId, orderByComparator);
202 }
203
204 public static com.liferay.portlet.tasks.model.TasksProposal[] findByG_U_PrevAndNext(
205 long proposalId, long groupId, long userId,
206 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
207 throws com.liferay.portal.kernel.exception.SystemException,
208 com.liferay.portlet.tasks.NoSuchProposalException {
209 return getPersistence()
210 .findByG_U_PrevAndNext(proposalId, groupId, userId,
211 orderByComparator);
212 }
213
214 public static com.liferay.portlet.tasks.model.TasksProposal findByC_C(
215 long classNameId, java.lang.String classPK)
216 throws com.liferay.portal.kernel.exception.SystemException,
217 com.liferay.portlet.tasks.NoSuchProposalException {
218 return getPersistence().findByC_C(classNameId, classPK);
219 }
220
221 public static com.liferay.portlet.tasks.model.TasksProposal fetchByC_C(
222 long classNameId, java.lang.String classPK)
223 throws com.liferay.portal.kernel.exception.SystemException {
224 return getPersistence().fetchByC_C(classNameId, classPK);
225 }
226
227 public static com.liferay.portlet.tasks.model.TasksProposal fetchByC_C(
228 long classNameId, java.lang.String classPK, boolean retrieveFromCache)
229 throws com.liferay.portal.kernel.exception.SystemException {
230 return getPersistence()
231 .fetchByC_C(classNameId, classPK, retrieveFromCache);
232 }
233
234 public static java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findAll()
235 throws com.liferay.portal.kernel.exception.SystemException {
236 return getPersistence().findAll();
237 }
238
239 public static java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findAll(
240 int start, int end)
241 throws com.liferay.portal.kernel.exception.SystemException {
242 return getPersistence().findAll(start, end);
243 }
244
245 public static java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findAll(
246 int start, int end,
247 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
248 throws com.liferay.portal.kernel.exception.SystemException {
249 return getPersistence().findAll(start, end, orderByComparator);
250 }
251
252 public static void removeByGroupId(long groupId)
253 throws com.liferay.portal.kernel.exception.SystemException {
254 getPersistence().removeByGroupId(groupId);
255 }
256
257 public static void removeByG_U(long groupId, long userId)
258 throws com.liferay.portal.kernel.exception.SystemException {
259 getPersistence().removeByG_U(groupId, userId);
260 }
261
262 public static void removeByC_C(long classNameId, java.lang.String classPK)
263 throws com.liferay.portal.kernel.exception.SystemException,
264 com.liferay.portlet.tasks.NoSuchProposalException {
265 getPersistence().removeByC_C(classNameId, classPK);
266 }
267
268 public static void removeAll()
269 throws com.liferay.portal.kernel.exception.SystemException {
270 getPersistence().removeAll();
271 }
272
273 public static int countByGroupId(long groupId)
274 throws com.liferay.portal.kernel.exception.SystemException {
275 return getPersistence().countByGroupId(groupId);
276 }
277
278 public static int countByG_U(long groupId, long userId)
279 throws com.liferay.portal.kernel.exception.SystemException {
280 return getPersistence().countByG_U(groupId, userId);
281 }
282
283 public static int countByC_C(long classNameId, java.lang.String classPK)
284 throws com.liferay.portal.kernel.exception.SystemException {
285 return getPersistence().countByC_C(classNameId, classPK);
286 }
287
288 public static int countAll()
289 throws com.liferay.portal.kernel.exception.SystemException {
290 return getPersistence().countAll();
291 }
292
293 public static TasksProposalPersistence getPersistence() {
294 if (_persistence == null) {
295 _persistence = (TasksProposalPersistence)PortalBeanLocatorUtil.locate(TasksProposalPersistence.class.getName());
296 }
297
298 return _persistence;
299 }
300
301 public void setPersistence(TasksProposalPersistence persistence) {
302 _persistence = persistence;
303 }
304
305 private static TasksProposalPersistence _persistence;
306 }