1
19
20 package com.liferay.portlet.shopping.service.persistence;
21
22
28 public class ShoppingOrderUtil {
29 public static com.liferay.portlet.shopping.model.ShoppingOrder create(
30 long orderId) {
31 return getPersistence().create(orderId);
32 }
33
34 public static com.liferay.portlet.shopping.model.ShoppingOrder remove(
35 long orderId)
36 throws com.liferay.portal.SystemException,
37 com.liferay.portlet.shopping.NoSuchOrderException {
38 return getPersistence().remove(orderId);
39 }
40
41 public static com.liferay.portlet.shopping.model.ShoppingOrder remove(
42 com.liferay.portlet.shopping.model.ShoppingOrder shoppingOrder)
43 throws com.liferay.portal.SystemException {
44 return getPersistence().remove(shoppingOrder);
45 }
46
47
50 public static com.liferay.portlet.shopping.model.ShoppingOrder update(
51 com.liferay.portlet.shopping.model.ShoppingOrder shoppingOrder)
52 throws com.liferay.portal.SystemException {
53 return getPersistence().update(shoppingOrder);
54 }
55
56
69 public static com.liferay.portlet.shopping.model.ShoppingOrder update(
70 com.liferay.portlet.shopping.model.ShoppingOrder shoppingOrder,
71 boolean merge) throws com.liferay.portal.SystemException {
72 return getPersistence().update(shoppingOrder, merge);
73 }
74
75 public static com.liferay.portlet.shopping.model.ShoppingOrder updateImpl(
76 com.liferay.portlet.shopping.model.ShoppingOrder shoppingOrder,
77 boolean merge) throws com.liferay.portal.SystemException {
78 return getPersistence().updateImpl(shoppingOrder, merge);
79 }
80
81 public static com.liferay.portlet.shopping.model.ShoppingOrder findByPrimaryKey(
82 long orderId)
83 throws com.liferay.portal.SystemException,
84 com.liferay.portlet.shopping.NoSuchOrderException {
85 return getPersistence().findByPrimaryKey(orderId);
86 }
87
88 public static com.liferay.portlet.shopping.model.ShoppingOrder fetchByPrimaryKey(
89 long orderId) throws com.liferay.portal.SystemException {
90 return getPersistence().fetchByPrimaryKey(orderId);
91 }
92
93 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByGroupId(
94 long groupId) throws com.liferay.portal.SystemException {
95 return getPersistence().findByGroupId(groupId);
96 }
97
98 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByGroupId(
99 long groupId, int start, int end)
100 throws com.liferay.portal.SystemException {
101 return getPersistence().findByGroupId(groupId, start, end);
102 }
103
104 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByGroupId(
105 long groupId, int start, int end,
106 com.liferay.portal.kernel.util.OrderByComparator obc)
107 throws com.liferay.portal.SystemException {
108 return getPersistence().findByGroupId(groupId, start, end, obc);
109 }
110
111 public static com.liferay.portlet.shopping.model.ShoppingOrder findByGroupId_First(
112 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
113 throws com.liferay.portal.SystemException,
114 com.liferay.portlet.shopping.NoSuchOrderException {
115 return getPersistence().findByGroupId_First(groupId, obc);
116 }
117
118 public static com.liferay.portlet.shopping.model.ShoppingOrder findByGroupId_Last(
119 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
120 throws com.liferay.portal.SystemException,
121 com.liferay.portlet.shopping.NoSuchOrderException {
122 return getPersistence().findByGroupId_Last(groupId, obc);
123 }
124
125 public static com.liferay.portlet.shopping.model.ShoppingOrder[] findByGroupId_PrevAndNext(
126 long orderId, long groupId,
127 com.liferay.portal.kernel.util.OrderByComparator obc)
128 throws com.liferay.portal.SystemException,
129 com.liferay.portlet.shopping.NoSuchOrderException {
130 return getPersistence().findByGroupId_PrevAndNext(orderId, groupId, obc);
131 }
132
133 public static com.liferay.portlet.shopping.model.ShoppingOrder findByNumber(
134 java.lang.String number)
135 throws com.liferay.portal.SystemException,
136 com.liferay.portlet.shopping.NoSuchOrderException {
137 return getPersistence().findByNumber(number);
138 }
139
140 public static com.liferay.portlet.shopping.model.ShoppingOrder fetchByNumber(
141 java.lang.String number) throws com.liferay.portal.SystemException {
142 return getPersistence().fetchByNumber(number);
143 }
144
145 public static com.liferay.portlet.shopping.model.ShoppingOrder findByPPTxnId(
146 java.lang.String ppTxnId)
147 throws com.liferay.portal.SystemException,
148 com.liferay.portlet.shopping.NoSuchOrderException {
149 return getPersistence().findByPPTxnId(ppTxnId);
150 }
151
152 public static com.liferay.portlet.shopping.model.ShoppingOrder fetchByPPTxnId(
153 java.lang.String ppTxnId) throws com.liferay.portal.SystemException {
154 return getPersistence().fetchByPPTxnId(ppTxnId);
155 }
156
157 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByG_U_PPPS(
158 long groupId, long userId, java.lang.String ppPaymentStatus)
159 throws com.liferay.portal.SystemException {
160 return getPersistence().findByG_U_PPPS(groupId, userId, ppPaymentStatus);
161 }
162
163 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByG_U_PPPS(
164 long groupId, long userId, java.lang.String ppPaymentStatus, int start,
165 int end) throws com.liferay.portal.SystemException {
166 return getPersistence()
167 .findByG_U_PPPS(groupId, userId, ppPaymentStatus, start, end);
168 }
169
170 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByG_U_PPPS(
171 long groupId, long userId, java.lang.String ppPaymentStatus, int start,
172 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
173 throws com.liferay.portal.SystemException {
174 return getPersistence()
175 .findByG_U_PPPS(groupId, userId, ppPaymentStatus, start,
176 end, obc);
177 }
178
179 public static com.liferay.portlet.shopping.model.ShoppingOrder findByG_U_PPPS_First(
180 long groupId, long userId, java.lang.String ppPaymentStatus,
181 com.liferay.portal.kernel.util.OrderByComparator obc)
182 throws com.liferay.portal.SystemException,
183 com.liferay.portlet.shopping.NoSuchOrderException {
184 return getPersistence()
185 .findByG_U_PPPS_First(groupId, userId, ppPaymentStatus, obc);
186 }
187
188 public static com.liferay.portlet.shopping.model.ShoppingOrder findByG_U_PPPS_Last(
189 long groupId, long userId, java.lang.String ppPaymentStatus,
190 com.liferay.portal.kernel.util.OrderByComparator obc)
191 throws com.liferay.portal.SystemException,
192 com.liferay.portlet.shopping.NoSuchOrderException {
193 return getPersistence()
194 .findByG_U_PPPS_Last(groupId, userId, ppPaymentStatus, obc);
195 }
196
197 public static com.liferay.portlet.shopping.model.ShoppingOrder[] findByG_U_PPPS_PrevAndNext(
198 long orderId, long groupId, long userId,
199 java.lang.String ppPaymentStatus,
200 com.liferay.portal.kernel.util.OrderByComparator obc)
201 throws com.liferay.portal.SystemException,
202 com.liferay.portlet.shopping.NoSuchOrderException {
203 return getPersistence()
204 .findByG_U_PPPS_PrevAndNext(orderId, groupId, userId,
205 ppPaymentStatus, obc);
206 }
207
208 public static java.util.List<Object> findWithDynamicQuery(
209 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
210 throws com.liferay.portal.SystemException {
211 return getPersistence().findWithDynamicQuery(dynamicQuery);
212 }
213
214 public static java.util.List<Object> findWithDynamicQuery(
215 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
216 int end) throws com.liferay.portal.SystemException {
217 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
218 }
219
220 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findAll()
221 throws com.liferay.portal.SystemException {
222 return getPersistence().findAll();
223 }
224
225 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findAll(
226 int start, int end) throws com.liferay.portal.SystemException {
227 return getPersistence().findAll(start, end);
228 }
229
230 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findAll(
231 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
232 throws com.liferay.portal.SystemException {
233 return getPersistence().findAll(start, end, obc);
234 }
235
236 public static void removeByGroupId(long groupId)
237 throws com.liferay.portal.SystemException {
238 getPersistence().removeByGroupId(groupId);
239 }
240
241 public static void removeByNumber(java.lang.String number)
242 throws com.liferay.portal.SystemException,
243 com.liferay.portlet.shopping.NoSuchOrderException {
244 getPersistence().removeByNumber(number);
245 }
246
247 public static void removeByPPTxnId(java.lang.String ppTxnId)
248 throws com.liferay.portal.SystemException,
249 com.liferay.portlet.shopping.NoSuchOrderException {
250 getPersistence().removeByPPTxnId(ppTxnId);
251 }
252
253 public static void removeByG_U_PPPS(long groupId, long userId,
254 java.lang.String ppPaymentStatus)
255 throws com.liferay.portal.SystemException {
256 getPersistence().removeByG_U_PPPS(groupId, userId, ppPaymentStatus);
257 }
258
259 public static void removeAll() throws com.liferay.portal.SystemException {
260 getPersistence().removeAll();
261 }
262
263 public static int countByGroupId(long groupId)
264 throws com.liferay.portal.SystemException {
265 return getPersistence().countByGroupId(groupId);
266 }
267
268 public static int countByNumber(java.lang.String number)
269 throws com.liferay.portal.SystemException {
270 return getPersistence().countByNumber(number);
271 }
272
273 public static int countByPPTxnId(java.lang.String ppTxnId)
274 throws com.liferay.portal.SystemException {
275 return getPersistence().countByPPTxnId(ppTxnId);
276 }
277
278 public static int countByG_U_PPPS(long groupId, long userId,
279 java.lang.String ppPaymentStatus)
280 throws com.liferay.portal.SystemException {
281 return getPersistence().countByG_U_PPPS(groupId, userId, ppPaymentStatus);
282 }
283
284 public static int countAll() throws com.liferay.portal.SystemException {
285 return getPersistence().countAll();
286 }
287
288 public static ShoppingOrderPersistence getPersistence() {
289 return _persistence;
290 }
291
292 public void setPersistence(ShoppingOrderPersistence persistence) {
293 _persistence = persistence;
294 }
295
296 private static ShoppingOrderPersistence _persistence;
297 }