1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   *
13   */
14  
15  package com.liferay.portlet.shopping.service.persistence;
16  
17  import com.liferay.portal.service.persistence.BasePersistence;
18  
19  import com.liferay.portlet.shopping.model.ShoppingOrder;
20  
21  /**
22   * <a href="ShoppingOrderPersistence.java.html"><b><i>View Source</i></b></a>
23   *
24   * <p>
25   * ServiceBuilder generated this class. Modifications in this class will be
26   * overwritten the next time is generated.
27   * </p>
28   *
29   * @author    Brian Wing Shun Chan
30   * @see       ShoppingOrderPersistenceImpl
31   * @see       ShoppingOrderUtil
32   * @generated
33   */
34  public interface ShoppingOrderPersistence extends BasePersistence<ShoppingOrder> {
35      public void cacheResult(
36          com.liferay.portlet.shopping.model.ShoppingOrder shoppingOrder);
37  
38      public void cacheResult(
39          java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> shoppingOrders);
40  
41      public com.liferay.portlet.shopping.model.ShoppingOrder create(long orderId);
42  
43      public com.liferay.portlet.shopping.model.ShoppingOrder remove(long orderId)
44          throws com.liferay.portal.SystemException,
45              com.liferay.portlet.shopping.NoSuchOrderException;
46  
47      /**
48       * @deprecated Use {@link BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)}.
49       */
50      public com.liferay.portlet.shopping.model.ShoppingOrder update(
51          com.liferay.portlet.shopping.model.ShoppingOrder shoppingOrder)
52          throws com.liferay.portal.SystemException;
53  
54      public com.liferay.portlet.shopping.model.ShoppingOrder updateImpl(
55          com.liferay.portlet.shopping.model.ShoppingOrder shoppingOrder,
56          boolean merge) throws com.liferay.portal.SystemException;
57  
58      public com.liferay.portlet.shopping.model.ShoppingOrder findByPrimaryKey(
59          long orderId)
60          throws com.liferay.portal.SystemException,
61              com.liferay.portlet.shopping.NoSuchOrderException;
62  
63      public com.liferay.portlet.shopping.model.ShoppingOrder fetchByPrimaryKey(
64          long orderId) throws com.liferay.portal.SystemException;
65  
66      public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByGroupId(
67          long groupId) throws com.liferay.portal.SystemException;
68  
69      public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByGroupId(
70          long groupId, int start, int end)
71          throws com.liferay.portal.SystemException;
72  
73      public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByGroupId(
74          long groupId, int start, int end,
75          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
76          throws com.liferay.portal.SystemException;
77  
78      public com.liferay.portlet.shopping.model.ShoppingOrder findByGroupId_First(
79          long groupId,
80          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
81          throws com.liferay.portal.SystemException,
82              com.liferay.portlet.shopping.NoSuchOrderException;
83  
84      public com.liferay.portlet.shopping.model.ShoppingOrder findByGroupId_Last(
85          long groupId,
86          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
87          throws com.liferay.portal.SystemException,
88              com.liferay.portlet.shopping.NoSuchOrderException;
89  
90      public com.liferay.portlet.shopping.model.ShoppingOrder[] findByGroupId_PrevAndNext(
91          long orderId, long groupId,
92          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
93          throws com.liferay.portal.SystemException,
94              com.liferay.portlet.shopping.NoSuchOrderException;
95  
96      public com.liferay.portlet.shopping.model.ShoppingOrder findByNumber(
97          java.lang.String number)
98          throws com.liferay.portal.SystemException,
99              com.liferay.portlet.shopping.NoSuchOrderException;
100 
101     public com.liferay.portlet.shopping.model.ShoppingOrder fetchByNumber(
102         java.lang.String number) throws com.liferay.portal.SystemException;
103 
104     public com.liferay.portlet.shopping.model.ShoppingOrder fetchByNumber(
105         java.lang.String number, boolean retrieveFromCache)
106         throws com.liferay.portal.SystemException;
107 
108     public com.liferay.portlet.shopping.model.ShoppingOrder findByPPTxnId(
109         java.lang.String ppTxnId)
110         throws com.liferay.portal.SystemException,
111             com.liferay.portlet.shopping.NoSuchOrderException;
112 
113     public com.liferay.portlet.shopping.model.ShoppingOrder fetchByPPTxnId(
114         java.lang.String ppTxnId) throws com.liferay.portal.SystemException;
115 
116     public com.liferay.portlet.shopping.model.ShoppingOrder fetchByPPTxnId(
117         java.lang.String ppTxnId, boolean retrieveFromCache)
118         throws com.liferay.portal.SystemException;
119 
120     public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByG_U_PPPS(
121         long groupId, long userId, java.lang.String ppPaymentStatus)
122         throws com.liferay.portal.SystemException;
123 
124     public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByG_U_PPPS(
125         long groupId, long userId, java.lang.String ppPaymentStatus, int start,
126         int end) throws com.liferay.portal.SystemException;
127 
128     public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByG_U_PPPS(
129         long groupId, long userId, java.lang.String ppPaymentStatus, int start,
130         int end,
131         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
132         throws com.liferay.portal.SystemException;
133 
134     public com.liferay.portlet.shopping.model.ShoppingOrder findByG_U_PPPS_First(
135         long groupId, long userId, java.lang.String ppPaymentStatus,
136         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
137         throws com.liferay.portal.SystemException,
138             com.liferay.portlet.shopping.NoSuchOrderException;
139 
140     public com.liferay.portlet.shopping.model.ShoppingOrder findByG_U_PPPS_Last(
141         long groupId, long userId, java.lang.String ppPaymentStatus,
142         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
143         throws com.liferay.portal.SystemException,
144             com.liferay.portlet.shopping.NoSuchOrderException;
145 
146     public com.liferay.portlet.shopping.model.ShoppingOrder[] findByG_U_PPPS_PrevAndNext(
147         long orderId, long groupId, long userId,
148         java.lang.String ppPaymentStatus,
149         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
150         throws com.liferay.portal.SystemException,
151             com.liferay.portlet.shopping.NoSuchOrderException;
152 
153     public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findAll()
154         throws com.liferay.portal.SystemException;
155 
156     public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findAll(
157         int start, int end) throws com.liferay.portal.SystemException;
158 
159     public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findAll(
160         int start, int end,
161         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
162         throws com.liferay.portal.SystemException;
163 
164     public void removeByGroupId(long groupId)
165         throws com.liferay.portal.SystemException;
166 
167     public void removeByNumber(java.lang.String number)
168         throws com.liferay.portal.SystemException,
169             com.liferay.portlet.shopping.NoSuchOrderException;
170 
171     public void removeByPPTxnId(java.lang.String ppTxnId)
172         throws com.liferay.portal.SystemException,
173             com.liferay.portlet.shopping.NoSuchOrderException;
174 
175     public void removeByG_U_PPPS(long groupId, long userId,
176         java.lang.String ppPaymentStatus)
177         throws com.liferay.portal.SystemException;
178 
179     public void removeAll() throws com.liferay.portal.SystemException;
180 
181     public int countByGroupId(long groupId)
182         throws com.liferay.portal.SystemException;
183 
184     public int countByNumber(java.lang.String number)
185         throws com.liferay.portal.SystemException;
186 
187     public int countByPPTxnId(java.lang.String ppTxnId)
188         throws com.liferay.portal.SystemException;
189 
190     public int countByG_U_PPPS(long groupId, long userId,
191         java.lang.String ppPaymentStatus)
192         throws com.liferay.portal.SystemException;
193 
194     public int countAll() throws com.liferay.portal.SystemException;
195 }