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