001
014
015 package com.liferay.portlet.shopping.service.persistence;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
019 import com.liferay.portal.kernel.exception.SystemException;
020 import com.liferay.portal.kernel.util.OrderByComparator;
021 import com.liferay.portal.service.ServiceContext;
022
023 import com.liferay.portlet.shopping.model.ShoppingOrder;
024
025 import java.util.List;
026
027
033 public class ShoppingOrderUtil {
034
037 public static void clearCache() {
038 getPersistence().clearCache();
039 }
040
041
044 public static void clearCache(ShoppingOrder shoppingOrder) {
045 getPersistence().clearCache(shoppingOrder);
046 }
047
048
051 public long countWithDynamicQuery(DynamicQuery dynamicQuery)
052 throws SystemException {
053 return getPersistence().countWithDynamicQuery(dynamicQuery);
054 }
055
056
059 public static List<ShoppingOrder> findWithDynamicQuery(
060 DynamicQuery dynamicQuery) throws SystemException {
061 return getPersistence().findWithDynamicQuery(dynamicQuery);
062 }
063
064
067 public static List<ShoppingOrder> findWithDynamicQuery(
068 DynamicQuery dynamicQuery, int start, int end)
069 throws SystemException {
070 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
071 }
072
073
076 public static List<ShoppingOrder> findWithDynamicQuery(
077 DynamicQuery dynamicQuery, int start, int end,
078 OrderByComparator orderByComparator) throws SystemException {
079 return getPersistence()
080 .findWithDynamicQuery(dynamicQuery, start, end,
081 orderByComparator);
082 }
083
084
087 public static ShoppingOrder remove(ShoppingOrder shoppingOrder)
088 throws SystemException {
089 return getPersistence().remove(shoppingOrder);
090 }
091
092
095 public static ShoppingOrder update(ShoppingOrder shoppingOrder,
096 boolean merge) throws SystemException {
097 return getPersistence().update(shoppingOrder, merge);
098 }
099
100
103 public static ShoppingOrder update(ShoppingOrder shoppingOrder,
104 boolean merge, ServiceContext serviceContext) throws SystemException {
105 return getPersistence().update(shoppingOrder, merge, serviceContext);
106 }
107
108 public static void cacheResult(
109 com.liferay.portlet.shopping.model.ShoppingOrder shoppingOrder) {
110 getPersistence().cacheResult(shoppingOrder);
111 }
112
113 public static void cacheResult(
114 java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> shoppingOrders) {
115 getPersistence().cacheResult(shoppingOrders);
116 }
117
118 public static com.liferay.portlet.shopping.model.ShoppingOrder create(
119 long orderId) {
120 return getPersistence().create(orderId);
121 }
122
123 public static com.liferay.portlet.shopping.model.ShoppingOrder remove(
124 long orderId)
125 throws com.liferay.portal.kernel.exception.SystemException,
126 com.liferay.portlet.shopping.NoSuchOrderException {
127 return getPersistence().remove(orderId);
128 }
129
130 public static com.liferay.portlet.shopping.model.ShoppingOrder updateImpl(
131 com.liferay.portlet.shopping.model.ShoppingOrder shoppingOrder,
132 boolean merge)
133 throws com.liferay.portal.kernel.exception.SystemException {
134 return getPersistence().updateImpl(shoppingOrder, merge);
135 }
136
137 public static com.liferay.portlet.shopping.model.ShoppingOrder findByPrimaryKey(
138 long orderId)
139 throws com.liferay.portal.kernel.exception.SystemException,
140 com.liferay.portlet.shopping.NoSuchOrderException {
141 return getPersistence().findByPrimaryKey(orderId);
142 }
143
144 public static com.liferay.portlet.shopping.model.ShoppingOrder fetchByPrimaryKey(
145 long orderId)
146 throws com.liferay.portal.kernel.exception.SystemException {
147 return getPersistence().fetchByPrimaryKey(orderId);
148 }
149
150 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByGroupId(
151 long groupId)
152 throws com.liferay.portal.kernel.exception.SystemException {
153 return getPersistence().findByGroupId(groupId);
154 }
155
156 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByGroupId(
157 long groupId, int start, int end)
158 throws com.liferay.portal.kernel.exception.SystemException {
159 return getPersistence().findByGroupId(groupId, start, end);
160 }
161
162 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByGroupId(
163 long groupId, int start, int end,
164 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
165 throws com.liferay.portal.kernel.exception.SystemException {
166 return getPersistence()
167 .findByGroupId(groupId, start, end, orderByComparator);
168 }
169
170 public static com.liferay.portlet.shopping.model.ShoppingOrder findByGroupId_First(
171 long groupId,
172 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
173 throws com.liferay.portal.kernel.exception.SystemException,
174 com.liferay.portlet.shopping.NoSuchOrderException {
175 return getPersistence().findByGroupId_First(groupId, orderByComparator);
176 }
177
178 public static com.liferay.portlet.shopping.model.ShoppingOrder findByGroupId_Last(
179 long groupId,
180 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
181 throws com.liferay.portal.kernel.exception.SystemException,
182 com.liferay.portlet.shopping.NoSuchOrderException {
183 return getPersistence().findByGroupId_Last(groupId, orderByComparator);
184 }
185
186 public static com.liferay.portlet.shopping.model.ShoppingOrder[] findByGroupId_PrevAndNext(
187 long orderId, long groupId,
188 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
189 throws com.liferay.portal.kernel.exception.SystemException,
190 com.liferay.portlet.shopping.NoSuchOrderException {
191 return getPersistence()
192 .findByGroupId_PrevAndNext(orderId, groupId,
193 orderByComparator);
194 }
195
196 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> filterFindByGroupId(
197 long groupId)
198 throws com.liferay.portal.kernel.exception.SystemException {
199 return getPersistence().filterFindByGroupId(groupId);
200 }
201
202 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> filterFindByGroupId(
203 long groupId, int start, int end)
204 throws com.liferay.portal.kernel.exception.SystemException {
205 return getPersistence().filterFindByGroupId(groupId, start, end);
206 }
207
208 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> filterFindByGroupId(
209 long groupId, int start, int end,
210 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
211 throws com.liferay.portal.kernel.exception.SystemException {
212 return getPersistence()
213 .filterFindByGroupId(groupId, start, end, orderByComparator);
214 }
215
216 public static com.liferay.portlet.shopping.model.ShoppingOrder findByNumber(
217 java.lang.String number)
218 throws com.liferay.portal.kernel.exception.SystemException,
219 com.liferay.portlet.shopping.NoSuchOrderException {
220 return getPersistence().findByNumber(number);
221 }
222
223 public static com.liferay.portlet.shopping.model.ShoppingOrder fetchByNumber(
224 java.lang.String number)
225 throws com.liferay.portal.kernel.exception.SystemException {
226 return getPersistence().fetchByNumber(number);
227 }
228
229 public static com.liferay.portlet.shopping.model.ShoppingOrder fetchByNumber(
230 java.lang.String number, boolean retrieveFromCache)
231 throws com.liferay.portal.kernel.exception.SystemException {
232 return getPersistence().fetchByNumber(number, retrieveFromCache);
233 }
234
235 public static com.liferay.portlet.shopping.model.ShoppingOrder findByPPTxnId(
236 java.lang.String ppTxnId)
237 throws com.liferay.portal.kernel.exception.SystemException,
238 com.liferay.portlet.shopping.NoSuchOrderException {
239 return getPersistence().findByPPTxnId(ppTxnId);
240 }
241
242 public static com.liferay.portlet.shopping.model.ShoppingOrder fetchByPPTxnId(
243 java.lang.String ppTxnId)
244 throws com.liferay.portal.kernel.exception.SystemException {
245 return getPersistence().fetchByPPTxnId(ppTxnId);
246 }
247
248 public static com.liferay.portlet.shopping.model.ShoppingOrder fetchByPPTxnId(
249 java.lang.String ppTxnId, boolean retrieveFromCache)
250 throws com.liferay.portal.kernel.exception.SystemException {
251 return getPersistence().fetchByPPTxnId(ppTxnId, retrieveFromCache);
252 }
253
254 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByG_U_PPPS(
255 long groupId, long userId, java.lang.String ppPaymentStatus)
256 throws com.liferay.portal.kernel.exception.SystemException {
257 return getPersistence().findByG_U_PPPS(groupId, userId, ppPaymentStatus);
258 }
259
260 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByG_U_PPPS(
261 long groupId, long userId, java.lang.String ppPaymentStatus, int start,
262 int end) throws com.liferay.portal.kernel.exception.SystemException {
263 return getPersistence()
264 .findByG_U_PPPS(groupId, userId, ppPaymentStatus, start, end);
265 }
266
267 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByG_U_PPPS(
268 long groupId, long userId, java.lang.String ppPaymentStatus, int start,
269 int end,
270 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
271 throws com.liferay.portal.kernel.exception.SystemException {
272 return getPersistence()
273 .findByG_U_PPPS(groupId, userId, ppPaymentStatus, start,
274 end, orderByComparator);
275 }
276
277 public static com.liferay.portlet.shopping.model.ShoppingOrder findByG_U_PPPS_First(
278 long groupId, long userId, java.lang.String ppPaymentStatus,
279 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
280 throws com.liferay.portal.kernel.exception.SystemException,
281 com.liferay.portlet.shopping.NoSuchOrderException {
282 return getPersistence()
283 .findByG_U_PPPS_First(groupId, userId, ppPaymentStatus,
284 orderByComparator);
285 }
286
287 public static com.liferay.portlet.shopping.model.ShoppingOrder findByG_U_PPPS_Last(
288 long groupId, long userId, java.lang.String ppPaymentStatus,
289 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
290 throws com.liferay.portal.kernel.exception.SystemException,
291 com.liferay.portlet.shopping.NoSuchOrderException {
292 return getPersistence()
293 .findByG_U_PPPS_Last(groupId, userId, ppPaymentStatus,
294 orderByComparator);
295 }
296
297 public static com.liferay.portlet.shopping.model.ShoppingOrder[] findByG_U_PPPS_PrevAndNext(
298 long orderId, long groupId, long userId,
299 java.lang.String ppPaymentStatus,
300 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
301 throws com.liferay.portal.kernel.exception.SystemException,
302 com.liferay.portlet.shopping.NoSuchOrderException {
303 return getPersistence()
304 .findByG_U_PPPS_PrevAndNext(orderId, groupId, userId,
305 ppPaymentStatus, orderByComparator);
306 }
307
308 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> filterFindByG_U_PPPS(
309 long groupId, long userId, java.lang.String ppPaymentStatus)
310 throws com.liferay.portal.kernel.exception.SystemException {
311 return getPersistence()
312 .filterFindByG_U_PPPS(groupId, userId, ppPaymentStatus);
313 }
314
315 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> filterFindByG_U_PPPS(
316 long groupId, long userId, java.lang.String ppPaymentStatus, int start,
317 int end) throws com.liferay.portal.kernel.exception.SystemException {
318 return getPersistence()
319 .filterFindByG_U_PPPS(groupId, userId, ppPaymentStatus,
320 start, end);
321 }
322
323 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> filterFindByG_U_PPPS(
324 long groupId, long userId, java.lang.String ppPaymentStatus, int start,
325 int end,
326 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
327 throws com.liferay.portal.kernel.exception.SystemException {
328 return getPersistence()
329 .filterFindByG_U_PPPS(groupId, userId, ppPaymentStatus,
330 start, end, orderByComparator);
331 }
332
333 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findAll()
334 throws com.liferay.portal.kernel.exception.SystemException {
335 return getPersistence().findAll();
336 }
337
338 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findAll(
339 int start, int end)
340 throws com.liferay.portal.kernel.exception.SystemException {
341 return getPersistence().findAll(start, end);
342 }
343
344 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findAll(
345 int start, int end,
346 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
347 throws com.liferay.portal.kernel.exception.SystemException {
348 return getPersistence().findAll(start, end, orderByComparator);
349 }
350
351 public static void removeByGroupId(long groupId)
352 throws com.liferay.portal.kernel.exception.SystemException {
353 getPersistence().removeByGroupId(groupId);
354 }
355
356 public static void removeByNumber(java.lang.String number)
357 throws com.liferay.portal.kernel.exception.SystemException,
358 com.liferay.portlet.shopping.NoSuchOrderException {
359 getPersistence().removeByNumber(number);
360 }
361
362 public static void removeByPPTxnId(java.lang.String ppTxnId)
363 throws com.liferay.portal.kernel.exception.SystemException,
364 com.liferay.portlet.shopping.NoSuchOrderException {
365 getPersistence().removeByPPTxnId(ppTxnId);
366 }
367
368 public static void removeByG_U_PPPS(long groupId, long userId,
369 java.lang.String ppPaymentStatus)
370 throws com.liferay.portal.kernel.exception.SystemException {
371 getPersistence().removeByG_U_PPPS(groupId, userId, ppPaymentStatus);
372 }
373
374 public static void removeAll()
375 throws com.liferay.portal.kernel.exception.SystemException {
376 getPersistence().removeAll();
377 }
378
379 public static int countByGroupId(long groupId)
380 throws com.liferay.portal.kernel.exception.SystemException {
381 return getPersistence().countByGroupId(groupId);
382 }
383
384 public static int filterCountByGroupId(long groupId)
385 throws com.liferay.portal.kernel.exception.SystemException {
386 return getPersistence().filterCountByGroupId(groupId);
387 }
388
389 public static int countByNumber(java.lang.String number)
390 throws com.liferay.portal.kernel.exception.SystemException {
391 return getPersistence().countByNumber(number);
392 }
393
394 public static int countByPPTxnId(java.lang.String ppTxnId)
395 throws com.liferay.portal.kernel.exception.SystemException {
396 return getPersistence().countByPPTxnId(ppTxnId);
397 }
398
399 public static int countByG_U_PPPS(long groupId, long userId,
400 java.lang.String ppPaymentStatus)
401 throws com.liferay.portal.kernel.exception.SystemException {
402 return getPersistence().countByG_U_PPPS(groupId, userId, ppPaymentStatus);
403 }
404
405 public static int filterCountByG_U_PPPS(long groupId, long userId,
406 java.lang.String ppPaymentStatus)
407 throws com.liferay.portal.kernel.exception.SystemException {
408 return getPersistence()
409 .filterCountByG_U_PPPS(groupId, userId, ppPaymentStatus);
410 }
411
412 public static int countAll()
413 throws com.liferay.portal.kernel.exception.SystemException {
414 return getPersistence().countAll();
415 }
416
417 public static ShoppingOrderPersistence getPersistence() {
418 if (_persistence == null) {
419 _persistence = (ShoppingOrderPersistence)PortalBeanLocatorUtil.locate(ShoppingOrderPersistence.class.getName());
420 }
421
422 return _persistence;
423 }
424
425 public void setPersistence(ShoppingOrderPersistence persistence) {
426 _persistence = persistence;
427 }
428
429 private static ShoppingOrderPersistence _persistence;
430 }