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