1
22
23 package com.liferay.portlet.shopping.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.shopping.model.ShoppingOrder;
30
31 import java.util.List;
32
33
46 public class ShoppingOrderUtil {
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 ShoppingOrder remove(ShoppingOrder shoppingOrder)
74 throws SystemException {
75 return getPersistence().remove(shoppingOrder);
76 }
77
78
81 public static ShoppingOrder update(ShoppingOrder shoppingOrder,
82 boolean merge) throws SystemException {
83 return getPersistence().update(shoppingOrder, merge);
84 }
85
86 public static void cacheResult(
87 com.liferay.portlet.shopping.model.ShoppingOrder shoppingOrder) {
88 getPersistence().cacheResult(shoppingOrder);
89 }
90
91 public static void cacheResult(
92 java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> shoppingOrders) {
93 getPersistence().cacheResult(shoppingOrders);
94 }
95
96 public static com.liferay.portlet.shopping.model.ShoppingOrder create(
97 long orderId) {
98 return getPersistence().create(orderId);
99 }
100
101 public static com.liferay.portlet.shopping.model.ShoppingOrder remove(
102 long orderId)
103 throws com.liferay.portal.SystemException,
104 com.liferay.portlet.shopping.NoSuchOrderException {
105 return getPersistence().remove(orderId);
106 }
107
108
111 public static com.liferay.portlet.shopping.model.ShoppingOrder update(
112 com.liferay.portlet.shopping.model.ShoppingOrder shoppingOrder)
113 throws com.liferay.portal.SystemException {
114 return getPersistence().update(shoppingOrder);
115 }
116
117 public static com.liferay.portlet.shopping.model.ShoppingOrder updateImpl(
118 com.liferay.portlet.shopping.model.ShoppingOrder shoppingOrder,
119 boolean merge) throws com.liferay.portal.SystemException {
120 return getPersistence().updateImpl(shoppingOrder, merge);
121 }
122
123 public static com.liferay.portlet.shopping.model.ShoppingOrder findByPrimaryKey(
124 long orderId)
125 throws com.liferay.portal.SystemException,
126 com.liferay.portlet.shopping.NoSuchOrderException {
127 return getPersistence().findByPrimaryKey(orderId);
128 }
129
130 public static com.liferay.portlet.shopping.model.ShoppingOrder fetchByPrimaryKey(
131 long orderId) throws com.liferay.portal.SystemException {
132 return getPersistence().fetchByPrimaryKey(orderId);
133 }
134
135 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> 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.shopping.model.ShoppingOrder> 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.shopping.model.ShoppingOrder> 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.shopping.model.ShoppingOrder findByGroupId_First(
154 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
155 throws com.liferay.portal.SystemException,
156 com.liferay.portlet.shopping.NoSuchOrderException {
157 return getPersistence().findByGroupId_First(groupId, obc);
158 }
159
160 public static com.liferay.portlet.shopping.model.ShoppingOrder findByGroupId_Last(
161 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
162 throws com.liferay.portal.SystemException,
163 com.liferay.portlet.shopping.NoSuchOrderException {
164 return getPersistence().findByGroupId_Last(groupId, obc);
165 }
166
167 public static com.liferay.portlet.shopping.model.ShoppingOrder[] findByGroupId_PrevAndNext(
168 long orderId, long groupId,
169 com.liferay.portal.kernel.util.OrderByComparator obc)
170 throws com.liferay.portal.SystemException,
171 com.liferay.portlet.shopping.NoSuchOrderException {
172 return getPersistence().findByGroupId_PrevAndNext(orderId, groupId, obc);
173 }
174
175 public static com.liferay.portlet.shopping.model.ShoppingOrder findByNumber(
176 java.lang.String number)
177 throws com.liferay.portal.SystemException,
178 com.liferay.portlet.shopping.NoSuchOrderException {
179 return getPersistence().findByNumber(number);
180 }
181
182 public static com.liferay.portlet.shopping.model.ShoppingOrder fetchByNumber(
183 java.lang.String number) throws com.liferay.portal.SystemException {
184 return getPersistence().fetchByNumber(number);
185 }
186
187 public static com.liferay.portlet.shopping.model.ShoppingOrder fetchByNumber(
188 java.lang.String number, boolean retrieveFromCache)
189 throws com.liferay.portal.SystemException {
190 return getPersistence().fetchByNumber(number, retrieveFromCache);
191 }
192
193 public static com.liferay.portlet.shopping.model.ShoppingOrder findByPPTxnId(
194 java.lang.String ppTxnId)
195 throws com.liferay.portal.SystemException,
196 com.liferay.portlet.shopping.NoSuchOrderException {
197 return getPersistence().findByPPTxnId(ppTxnId);
198 }
199
200 public static com.liferay.portlet.shopping.model.ShoppingOrder fetchByPPTxnId(
201 java.lang.String ppTxnId) throws com.liferay.portal.SystemException {
202 return getPersistence().fetchByPPTxnId(ppTxnId);
203 }
204
205 public static com.liferay.portlet.shopping.model.ShoppingOrder fetchByPPTxnId(
206 java.lang.String ppTxnId, boolean retrieveFromCache)
207 throws com.liferay.portal.SystemException {
208 return getPersistence().fetchByPPTxnId(ppTxnId, retrieveFromCache);
209 }
210
211 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByG_U_PPPS(
212 long groupId, long userId, java.lang.String ppPaymentStatus)
213 throws com.liferay.portal.SystemException {
214 return getPersistence().findByG_U_PPPS(groupId, userId, ppPaymentStatus);
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) throws com.liferay.portal.SystemException {
220 return getPersistence()
221 .findByG_U_PPPS(groupId, userId, ppPaymentStatus, start, end);
222 }
223
224 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByG_U_PPPS(
225 long groupId, long userId, java.lang.String ppPaymentStatus, int start,
226 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
227 throws com.liferay.portal.SystemException {
228 return getPersistence()
229 .findByG_U_PPPS(groupId, userId, ppPaymentStatus, start,
230 end, obc);
231 }
232
233 public static com.liferay.portlet.shopping.model.ShoppingOrder findByG_U_PPPS_First(
234 long groupId, long userId, java.lang.String ppPaymentStatus,
235 com.liferay.portal.kernel.util.OrderByComparator obc)
236 throws com.liferay.portal.SystemException,
237 com.liferay.portlet.shopping.NoSuchOrderException {
238 return getPersistence()
239 .findByG_U_PPPS_First(groupId, userId, ppPaymentStatus, obc);
240 }
241
242 public static com.liferay.portlet.shopping.model.ShoppingOrder findByG_U_PPPS_Last(
243 long groupId, long userId, java.lang.String ppPaymentStatus,
244 com.liferay.portal.kernel.util.OrderByComparator obc)
245 throws com.liferay.portal.SystemException,
246 com.liferay.portlet.shopping.NoSuchOrderException {
247 return getPersistence()
248 .findByG_U_PPPS_Last(groupId, userId, ppPaymentStatus, obc);
249 }
250
251 public static com.liferay.portlet.shopping.model.ShoppingOrder[] findByG_U_PPPS_PrevAndNext(
252 long orderId, long groupId, long userId,
253 java.lang.String ppPaymentStatus,
254 com.liferay.portal.kernel.util.OrderByComparator obc)
255 throws com.liferay.portal.SystemException,
256 com.liferay.portlet.shopping.NoSuchOrderException {
257 return getPersistence()
258 .findByG_U_PPPS_PrevAndNext(orderId, groupId, userId,
259 ppPaymentStatus, obc);
260 }
261
262 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findAll()
263 throws com.liferay.portal.SystemException {
264 return getPersistence().findAll();
265 }
266
267 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findAll(
268 int start, int end) throws com.liferay.portal.SystemException {
269 return getPersistence().findAll(start, end);
270 }
271
272 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findAll(
273 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
274 throws com.liferay.portal.SystemException {
275 return getPersistence().findAll(start, end, obc);
276 }
277
278 public static void removeByGroupId(long groupId)
279 throws com.liferay.portal.SystemException {
280 getPersistence().removeByGroupId(groupId);
281 }
282
283 public static void removeByNumber(java.lang.String number)
284 throws com.liferay.portal.SystemException,
285 com.liferay.portlet.shopping.NoSuchOrderException {
286 getPersistence().removeByNumber(number);
287 }
288
289 public static void removeByPPTxnId(java.lang.String ppTxnId)
290 throws com.liferay.portal.SystemException,
291 com.liferay.portlet.shopping.NoSuchOrderException {
292 getPersistence().removeByPPTxnId(ppTxnId);
293 }
294
295 public static void removeByG_U_PPPS(long groupId, long userId,
296 java.lang.String ppPaymentStatus)
297 throws com.liferay.portal.SystemException {
298 getPersistence().removeByG_U_PPPS(groupId, userId, ppPaymentStatus);
299 }
300
301 public static void removeAll() throws com.liferay.portal.SystemException {
302 getPersistence().removeAll();
303 }
304
305 public static int countByGroupId(long groupId)
306 throws com.liferay.portal.SystemException {
307 return getPersistence().countByGroupId(groupId);
308 }
309
310 public static int countByNumber(java.lang.String number)
311 throws com.liferay.portal.SystemException {
312 return getPersistence().countByNumber(number);
313 }
314
315 public static int countByPPTxnId(java.lang.String ppTxnId)
316 throws com.liferay.portal.SystemException {
317 return getPersistence().countByPPTxnId(ppTxnId);
318 }
319
320 public static int countByG_U_PPPS(long groupId, long userId,
321 java.lang.String ppPaymentStatus)
322 throws com.liferay.portal.SystemException {
323 return getPersistence().countByG_U_PPPS(groupId, userId, ppPaymentStatus);
324 }
325
326 public static int countAll() throws com.liferay.portal.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 }