1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    *
5    *
6    *
7    * The contents of this file are subject to the terms of the Liferay Enterprise
8    * Subscription License ("License"). You may not use this file except in
9    * compliance with the License. You can obtain a copy of the License by
10   * contacting Liferay, Inc. See the License for the specific language governing
11   * permissions and limitations under the License, including but not limited to
12   * distribution rights of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.shopping.service.persistence;
24  
25  import com.liferay.portal.service.persistence.BasePersistence;
26  
27  /**
28   * <a href="ShoppingOrderPersistence.java.html"><b><i>View Source</i></b></a>
29   *
30   * <p>
31   * ServiceBuilder generated this class. Modifications in this class will be
32   * overwritten the next time is generated.
33   * </p>
34   *
35   * @author    Brian Wing Shun Chan
36   * @see       ShoppingOrderPersistenceImpl
37   * @see       ShoppingOrderUtil
38   * @generated
39   */
40  public interface ShoppingOrderPersistence extends BasePersistence {
41      public void cacheResult(
42          com.liferay.portlet.shopping.model.ShoppingOrder shoppingOrder);
43  
44      public void cacheResult(
45          java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> shoppingOrders);
46  
47      public void clearCache();
48  
49      public com.liferay.portlet.shopping.model.ShoppingOrder create(long orderId);
50  
51      public com.liferay.portlet.shopping.model.ShoppingOrder remove(long orderId)
52          throws com.liferay.portal.SystemException,
53              com.liferay.portlet.shopping.NoSuchOrderException;
54  
55      public com.liferay.portlet.shopping.model.ShoppingOrder remove(
56          com.liferay.portlet.shopping.model.ShoppingOrder shoppingOrder)
57          throws com.liferay.portal.SystemException;
58  
59      /**
60       * @deprecated Use {@link #update(ShoppingOrder, boolean merge)}.
61       */
62      public com.liferay.portlet.shopping.model.ShoppingOrder update(
63          com.liferay.portlet.shopping.model.ShoppingOrder shoppingOrder)
64          throws com.liferay.portal.SystemException;
65  
66      /**
67       * Add, update, or merge, the entity. This method also calls the model
68       * listeners to trigger the proper events associated with adding, deleting,
69       * or updating an entity.
70       *
71       * @param  shoppingOrder the entity to add, update, or merge
72       * @param  merge boolean value for whether to merge the entity. The default
73       *         value is false. Setting merge to true is more expensive and
74       *         should only be true when shoppingOrder is transient. See
75       *         LEP-5473 for a detailed discussion of this method.
76       * @return the entity that was added, updated, or merged
77       */
78      public com.liferay.portlet.shopping.model.ShoppingOrder update(
79          com.liferay.portlet.shopping.model.ShoppingOrder shoppingOrder,
80          boolean merge) throws com.liferay.portal.SystemException;
81  
82      public com.liferay.portlet.shopping.model.ShoppingOrder updateImpl(
83          com.liferay.portlet.shopping.model.ShoppingOrder shoppingOrder,
84          boolean merge) throws com.liferay.portal.SystemException;
85  
86      public com.liferay.portlet.shopping.model.ShoppingOrder findByPrimaryKey(
87          long orderId)
88          throws com.liferay.portal.SystemException,
89              com.liferay.portlet.shopping.NoSuchOrderException;
90  
91      public com.liferay.portlet.shopping.model.ShoppingOrder fetchByPrimaryKey(
92          long orderId) throws com.liferay.portal.SystemException;
93  
94      public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByGroupId(
95          long groupId) throws com.liferay.portal.SystemException;
96  
97      public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByGroupId(
98          long groupId, int start, int end)
99          throws com.liferay.portal.SystemException;
100 
101     public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByGroupId(
102         long groupId, int start, int end,
103         com.liferay.portal.kernel.util.OrderByComparator obc)
104         throws com.liferay.portal.SystemException;
105 
106     public com.liferay.portlet.shopping.model.ShoppingOrder findByGroupId_First(
107         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
108         throws com.liferay.portal.SystemException,
109             com.liferay.portlet.shopping.NoSuchOrderException;
110 
111     public com.liferay.portlet.shopping.model.ShoppingOrder findByGroupId_Last(
112         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
113         throws com.liferay.portal.SystemException,
114             com.liferay.portlet.shopping.NoSuchOrderException;
115 
116     public com.liferay.portlet.shopping.model.ShoppingOrder[] findByGroupId_PrevAndNext(
117         long orderId, long groupId,
118         com.liferay.portal.kernel.util.OrderByComparator obc)
119         throws com.liferay.portal.SystemException,
120             com.liferay.portlet.shopping.NoSuchOrderException;
121 
122     public com.liferay.portlet.shopping.model.ShoppingOrder findByNumber(
123         java.lang.String number)
124         throws com.liferay.portal.SystemException,
125             com.liferay.portlet.shopping.NoSuchOrderException;
126 
127     public com.liferay.portlet.shopping.model.ShoppingOrder fetchByNumber(
128         java.lang.String number) throws com.liferay.portal.SystemException;
129 
130     public com.liferay.portlet.shopping.model.ShoppingOrder fetchByNumber(
131         java.lang.String number, boolean retrieveFromCache)
132         throws com.liferay.portal.SystemException;
133 
134     public com.liferay.portlet.shopping.model.ShoppingOrder findByPPTxnId(
135         java.lang.String ppTxnId)
136         throws com.liferay.portal.SystemException,
137             com.liferay.portlet.shopping.NoSuchOrderException;
138 
139     public com.liferay.portlet.shopping.model.ShoppingOrder fetchByPPTxnId(
140         java.lang.String ppTxnId) throws com.liferay.portal.SystemException;
141 
142     public com.liferay.portlet.shopping.model.ShoppingOrder fetchByPPTxnId(
143         java.lang.String ppTxnId, boolean retrieveFromCache)
144         throws com.liferay.portal.SystemException;
145 
146     public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByG_U_PPPS(
147         long groupId, long userId, java.lang.String ppPaymentStatus)
148         throws com.liferay.portal.SystemException;
149 
150     public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByG_U_PPPS(
151         long groupId, long userId, java.lang.String ppPaymentStatus, int start,
152         int end) throws com.liferay.portal.SystemException;
153 
154     public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByG_U_PPPS(
155         long groupId, long userId, java.lang.String ppPaymentStatus, int start,
156         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
157         throws com.liferay.portal.SystemException;
158 
159     public com.liferay.portlet.shopping.model.ShoppingOrder findByG_U_PPPS_First(
160         long groupId, long userId, java.lang.String ppPaymentStatus,
161         com.liferay.portal.kernel.util.OrderByComparator obc)
162         throws com.liferay.portal.SystemException,
163             com.liferay.portlet.shopping.NoSuchOrderException;
164 
165     public com.liferay.portlet.shopping.model.ShoppingOrder findByG_U_PPPS_Last(
166         long groupId, long userId, 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 
171     public com.liferay.portlet.shopping.model.ShoppingOrder[] findByG_U_PPPS_PrevAndNext(
172         long orderId, long groupId, long userId,
173         java.lang.String ppPaymentStatus,
174         com.liferay.portal.kernel.util.OrderByComparator obc)
175         throws com.liferay.portal.SystemException,
176             com.liferay.portlet.shopping.NoSuchOrderException;
177 
178     public java.util.List<Object> findWithDynamicQuery(
179         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
180         throws com.liferay.portal.SystemException;
181 
182     public java.util.List<Object> findWithDynamicQuery(
183         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
184         int end) throws com.liferay.portal.SystemException;
185 
186     public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findAll()
187         throws com.liferay.portal.SystemException;
188 
189     public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findAll(
190         int start, int end) throws com.liferay.portal.SystemException;
191 
192     public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findAll(
193         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
194         throws com.liferay.portal.SystemException;
195 
196     public void removeByGroupId(long groupId)
197         throws com.liferay.portal.SystemException;
198 
199     public void removeByNumber(java.lang.String number)
200         throws com.liferay.portal.SystemException,
201             com.liferay.portlet.shopping.NoSuchOrderException;
202 
203     public void removeByPPTxnId(java.lang.String ppTxnId)
204         throws com.liferay.portal.SystemException,
205             com.liferay.portlet.shopping.NoSuchOrderException;
206 
207     public void removeByG_U_PPPS(long groupId, long userId,
208         java.lang.String ppPaymentStatus)
209         throws com.liferay.portal.SystemException;
210 
211     public void removeAll() throws com.liferay.portal.SystemException;
212 
213     public int countByGroupId(long groupId)
214         throws com.liferay.portal.SystemException;
215 
216     public int countByNumber(java.lang.String number)
217         throws com.liferay.portal.SystemException;
218 
219     public int countByPPTxnId(java.lang.String ppTxnId)
220         throws com.liferay.portal.SystemException;
221 
222     public int countByG_U_PPPS(long groupId, long userId,
223         java.lang.String ppPaymentStatus)
224         throws com.liferay.portal.SystemException;
225 
226     public int countAll() throws com.liferay.portal.SystemException;
227 }