001: /**
002: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003: *
004: * Permission is hereby granted, free of charge, to any person obtaining a copy
005: * of this software and associated documentation files (the "Software"), to deal
006: * in the Software without restriction, including without limitation the rights
007: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008: * copies of the Software, and to permit persons to whom the Software is
009: * furnished to do so, subject to the following conditions:
010: *
011: * The above copyright notice and this permission notice shall be included in
012: * all copies or substantial portions of the Software.
013: *
014: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020: * SOFTWARE.
021: */package com.liferay.portlet.shopping.service.persistence;
022:
023: /**
024: * <a href="ShoppingOrderUtil.java.html"><b><i>View Source</i></b></a>
025: *
026: * @author Brian Wing Shun Chan
027: *
028: */
029: public class ShoppingOrderUtil {
030: public static com.liferay.portlet.shopping.model.ShoppingOrder create(
031: long orderId) {
032: return getPersistence().create(orderId);
033: }
034:
035: public static com.liferay.portlet.shopping.model.ShoppingOrder remove(
036: long orderId) throws com.liferay.portal.SystemException,
037: com.liferay.portlet.shopping.NoSuchOrderException {
038: return getPersistence().remove(orderId);
039: }
040:
041: public static com.liferay.portlet.shopping.model.ShoppingOrder remove(
042: com.liferay.portlet.shopping.model.ShoppingOrder shoppingOrder)
043: throws com.liferay.portal.SystemException {
044: return getPersistence().remove(shoppingOrder);
045: }
046:
047: public static com.liferay.portlet.shopping.model.ShoppingOrder update(
048: com.liferay.portlet.shopping.model.ShoppingOrder shoppingOrder)
049: throws com.liferay.portal.SystemException {
050: return getPersistence().update(shoppingOrder);
051: }
052:
053: public static com.liferay.portlet.shopping.model.ShoppingOrder update(
054: com.liferay.portlet.shopping.model.ShoppingOrder shoppingOrder,
055: boolean merge) throws com.liferay.portal.SystemException {
056: return getPersistence().update(shoppingOrder, merge);
057: }
058:
059: public static com.liferay.portlet.shopping.model.ShoppingOrder updateImpl(
060: com.liferay.portlet.shopping.model.ShoppingOrder shoppingOrder,
061: boolean merge) throws com.liferay.portal.SystemException {
062: return getPersistence().updateImpl(shoppingOrder, merge);
063: }
064:
065: public static com.liferay.portlet.shopping.model.ShoppingOrder findByPrimaryKey(
066: long orderId) throws com.liferay.portal.SystemException,
067: com.liferay.portlet.shopping.NoSuchOrderException {
068: return getPersistence().findByPrimaryKey(orderId);
069: }
070:
071: public static com.liferay.portlet.shopping.model.ShoppingOrder fetchByPrimaryKey(
072: long orderId) throws com.liferay.portal.SystemException {
073: return getPersistence().fetchByPrimaryKey(orderId);
074: }
075:
076: public static java.util.List findByGroupId(long groupId)
077: throws com.liferay.portal.SystemException {
078: return getPersistence().findByGroupId(groupId);
079: }
080:
081: public static java.util.List findByGroupId(long groupId, int begin,
082: int end) throws com.liferay.portal.SystemException {
083: return getPersistence().findByGroupId(groupId, begin, end);
084: }
085:
086: public static java.util.List findByGroupId(long groupId, int begin,
087: int end,
088: com.liferay.portal.kernel.util.OrderByComparator obc)
089: throws com.liferay.portal.SystemException {
090: return getPersistence().findByGroupId(groupId, begin, end, obc);
091: }
092:
093: public static com.liferay.portlet.shopping.model.ShoppingOrder findByGroupId_First(
094: long groupId,
095: com.liferay.portal.kernel.util.OrderByComparator obc)
096: throws com.liferay.portal.SystemException,
097: com.liferay.portlet.shopping.NoSuchOrderException {
098: return getPersistence().findByGroupId_First(groupId, obc);
099: }
100:
101: public static com.liferay.portlet.shopping.model.ShoppingOrder findByGroupId_Last(
102: long groupId,
103: com.liferay.portal.kernel.util.OrderByComparator obc)
104: throws com.liferay.portal.SystemException,
105: com.liferay.portlet.shopping.NoSuchOrderException {
106: return getPersistence().findByGroupId_Last(groupId, obc);
107: }
108:
109: public static com.liferay.portlet.shopping.model.ShoppingOrder[] findByGroupId_PrevAndNext(
110: long orderId, long groupId,
111: com.liferay.portal.kernel.util.OrderByComparator obc)
112: throws com.liferay.portal.SystemException,
113: com.liferay.portlet.shopping.NoSuchOrderException {
114: return getPersistence().findByGroupId_PrevAndNext(orderId,
115: groupId, obc);
116: }
117:
118: public static com.liferay.portlet.shopping.model.ShoppingOrder findByNumber(
119: java.lang.String number)
120: throws com.liferay.portal.SystemException,
121: com.liferay.portlet.shopping.NoSuchOrderException {
122: return getPersistence().findByNumber(number);
123: }
124:
125: public static com.liferay.portlet.shopping.model.ShoppingOrder fetchByNumber(
126: java.lang.String number)
127: throws com.liferay.portal.SystemException {
128: return getPersistence().fetchByNumber(number);
129: }
130:
131: public static java.util.List findByG_U_PPPS(long groupId,
132: long userId, java.lang.String ppPaymentStatus)
133: throws com.liferay.portal.SystemException {
134: return getPersistence().findByG_U_PPPS(groupId, userId,
135: ppPaymentStatus);
136: }
137:
138: public static java.util.List findByG_U_PPPS(long groupId,
139: long userId, java.lang.String ppPaymentStatus, int begin,
140: int end) throws com.liferay.portal.SystemException {
141: return getPersistence().findByG_U_PPPS(groupId, userId,
142: ppPaymentStatus, begin, end);
143: }
144:
145: public static java.util.List findByG_U_PPPS(long groupId,
146: long userId, java.lang.String ppPaymentStatus, int begin,
147: int end,
148: com.liferay.portal.kernel.util.OrderByComparator obc)
149: throws com.liferay.portal.SystemException {
150: return getPersistence().findByG_U_PPPS(groupId, userId,
151: ppPaymentStatus, begin, end, obc);
152: }
153:
154: public static com.liferay.portlet.shopping.model.ShoppingOrder findByG_U_PPPS_First(
155: long groupId, long userId,
156: java.lang.String ppPaymentStatus,
157: com.liferay.portal.kernel.util.OrderByComparator obc)
158: throws com.liferay.portal.SystemException,
159: com.liferay.portlet.shopping.NoSuchOrderException {
160: return getPersistence().findByG_U_PPPS_First(groupId, userId,
161: ppPaymentStatus, obc);
162: }
163:
164: public static com.liferay.portlet.shopping.model.ShoppingOrder findByG_U_PPPS_Last(
165: long groupId, long userId,
166: java.lang.String ppPaymentStatus,
167: com.liferay.portal.kernel.util.OrderByComparator obc)
168: throws com.liferay.portal.SystemException,
169: com.liferay.portlet.shopping.NoSuchOrderException {
170: return getPersistence().findByG_U_PPPS_Last(groupId, userId,
171: ppPaymentStatus, obc);
172: }
173:
174: public static com.liferay.portlet.shopping.model.ShoppingOrder[] findByG_U_PPPS_PrevAndNext(
175: long orderId, long groupId, long userId,
176: java.lang.String ppPaymentStatus,
177: com.liferay.portal.kernel.util.OrderByComparator obc)
178: throws com.liferay.portal.SystemException,
179: com.liferay.portlet.shopping.NoSuchOrderException {
180: return getPersistence().findByG_U_PPPS_PrevAndNext(orderId,
181: groupId, userId, ppPaymentStatus, obc);
182: }
183:
184: public static java.util.List findWithDynamicQuery(
185: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
186: throws com.liferay.portal.SystemException {
187: return getPersistence().findWithDynamicQuery(queryInitializer);
188: }
189:
190: public static java.util.List findWithDynamicQuery(
191: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
192: int begin, int end)
193: throws com.liferay.portal.SystemException {
194: return getPersistence().findWithDynamicQuery(queryInitializer,
195: begin, end);
196: }
197:
198: public static java.util.List findAll()
199: throws com.liferay.portal.SystemException {
200: return getPersistence().findAll();
201: }
202:
203: public static java.util.List findAll(int begin, int end)
204: throws com.liferay.portal.SystemException {
205: return getPersistence().findAll(begin, end);
206: }
207:
208: public static java.util.List findAll(int begin, int end,
209: com.liferay.portal.kernel.util.OrderByComparator obc)
210: throws com.liferay.portal.SystemException {
211: return getPersistence().findAll(begin, end, obc);
212: }
213:
214: public static void removeByGroupId(long groupId)
215: throws com.liferay.portal.SystemException {
216: getPersistence().removeByGroupId(groupId);
217: }
218:
219: public static void removeByNumber(java.lang.String number)
220: throws com.liferay.portal.SystemException,
221: com.liferay.portlet.shopping.NoSuchOrderException {
222: getPersistence().removeByNumber(number);
223: }
224:
225: public static void removeByG_U_PPPS(long groupId, long userId,
226: java.lang.String ppPaymentStatus)
227: throws com.liferay.portal.SystemException {
228: getPersistence().removeByG_U_PPPS(groupId, userId,
229: ppPaymentStatus);
230: }
231:
232: public static void removeAll()
233: throws com.liferay.portal.SystemException {
234: getPersistence().removeAll();
235: }
236:
237: public static int countByGroupId(long groupId)
238: throws com.liferay.portal.SystemException {
239: return getPersistence().countByGroupId(groupId);
240: }
241:
242: public static int countByNumber(java.lang.String number)
243: throws com.liferay.portal.SystemException {
244: return getPersistence().countByNumber(number);
245: }
246:
247: public static int countByG_U_PPPS(long groupId, long userId,
248: java.lang.String ppPaymentStatus)
249: throws com.liferay.portal.SystemException {
250: return getPersistence().countByG_U_PPPS(groupId, userId,
251: ppPaymentStatus);
252: }
253:
254: public static int countAll()
255: throws com.liferay.portal.SystemException {
256: return getPersistence().countAll();
257: }
258:
259: public static ShoppingOrderPersistence getPersistence() {
260: return _getUtil()._persistence;
261: }
262:
263: public void setPersistence(ShoppingOrderPersistence persistence) {
264: _persistence = persistence;
265: }
266:
267: private static ShoppingOrderUtil _getUtil() {
268: if (_util == null) {
269: _util = (ShoppingOrderUtil) com.liferay.portal.kernel.bean.BeanLocatorUtil
270: .locate(_UTIL);
271: }
272:
273: return _util;
274: }
275:
276: private static final String _UTIL = ShoppingOrderUtil.class
277: .getName();
278: private static ShoppingOrderUtil _util;
279: private ShoppingOrderPersistence _persistence;
280: }
|