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