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="ShoppingOrderPersistence.java.html"><b><i>View Source</i></b></a>
025: *
026: * @author Brian Wing Shun Chan
027: *
028: */
029: public interface ShoppingOrderPersistence {
030: public com.liferay.portlet.shopping.model.ShoppingOrder create(
031: long orderId);
032:
033: public com.liferay.portlet.shopping.model.ShoppingOrder remove(
034: long orderId) throws com.liferay.portal.SystemException,
035: com.liferay.portlet.shopping.NoSuchOrderException;
036:
037: public com.liferay.portlet.shopping.model.ShoppingOrder remove(
038: com.liferay.portlet.shopping.model.ShoppingOrder shoppingOrder)
039: throws com.liferay.portal.SystemException;
040:
041: public com.liferay.portlet.shopping.model.ShoppingOrder update(
042: com.liferay.portlet.shopping.model.ShoppingOrder shoppingOrder)
043: throws com.liferay.portal.SystemException;
044:
045: public com.liferay.portlet.shopping.model.ShoppingOrder update(
046: com.liferay.portlet.shopping.model.ShoppingOrder shoppingOrder,
047: boolean merge) throws com.liferay.portal.SystemException;
048:
049: public com.liferay.portlet.shopping.model.ShoppingOrder updateImpl(
050: com.liferay.portlet.shopping.model.ShoppingOrder shoppingOrder,
051: boolean merge) throws com.liferay.portal.SystemException;
052:
053: public com.liferay.portlet.shopping.model.ShoppingOrder findByPrimaryKey(
054: long orderId) throws com.liferay.portal.SystemException,
055: com.liferay.portlet.shopping.NoSuchOrderException;
056:
057: public com.liferay.portlet.shopping.model.ShoppingOrder fetchByPrimaryKey(
058: long orderId) throws com.liferay.portal.SystemException;
059:
060: public java.util.List findByGroupId(long groupId)
061: throws com.liferay.portal.SystemException;
062:
063: public java.util.List findByGroupId(long groupId, int begin, int end)
064: throws com.liferay.portal.SystemException;
065:
066: public java.util.List findByGroupId(long groupId, int begin,
067: int end,
068: com.liferay.portal.kernel.util.OrderByComparator obc)
069: throws com.liferay.portal.SystemException;
070:
071: public com.liferay.portlet.shopping.model.ShoppingOrder findByGroupId_First(
072: long groupId,
073: com.liferay.portal.kernel.util.OrderByComparator obc)
074: throws com.liferay.portal.SystemException,
075: com.liferay.portlet.shopping.NoSuchOrderException;
076:
077: public com.liferay.portlet.shopping.model.ShoppingOrder findByGroupId_Last(
078: long groupId,
079: com.liferay.portal.kernel.util.OrderByComparator obc)
080: throws com.liferay.portal.SystemException,
081: com.liferay.portlet.shopping.NoSuchOrderException;
082:
083: public com.liferay.portlet.shopping.model.ShoppingOrder[] findByGroupId_PrevAndNext(
084: long orderId, long groupId,
085: com.liferay.portal.kernel.util.OrderByComparator obc)
086: throws com.liferay.portal.SystemException,
087: com.liferay.portlet.shopping.NoSuchOrderException;
088:
089: public com.liferay.portlet.shopping.model.ShoppingOrder findByNumber(
090: java.lang.String number)
091: throws com.liferay.portal.SystemException,
092: com.liferay.portlet.shopping.NoSuchOrderException;
093:
094: public com.liferay.portlet.shopping.model.ShoppingOrder fetchByNumber(
095: java.lang.String number)
096: throws com.liferay.portal.SystemException;
097:
098: public java.util.List findByG_U_PPPS(long groupId, long userId,
099: java.lang.String ppPaymentStatus)
100: throws com.liferay.portal.SystemException;
101:
102: public java.util.List findByG_U_PPPS(long groupId, long userId,
103: java.lang.String ppPaymentStatus, int begin, int end)
104: throws com.liferay.portal.SystemException;
105:
106: public java.util.List findByG_U_PPPS(long groupId, long userId,
107: java.lang.String ppPaymentStatus, int begin, int end,
108: com.liferay.portal.kernel.util.OrderByComparator obc)
109: throws com.liferay.portal.SystemException;
110:
111: public com.liferay.portlet.shopping.model.ShoppingOrder findByG_U_PPPS_First(
112: long groupId, long userId,
113: java.lang.String ppPaymentStatus,
114: com.liferay.portal.kernel.util.OrderByComparator obc)
115: throws com.liferay.portal.SystemException,
116: com.liferay.portlet.shopping.NoSuchOrderException;
117:
118: public com.liferay.portlet.shopping.model.ShoppingOrder findByG_U_PPPS_Last(
119: long groupId, long userId,
120: java.lang.String ppPaymentStatus,
121: com.liferay.portal.kernel.util.OrderByComparator obc)
122: throws com.liferay.portal.SystemException,
123: com.liferay.portlet.shopping.NoSuchOrderException;
124:
125: public com.liferay.portlet.shopping.model.ShoppingOrder[] findByG_U_PPPS_PrevAndNext(
126: long orderId, long groupId, long userId,
127: java.lang.String ppPaymentStatus,
128: com.liferay.portal.kernel.util.OrderByComparator obc)
129: throws com.liferay.portal.SystemException,
130: com.liferay.portlet.shopping.NoSuchOrderException;
131:
132: public java.util.List findWithDynamicQuery(
133: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
134: throws com.liferay.portal.SystemException;
135:
136: public java.util.List findWithDynamicQuery(
137: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
138: int begin, int end)
139: throws com.liferay.portal.SystemException;
140:
141: public java.util.List findAll()
142: throws com.liferay.portal.SystemException;
143:
144: public java.util.List findAll(int begin, int end)
145: throws com.liferay.portal.SystemException;
146:
147: public java.util.List findAll(int begin, int end,
148: com.liferay.portal.kernel.util.OrderByComparator obc)
149: throws com.liferay.portal.SystemException;
150:
151: public void removeByGroupId(long groupId)
152: throws com.liferay.portal.SystemException;
153:
154: public void removeByNumber(java.lang.String number)
155: throws com.liferay.portal.SystemException,
156: com.liferay.portlet.shopping.NoSuchOrderException;
157:
158: public void removeByG_U_PPPS(long groupId, long userId,
159: java.lang.String ppPaymentStatus)
160: throws com.liferay.portal.SystemException;
161:
162: public void removeAll() throws com.liferay.portal.SystemException;
163:
164: public int countByGroupId(long groupId)
165: throws com.liferay.portal.SystemException;
166:
167: public int countByNumber(java.lang.String number)
168: throws com.liferay.portal.SystemException;
169:
170: public int countByG_U_PPPS(long groupId, long userId,
171: java.lang.String ppPaymentStatus)
172: throws com.liferay.portal.SystemException;
173:
174: public int countAll() throws com.liferay.portal.SystemException;
175: }
|