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 obc)
76          throws com.liferay.portal.SystemException;
77  
78      public com.liferay.portlet.shopping.model.ShoppingOrder findByGroupId_First(
79          long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
80          throws com.liferay.portal.SystemException,
81              com.liferay.portlet.shopping.NoSuchOrderException;
82  
83      public com.liferay.portlet.shopping.model.ShoppingOrder findByGroupId_Last(
84          long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
85          throws com.liferay.portal.SystemException,
86              com.liferay.portlet.shopping.NoSuchOrderException;
87  
88      public com.liferay.portlet.shopping.model.ShoppingOrder[] findByGroupId_PrevAndNext(
89          long orderId, long groupId,
90          com.liferay.portal.kernel.util.OrderByComparator obc)
91          throws com.liferay.portal.SystemException,
92              com.liferay.portlet.shopping.NoSuchOrderException;
93  
94      public com.liferay.portlet.shopping.model.ShoppingOrder findByNumber(
95          java.lang.String number)
96          throws com.liferay.portal.SystemException,
97              com.liferay.portlet.shopping.NoSuchOrderException;
98  
99      public com.liferay.portlet.shopping.model.ShoppingOrder fetchByNumber(
100         java.lang.String number) throws com.liferay.portal.SystemException;
101 
102     public com.liferay.portlet.shopping.model.ShoppingOrder fetchByNumber(
103         java.lang.String number, boolean retrieveFromCache)
104         throws com.liferay.portal.SystemException;
105 
106     public com.liferay.portlet.shopping.model.ShoppingOrder findByPPTxnId(
107         java.lang.String ppTxnId)
108         throws com.liferay.portal.SystemException,
109             com.liferay.portlet.shopping.NoSuchOrderException;
110 
111     public com.liferay.portlet.shopping.model.ShoppingOrder fetchByPPTxnId(
112         java.lang.String ppTxnId) throws com.liferay.portal.SystemException;
113 
114     public com.liferay.portlet.shopping.model.ShoppingOrder fetchByPPTxnId(
115         java.lang.String ppTxnId, boolean retrieveFromCache)
116         throws com.liferay.portal.SystemException;
117 
118     public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByG_U_PPPS(
119         long groupId, long userId, java.lang.String ppPaymentStatus)
120         throws com.liferay.portal.SystemException;
121 
122     public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByG_U_PPPS(
123         long groupId, long userId, java.lang.String ppPaymentStatus, int start,
124         int end) throws com.liferay.portal.SystemException;
125 
126     public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByG_U_PPPS(
127         long groupId, long userId, java.lang.String ppPaymentStatus, int start,
128         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
129         throws com.liferay.portal.SystemException;
130 
131     public com.liferay.portlet.shopping.model.ShoppingOrder findByG_U_PPPS_First(
132         long groupId, long userId, java.lang.String ppPaymentStatus,
133         com.liferay.portal.kernel.util.OrderByComparator obc)
134         throws com.liferay.portal.SystemException,
135             com.liferay.portlet.shopping.NoSuchOrderException;
136 
137     public com.liferay.portlet.shopping.model.ShoppingOrder findByG_U_PPPS_Last(
138         long groupId, long userId, java.lang.String ppPaymentStatus,
139         com.liferay.portal.kernel.util.OrderByComparator obc)
140         throws com.liferay.portal.SystemException,
141             com.liferay.portlet.shopping.NoSuchOrderException;
142 
143     public com.liferay.portlet.shopping.model.ShoppingOrder[] findByG_U_PPPS_PrevAndNext(
144         long orderId, long groupId, long userId,
145         java.lang.String ppPaymentStatus,
146         com.liferay.portal.kernel.util.OrderByComparator obc)
147         throws com.liferay.portal.SystemException,
148             com.liferay.portlet.shopping.NoSuchOrderException;
149 
150     public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findAll()
151         throws com.liferay.portal.SystemException;
152 
153     public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findAll(
154         int start, int end) throws com.liferay.portal.SystemException;
155 
156     public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findAll(
157         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
158         throws com.liferay.portal.SystemException;
159 
160     public void removeByGroupId(long groupId)
161         throws com.liferay.portal.SystemException;
162 
163     public void removeByNumber(java.lang.String number)
164         throws com.liferay.portal.SystemException,
165             com.liferay.portlet.shopping.NoSuchOrderException;
166 
167     public void removeByPPTxnId(java.lang.String ppTxnId)
168         throws com.liferay.portal.SystemException,
169             com.liferay.portlet.shopping.NoSuchOrderException;
170 
171     public void removeByG_U_PPPS(long groupId, long userId,
172         java.lang.String ppPaymentStatus)
173         throws com.liferay.portal.SystemException;
174 
175     public void removeAll() throws com.liferay.portal.SystemException;
176 
177     public int countByGroupId(long groupId)
178         throws com.liferay.portal.SystemException;
179 
180     public int countByNumber(java.lang.String number)
181         throws com.liferay.portal.SystemException;
182 
183     public int countByPPTxnId(java.lang.String ppTxnId)
184         throws com.liferay.portal.SystemException;
185 
186     public int countByG_U_PPPS(long groupId, long userId,
187         java.lang.String ppPaymentStatus)
188         throws com.liferay.portal.SystemException;
189 
190     public int countAll() throws com.liferay.portal.SystemException;
191 }