1
22
23 package com.liferay.portlet.tasks.service.persistence;
24
25 import com.liferay.portal.SystemException;
26 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
27 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
28
29 import com.liferay.portlet.tasks.model.TasksProposal;
30
31 import java.util.List;
32
33
46 public class TasksProposalUtil {
47
50 public static void clearCache() {
51 getPersistence().clearCache();
52 }
53
54
57 public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
58 throws SystemException {
59 return getPersistence().findWithDynamicQuery(dynamicQuery);
60 }
61
62
65 public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
66 int start, int end) throws SystemException {
67 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
68 }
69
70
73 public static TasksProposal remove(TasksProposal tasksProposal)
74 throws SystemException {
75 return getPersistence().remove(tasksProposal);
76 }
77
78
81 public static TasksProposal update(TasksProposal tasksProposal,
82 boolean merge) throws SystemException {
83 return getPersistence().update(tasksProposal, merge);
84 }
85
86 public static void cacheResult(
87 com.liferay.portlet.tasks.model.TasksProposal tasksProposal) {
88 getPersistence().cacheResult(tasksProposal);
89 }
90
91 public static void cacheResult(
92 java.util.List<com.liferay.portlet.tasks.model.TasksProposal> tasksProposals) {
93 getPersistence().cacheResult(tasksProposals);
94 }
95
96 public static com.liferay.portlet.tasks.model.TasksProposal create(
97 long proposalId) {
98 return getPersistence().create(proposalId);
99 }
100
101 public static com.liferay.portlet.tasks.model.TasksProposal remove(
102 long proposalId)
103 throws com.liferay.portal.SystemException,
104 com.liferay.portlet.tasks.NoSuchProposalException {
105 return getPersistence().remove(proposalId);
106 }
107
108
111 public static com.liferay.portlet.tasks.model.TasksProposal update(
112 com.liferay.portlet.tasks.model.TasksProposal tasksProposal)
113 throws com.liferay.portal.SystemException {
114 return getPersistence().update(tasksProposal);
115 }
116
117 public static com.liferay.portlet.tasks.model.TasksProposal updateImpl(
118 com.liferay.portlet.tasks.model.TasksProposal tasksProposal,
119 boolean merge) throws com.liferay.portal.SystemException {
120 return getPersistence().updateImpl(tasksProposal, merge);
121 }
122
123 public static com.liferay.portlet.tasks.model.TasksProposal findByPrimaryKey(
124 long proposalId)
125 throws com.liferay.portal.SystemException,
126 com.liferay.portlet.tasks.NoSuchProposalException {
127 return getPersistence().findByPrimaryKey(proposalId);
128 }
129
130 public static com.liferay.portlet.tasks.model.TasksProposal fetchByPrimaryKey(
131 long proposalId) throws com.liferay.portal.SystemException {
132 return getPersistence().fetchByPrimaryKey(proposalId);
133 }
134
135 public static java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findByGroupId(
136 long groupId) throws com.liferay.portal.SystemException {
137 return getPersistence().findByGroupId(groupId);
138 }
139
140 public static java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findByGroupId(
141 long groupId, int start, int end)
142 throws com.liferay.portal.SystemException {
143 return getPersistence().findByGroupId(groupId, start, end);
144 }
145
146 public static java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findByGroupId(
147 long groupId, int start, int end,
148 com.liferay.portal.kernel.util.OrderByComparator obc)
149 throws com.liferay.portal.SystemException {
150 return getPersistence().findByGroupId(groupId, start, end, obc);
151 }
152
153 public static com.liferay.portlet.tasks.model.TasksProposal findByGroupId_First(
154 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
155 throws com.liferay.portal.SystemException,
156 com.liferay.portlet.tasks.NoSuchProposalException {
157 return getPersistence().findByGroupId_First(groupId, obc);
158 }
159
160 public static com.liferay.portlet.tasks.model.TasksProposal findByGroupId_Last(
161 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
162 throws com.liferay.portal.SystemException,
163 com.liferay.portlet.tasks.NoSuchProposalException {
164 return getPersistence().findByGroupId_Last(groupId, obc);
165 }
166
167 public static com.liferay.portlet.tasks.model.TasksProposal[] findByGroupId_PrevAndNext(
168 long proposalId, long groupId,
169 com.liferay.portal.kernel.util.OrderByComparator obc)
170 throws com.liferay.portal.SystemException,
171 com.liferay.portlet.tasks.NoSuchProposalException {
172 return getPersistence()
173 .findByGroupId_PrevAndNext(proposalId, groupId, obc);
174 }
175
176 public static java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findByG_U(
177 long groupId, long userId) throws com.liferay.portal.SystemException {
178 return getPersistence().findByG_U(groupId, userId);
179 }
180
181 public static java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findByG_U(
182 long groupId, long userId, int start, int end)
183 throws com.liferay.portal.SystemException {
184 return getPersistence().findByG_U(groupId, userId, start, end);
185 }
186
187 public static java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findByG_U(
188 long groupId, long userId, int start, int end,
189 com.liferay.portal.kernel.util.OrderByComparator obc)
190 throws com.liferay.portal.SystemException {
191 return getPersistence().findByG_U(groupId, userId, start, end, obc);
192 }
193
194 public static com.liferay.portlet.tasks.model.TasksProposal findByG_U_First(
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_First(groupId, userId, obc);
200 }
201
202 public static com.liferay.portlet.tasks.model.TasksProposal findByG_U_Last(
203 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().findByG_U_Last(groupId, userId, obc);
208 }
209
210 public static com.liferay.portlet.tasks.model.TasksProposal[] findByG_U_PrevAndNext(
211 long proposalId, long groupId, long userId,
212 com.liferay.portal.kernel.util.OrderByComparator obc)
213 throws com.liferay.portal.SystemException,
214 com.liferay.portlet.tasks.NoSuchProposalException {
215 return getPersistence()
216 .findByG_U_PrevAndNext(proposalId, groupId, userId, obc);
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, com.liferay.portal.kernel.util.OrderByComparator obc)
251 throws com.liferay.portal.SystemException {
252 return getPersistence().findAll(start, end, obc);
253 }
254
255 public static void removeByGroupId(long groupId)
256 throws com.liferay.portal.SystemException {
257 getPersistence().removeByGroupId(groupId);
258 }
259
260 public static void removeByG_U(long groupId, long userId)
261 throws com.liferay.portal.SystemException {
262 getPersistence().removeByG_U(groupId, userId);
263 }
264
265 public static void removeByC_C(long classNameId, java.lang.String classPK)
266 throws com.liferay.portal.SystemException,
267 com.liferay.portlet.tasks.NoSuchProposalException {
268 getPersistence().removeByC_C(classNameId, classPK);
269 }
270
271 public static void removeAll() throws com.liferay.portal.SystemException {
272 getPersistence().removeAll();
273 }
274
275 public static int countByGroupId(long groupId)
276 throws com.liferay.portal.SystemException {
277 return getPersistence().countByGroupId(groupId);
278 }
279
280 public static int countByG_U(long groupId, long userId)
281 throws com.liferay.portal.SystemException {
282 return getPersistence().countByG_U(groupId, userId);
283 }
284
285 public static int countByC_C(long classNameId, java.lang.String classPK)
286 throws com.liferay.portal.SystemException {
287 return getPersistence().countByC_C(classNameId, classPK);
288 }
289
290 public static int countAll() throws com.liferay.portal.SystemException {
291 return getPersistence().countAll();
292 }
293
294 public static TasksProposalPersistence getPersistence() {
295 if (_persistence == null) {
296 _persistence = (TasksProposalPersistence)PortalBeanLocatorUtil.locate(TasksProposalPersistence.class.getName());
297 }
298
299 return _persistence;
300 }
301
302 public void setPersistence(TasksProposalPersistence persistence) {
303 _persistence = persistence;
304 }
305
306 private static TasksProposalPersistence _persistence;
307 }