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