1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
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.kernel.exception.SystemException,
45              com.liferay.portlet.shopping.NoSuchOrderException;
46  
47      public com.liferay.portlet.shopping.model.ShoppingOrder updateImpl(
48          com.liferay.portlet.shopping.model.ShoppingOrder shoppingOrder,
49          boolean merge)
50          throws com.liferay.portal.kernel.exception.SystemException;
51  
52      public com.liferay.portlet.shopping.model.ShoppingOrder findByPrimaryKey(
53          long orderId)
54          throws com.liferay.portal.kernel.exception.SystemException,
55              com.liferay.portlet.shopping.NoSuchOrderException;
56  
57      public com.liferay.portlet.shopping.model.ShoppingOrder fetchByPrimaryKey(
58          long orderId)
59          throws com.liferay.portal.kernel.exception.SystemException;
60  
61      public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByGroupId(
62          long groupId)
63          throws com.liferay.portal.kernel.exception.SystemException;
64  
65      public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByGroupId(
66          long groupId, int start, int end)
67          throws com.liferay.portal.kernel.exception.SystemException;
68  
69      public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByGroupId(
70          long groupId, int start, int end,
71          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
72          throws com.liferay.portal.kernel.exception.SystemException;
73  
74      public com.liferay.portlet.shopping.model.ShoppingOrder findByGroupId_First(
75          long groupId,
76          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
77          throws com.liferay.portal.kernel.exception.SystemException,
78              com.liferay.portlet.shopping.NoSuchOrderException;
79  
80      public com.liferay.portlet.shopping.model.ShoppingOrder findByGroupId_Last(
81          long groupId,
82          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
83          throws com.liferay.portal.kernel.exception.SystemException,
84              com.liferay.portlet.shopping.NoSuchOrderException;
85  
86      public com.liferay.portlet.shopping.model.ShoppingOrder[] findByGroupId_PrevAndNext(
87          long orderId, long groupId,
88          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
89          throws com.liferay.portal.kernel.exception.SystemException,
90              com.liferay.portlet.shopping.NoSuchOrderException;
91  
92      public com.liferay.portlet.shopping.model.ShoppingOrder findByNumber(
93          java.lang.String number)
94          throws com.liferay.portal.kernel.exception.SystemException,
95              com.liferay.portlet.shopping.NoSuchOrderException;
96  
97      public com.liferay.portlet.shopping.model.ShoppingOrder fetchByNumber(
98          java.lang.String number)
99          throws com.liferay.portal.kernel.exception.SystemException;
100 
101     public com.liferay.portlet.shopping.model.ShoppingOrder fetchByNumber(
102         java.lang.String number, boolean retrieveFromCache)
103         throws com.liferay.portal.kernel.exception.SystemException;
104 
105     public com.liferay.portlet.shopping.model.ShoppingOrder findByPPTxnId(
106         java.lang.String ppTxnId)
107         throws com.liferay.portal.kernel.exception.SystemException,
108             com.liferay.portlet.shopping.NoSuchOrderException;
109 
110     public com.liferay.portlet.shopping.model.ShoppingOrder fetchByPPTxnId(
111         java.lang.String ppTxnId)
112         throws com.liferay.portal.kernel.exception.SystemException;
113 
114     public com.liferay.portlet.shopping.model.ShoppingOrder fetchByPPTxnId(
115         java.lang.String ppTxnId, boolean retrieveFromCache)
116         throws com.liferay.portal.kernel.exception.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.kernel.exception.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.kernel.exception.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,
129         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
130         throws com.liferay.portal.kernel.exception.SystemException;
131 
132     public com.liferay.portlet.shopping.model.ShoppingOrder findByG_U_PPPS_First(
133         long groupId, long userId, java.lang.String ppPaymentStatus,
134         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
135         throws com.liferay.portal.kernel.exception.SystemException,
136             com.liferay.portlet.shopping.NoSuchOrderException;
137 
138     public com.liferay.portlet.shopping.model.ShoppingOrder findByG_U_PPPS_Last(
139         long groupId, long userId, java.lang.String ppPaymentStatus,
140         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
141         throws com.liferay.portal.kernel.exception.SystemException,
142             com.liferay.portlet.shopping.NoSuchOrderException;
143 
144     public com.liferay.portlet.shopping.model.ShoppingOrder[] findByG_U_PPPS_PrevAndNext(
145         long orderId, long groupId, long userId,
146         java.lang.String ppPaymentStatus,
147         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
148         throws com.liferay.portal.kernel.exception.SystemException,
149             com.liferay.portlet.shopping.NoSuchOrderException;
150 
151     public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findAll()
152         throws com.liferay.portal.kernel.exception.SystemException;
153 
154     public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findAll(
155         int start, int end)
156         throws com.liferay.portal.kernel.exception.SystemException;
157 
158     public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findAll(
159         int start, int end,
160         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
161         throws com.liferay.portal.kernel.exception.SystemException;
162 
163     public void removeByGroupId(long groupId)
164         throws com.liferay.portal.kernel.exception.SystemException;
165 
166     public void removeByNumber(java.lang.String number)
167         throws com.liferay.portal.kernel.exception.SystemException,
168             com.liferay.portlet.shopping.NoSuchOrderException;
169 
170     public void removeByPPTxnId(java.lang.String ppTxnId)
171         throws com.liferay.portal.kernel.exception.SystemException,
172             com.liferay.portlet.shopping.NoSuchOrderException;
173 
174     public void removeByG_U_PPPS(long groupId, long userId,
175         java.lang.String ppPaymentStatus)
176         throws com.liferay.portal.kernel.exception.SystemException;
177 
178     public void removeAll()
179         throws com.liferay.portal.kernel.exception.SystemException;
180 
181     public int countByGroupId(long groupId)
182         throws com.liferay.portal.kernel.exception.SystemException;
183 
184     public int countByNumber(java.lang.String number)
185         throws com.liferay.portal.kernel.exception.SystemException;
186 
187     public int countByPPTxnId(java.lang.String ppTxnId)
188         throws com.liferay.portal.kernel.exception.SystemException;
189 
190     public int countByG_U_PPPS(long groupId, long userId,
191         java.lang.String ppPaymentStatus)
192         throws com.liferay.portal.kernel.exception.SystemException;
193 
194     public int countAll()
195         throws com.liferay.portal.kernel.exception.SystemException;
196 }