1
14
15 package com.liferay.portlet.shopping.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.shopping.model.ShoppingOrder;
22
23 import java.util.List;
24
25
38 public class ShoppingOrderUtil {
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 ShoppingOrder remove(ShoppingOrder shoppingOrder)
66 throws SystemException {
67 return getPersistence().remove(shoppingOrder);
68 }
69
70
73 public static ShoppingOrder update(ShoppingOrder shoppingOrder,
74 boolean merge) throws SystemException {
75 return getPersistence().update(shoppingOrder, merge);
76 }
77
78 public static void cacheResult(
79 com.liferay.portlet.shopping.model.ShoppingOrder shoppingOrder) {
80 getPersistence().cacheResult(shoppingOrder);
81 }
82
83 public static void cacheResult(
84 java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> shoppingOrders) {
85 getPersistence().cacheResult(shoppingOrders);
86 }
87
88 public static com.liferay.portlet.shopping.model.ShoppingOrder create(
89 long orderId) {
90 return getPersistence().create(orderId);
91 }
92
93 public static com.liferay.portlet.shopping.model.ShoppingOrder remove(
94 long orderId)
95 throws com.liferay.portal.kernel.exception.SystemException,
96 com.liferay.portlet.shopping.NoSuchOrderException {
97 return getPersistence().remove(orderId);
98 }
99
100 public static com.liferay.portlet.shopping.model.ShoppingOrder updateImpl(
101 com.liferay.portlet.shopping.model.ShoppingOrder shoppingOrder,
102 boolean merge)
103 throws com.liferay.portal.kernel.exception.SystemException {
104 return getPersistence().updateImpl(shoppingOrder, merge);
105 }
106
107 public static com.liferay.portlet.shopping.model.ShoppingOrder findByPrimaryKey(
108 long orderId)
109 throws com.liferay.portal.kernel.exception.SystemException,
110 com.liferay.portlet.shopping.NoSuchOrderException {
111 return getPersistence().findByPrimaryKey(orderId);
112 }
113
114 public static com.liferay.portlet.shopping.model.ShoppingOrder fetchByPrimaryKey(
115 long orderId)
116 throws com.liferay.portal.kernel.exception.SystemException {
117 return getPersistence().fetchByPrimaryKey(orderId);
118 }
119
120 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> 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.shopping.model.ShoppingOrder> 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.shopping.model.ShoppingOrder> findByGroupId(
133 long groupId, int start, int end,
134 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
135 throws com.liferay.portal.kernel.exception.SystemException {
136 return getPersistence()
137 .findByGroupId(groupId, start, end, orderByComparator);
138 }
139
140 public static com.liferay.portlet.shopping.model.ShoppingOrder findByGroupId_First(
141 long groupId,
142 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
143 throws com.liferay.portal.kernel.exception.SystemException,
144 com.liferay.portlet.shopping.NoSuchOrderException {
145 return getPersistence().findByGroupId_First(groupId, orderByComparator);
146 }
147
148 public static com.liferay.portlet.shopping.model.ShoppingOrder findByGroupId_Last(
149 long groupId,
150 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
151 throws com.liferay.portal.kernel.exception.SystemException,
152 com.liferay.portlet.shopping.NoSuchOrderException {
153 return getPersistence().findByGroupId_Last(groupId, orderByComparator);
154 }
155
156 public static com.liferay.portlet.shopping.model.ShoppingOrder[] findByGroupId_PrevAndNext(
157 long orderId, long groupId,
158 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
159 throws com.liferay.portal.kernel.exception.SystemException,
160 com.liferay.portlet.shopping.NoSuchOrderException {
161 return getPersistence()
162 .findByGroupId_PrevAndNext(orderId, groupId,
163 orderByComparator);
164 }
165
166 public static com.liferay.portlet.shopping.model.ShoppingOrder findByNumber(
167 java.lang.String number)
168 throws com.liferay.portal.kernel.exception.SystemException,
169 com.liferay.portlet.shopping.NoSuchOrderException {
170 return getPersistence().findByNumber(number);
171 }
172
173 public static com.liferay.portlet.shopping.model.ShoppingOrder fetchByNumber(
174 java.lang.String number)
175 throws com.liferay.portal.kernel.exception.SystemException {
176 return getPersistence().fetchByNumber(number);
177 }
178
179 public static com.liferay.portlet.shopping.model.ShoppingOrder fetchByNumber(
180 java.lang.String number, boolean retrieveFromCache)
181 throws com.liferay.portal.kernel.exception.SystemException {
182 return getPersistence().fetchByNumber(number, retrieveFromCache);
183 }
184
185 public static com.liferay.portlet.shopping.model.ShoppingOrder findByPPTxnId(
186 java.lang.String ppTxnId)
187 throws com.liferay.portal.kernel.exception.SystemException,
188 com.liferay.portlet.shopping.NoSuchOrderException {
189 return getPersistence().findByPPTxnId(ppTxnId);
190 }
191
192 public static com.liferay.portlet.shopping.model.ShoppingOrder fetchByPPTxnId(
193 java.lang.String ppTxnId)
194 throws com.liferay.portal.kernel.exception.SystemException {
195 return getPersistence().fetchByPPTxnId(ppTxnId);
196 }
197
198 public static com.liferay.portlet.shopping.model.ShoppingOrder fetchByPPTxnId(
199 java.lang.String ppTxnId, boolean retrieveFromCache)
200 throws com.liferay.portal.kernel.exception.SystemException {
201 return getPersistence().fetchByPPTxnId(ppTxnId, retrieveFromCache);
202 }
203
204 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByG_U_PPPS(
205 long groupId, long userId, java.lang.String ppPaymentStatus)
206 throws com.liferay.portal.kernel.exception.SystemException {
207 return getPersistence().findByG_U_PPPS(groupId, userId, ppPaymentStatus);
208 }
209
210 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByG_U_PPPS(
211 long groupId, long userId, java.lang.String ppPaymentStatus, int start,
212 int end) throws com.liferay.portal.kernel.exception.SystemException {
213 return getPersistence()
214 .findByG_U_PPPS(groupId, userId, ppPaymentStatus, start, end);
215 }
216
217 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByG_U_PPPS(
218 long groupId, long userId, java.lang.String ppPaymentStatus, int start,
219 int end,
220 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
221 throws com.liferay.portal.kernel.exception.SystemException {
222 return getPersistence()
223 .findByG_U_PPPS(groupId, userId, ppPaymentStatus, start,
224 end, orderByComparator);
225 }
226
227 public static com.liferay.portlet.shopping.model.ShoppingOrder findByG_U_PPPS_First(
228 long groupId, long userId, java.lang.String ppPaymentStatus,
229 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
230 throws com.liferay.portal.kernel.exception.SystemException,
231 com.liferay.portlet.shopping.NoSuchOrderException {
232 return getPersistence()
233 .findByG_U_PPPS_First(groupId, userId, ppPaymentStatus,
234 orderByComparator);
235 }
236
237 public static com.liferay.portlet.shopping.model.ShoppingOrder findByG_U_PPPS_Last(
238 long groupId, long userId, java.lang.String ppPaymentStatus,
239 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
240 throws com.liferay.portal.kernel.exception.SystemException,
241 com.liferay.portlet.shopping.NoSuchOrderException {
242 return getPersistence()
243 .findByG_U_PPPS_Last(groupId, userId, ppPaymentStatus,
244 orderByComparator);
245 }
246
247 public static com.liferay.portlet.shopping.model.ShoppingOrder[] findByG_U_PPPS_PrevAndNext(
248 long orderId, long groupId, long userId,
249 java.lang.String ppPaymentStatus,
250 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
251 throws com.liferay.portal.kernel.exception.SystemException,
252 com.liferay.portlet.shopping.NoSuchOrderException {
253 return getPersistence()
254 .findByG_U_PPPS_PrevAndNext(orderId, groupId, userId,
255 ppPaymentStatus, orderByComparator);
256 }
257
258 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findAll()
259 throws com.liferay.portal.kernel.exception.SystemException {
260 return getPersistence().findAll();
261 }
262
263 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findAll(
264 int start, int end)
265 throws com.liferay.portal.kernel.exception.SystemException {
266 return getPersistence().findAll(start, end);
267 }
268
269 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findAll(
270 int start, int end,
271 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
272 throws com.liferay.portal.kernel.exception.SystemException {
273 return getPersistence().findAll(start, end, orderByComparator);
274 }
275
276 public static void removeByGroupId(long groupId)
277 throws com.liferay.portal.kernel.exception.SystemException {
278 getPersistence().removeByGroupId(groupId);
279 }
280
281 public static void removeByNumber(java.lang.String number)
282 throws com.liferay.portal.kernel.exception.SystemException,
283 com.liferay.portlet.shopping.NoSuchOrderException {
284 getPersistence().removeByNumber(number);
285 }
286
287 public static void removeByPPTxnId(java.lang.String ppTxnId)
288 throws com.liferay.portal.kernel.exception.SystemException,
289 com.liferay.portlet.shopping.NoSuchOrderException {
290 getPersistence().removeByPPTxnId(ppTxnId);
291 }
292
293 public static void removeByG_U_PPPS(long groupId, long userId,
294 java.lang.String ppPaymentStatus)
295 throws com.liferay.portal.kernel.exception.SystemException {
296 getPersistence().removeByG_U_PPPS(groupId, userId, ppPaymentStatus);
297 }
298
299 public static void removeAll()
300 throws com.liferay.portal.kernel.exception.SystemException {
301 getPersistence().removeAll();
302 }
303
304 public static int countByGroupId(long groupId)
305 throws com.liferay.portal.kernel.exception.SystemException {
306 return getPersistence().countByGroupId(groupId);
307 }
308
309 public static int countByNumber(java.lang.String number)
310 throws com.liferay.portal.kernel.exception.SystemException {
311 return getPersistence().countByNumber(number);
312 }
313
314 public static int countByPPTxnId(java.lang.String ppTxnId)
315 throws com.liferay.portal.kernel.exception.SystemException {
316 return getPersistence().countByPPTxnId(ppTxnId);
317 }
318
319 public static int countByG_U_PPPS(long groupId, long userId,
320 java.lang.String ppPaymentStatus)
321 throws com.liferay.portal.kernel.exception.SystemException {
322 return getPersistence().countByG_U_PPPS(groupId, userId, ppPaymentStatus);
323 }
324
325 public static int countAll()
326 throws com.liferay.portal.kernel.exception.SystemException {
327 return getPersistence().countAll();
328 }
329
330 public static ShoppingOrderPersistence getPersistence() {
331 if (_persistence == null) {
332 _persistence = (ShoppingOrderPersistence)PortalBeanLocatorUtil.locate(ShoppingOrderPersistence.class.getName());
333 }
334
335 return _persistence;
336 }
337
338 public void setPersistence(ShoppingOrderPersistence persistence) {
339 _persistence = persistence;
340 }
341
342 private static ShoppingOrderPersistence _persistence;
343 }