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
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.SystemException,
96 com.liferay.portlet.tasks.NoSuchProposalException {
97 return getPersistence().remove(proposalId);
98 }
99
100
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 orderByComparator)
141 throws com.liferay.portal.SystemException {
142 return getPersistence()
143 .findByGroupId(groupId, start, end, orderByComparator);
144 }
145
146 public static com.liferay.portlet.tasks.model.TasksProposal findByGroupId_First(
147 long groupId,
148 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
149 throws com.liferay.portal.SystemException,
150 com.liferay.portlet.tasks.NoSuchProposalException {
151 return getPersistence().findByGroupId_First(groupId, orderByComparator);
152 }
153
154 public static com.liferay.portlet.tasks.model.TasksProposal findByGroupId_Last(
155 long groupId,
156 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
157 throws com.liferay.portal.SystemException,
158 com.liferay.portlet.tasks.NoSuchProposalException {
159 return getPersistence().findByGroupId_Last(groupId, orderByComparator);
160 }
161
162 public static com.liferay.portlet.tasks.model.TasksProposal[] findByGroupId_PrevAndNext(
163 long proposalId, 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()
168 .findByGroupId_PrevAndNext(proposalId, groupId,
169 orderByComparator);
170 }
171
172 public static java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findByG_U(
173 long groupId, long userId) throws com.liferay.portal.SystemException {
174 return getPersistence().findByG_U(groupId, userId);
175 }
176
177 public static java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findByG_U(
178 long groupId, long userId, int start, int end)
179 throws com.liferay.portal.SystemException {
180 return getPersistence().findByG_U(groupId, userId, start, end);
181 }
182
183 public static java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findByG_U(
184 long groupId, long userId, int start, int end,
185 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
186 throws com.liferay.portal.SystemException {
187 return getPersistence()
188 .findByG_U(groupId, userId, start, end, orderByComparator);
189 }
190
191 public static com.liferay.portlet.tasks.model.TasksProposal findByG_U_First(
192 long groupId, long userId,
193 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
194 throws com.liferay.portal.SystemException,
195 com.liferay.portlet.tasks.NoSuchProposalException {
196 return getPersistence()
197 .findByG_U_First(groupId, userId, orderByComparator);
198 }
199
200 public static com.liferay.portlet.tasks.model.TasksProposal findByG_U_Last(
201 long groupId, long userId,
202 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
203 throws com.liferay.portal.SystemException,
204 com.liferay.portlet.tasks.NoSuchProposalException {
205 return getPersistence()
206 .findByG_U_Last(groupId, userId, orderByComparator);
207 }
208
209 public static com.liferay.portlet.tasks.model.TasksProposal[] findByG_U_PrevAndNext(
210 long proposalId, long groupId, long userId,
211 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
212 throws com.liferay.portal.SystemException,
213 com.liferay.portlet.tasks.NoSuchProposalException {
214 return getPersistence()
215 .findByG_U_PrevAndNext(proposalId, groupId, userId,
216 orderByComparator);
217 }
218
219 public static com.liferay.portlet.tasks.model.TasksProposal findByC_C(
220 long classNameId, java.lang.String classPK)
221 throws com.liferay.portal.SystemException,
222 com.liferay.portlet.tasks.NoSuchProposalException {
223 return getPersistence().findByC_C(classNameId, classPK);
224 }
225
226 public static com.liferay.portlet.tasks.model.TasksProposal fetchByC_C(
227 long classNameId, java.lang.String classPK)
228 throws com.liferay.portal.SystemException {
229 return getPersistence().fetchByC_C(classNameId, classPK);
230 }
231
232 public static com.liferay.portlet.tasks.model.TasksProposal fetchByC_C(
233 long classNameId, java.lang.String classPK, boolean retrieveFromCache)
234 throws com.liferay.portal.SystemException {
235 return getPersistence()
236 .fetchByC_C(classNameId, classPK, retrieveFromCache);
237 }
238
239 public static java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findAll()
240 throws com.liferay.portal.SystemException {
241 return getPersistence().findAll();
242 }
243
244 public static java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findAll(
245 int start, int end) throws com.liferay.portal.SystemException {
246 return getPersistence().findAll(start, end);
247 }
248
249 public static java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findAll(
250 int start, int end,
251 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
252 throws com.liferay.portal.SystemException {
253 return getPersistence().findAll(start, end, orderByComparator);
254 }
255
256 public static void removeByGroupId(long groupId)
257 throws com.liferay.portal.SystemException {
258 getPersistence().removeByGroupId(groupId);
259 }
260
261 public static void removeByG_U(long groupId, long userId)
262 throws com.liferay.portal.SystemException {
263 getPersistence().removeByG_U(groupId, userId);
264 }
265
266 public static void removeByC_C(long classNameId, java.lang.String classPK)
267 throws com.liferay.portal.SystemException,
268 com.liferay.portlet.tasks.NoSuchProposalException {
269 getPersistence().removeByC_C(classNameId, classPK);
270 }
271
272 public static void removeAll() throws com.liferay.portal.SystemException {
273 getPersistence().removeAll();
274 }
275
276 public static int countByGroupId(long groupId)
277 throws com.liferay.portal.SystemException {
278 return getPersistence().countByGroupId(groupId);
279 }
280
281 public static int countByG_U(long groupId, long userId)
282 throws com.liferay.portal.SystemException {
283 return getPersistence().countByG_U(groupId, userId);
284 }
285
286 public static int countByC_C(long classNameId, java.lang.String classPK)
287 throws com.liferay.portal.SystemException {
288 return getPersistence().countByC_C(classNameId, classPK);
289 }
290
291 public static int countAll() throws com.liferay.portal.SystemException {
292 return getPersistence().countAll();
293 }
294
295 public static TasksProposalPersistence getPersistence() {
296 if (_persistence == null) {
297 _persistence = (TasksProposalPersistence)PortalBeanLocatorUtil.locate(TasksProposalPersistence.class.getName());
298 }
299
300 return _persistence;
301 }
302
303 public void setPersistence(TasksProposalPersistence persistence) {
304 _persistence = persistence;
305 }
306
307 private static TasksProposalPersistence _persistence;
308 }