1   /**
2    * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions 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  /**
26   * <a href="ShoppingOrderPersistence.java.html"><b><i>View Source</i></b></a>
27   *
28   * @author Brian Wing Shun Chan
29   *
30   */
31  public interface ShoppingOrderPersistence {
32      public com.liferay.portlet.shopping.model.ShoppingOrder create(long orderId);
33  
34      public com.liferay.portlet.shopping.model.ShoppingOrder remove(long orderId)
35          throws com.liferay.portal.SystemException, 
36              com.liferay.portlet.shopping.NoSuchOrderException;
37  
38      public com.liferay.portlet.shopping.model.ShoppingOrder remove(
39          com.liferay.portlet.shopping.model.ShoppingOrder shoppingOrder)
40          throws com.liferay.portal.SystemException;
41  
42      public com.liferay.portlet.shopping.model.ShoppingOrder update(
43          com.liferay.portlet.shopping.model.ShoppingOrder shoppingOrder)
44          throws com.liferay.portal.SystemException;
45  
46      public com.liferay.portlet.shopping.model.ShoppingOrder update(
47          com.liferay.portlet.shopping.model.ShoppingOrder shoppingOrder,
48          boolean merge) throws com.liferay.portal.SystemException;
49  
50      public com.liferay.portlet.shopping.model.ShoppingOrder updateImpl(
51          com.liferay.portlet.shopping.model.ShoppingOrder shoppingOrder,
52          boolean merge) throws com.liferay.portal.SystemException;
53  
54      public com.liferay.portlet.shopping.model.ShoppingOrder findByPrimaryKey(
55          long orderId)
56          throws com.liferay.portal.SystemException, 
57              com.liferay.portlet.shopping.NoSuchOrderException;
58  
59      public com.liferay.portlet.shopping.model.ShoppingOrder fetchByPrimaryKey(
60          long orderId) throws com.liferay.portal.SystemException;
61  
62      public java.util.List findByGroupId(long groupId)
63          throws com.liferay.portal.SystemException;
64  
65      public java.util.List findByGroupId(long groupId, int begin, int end)
66          throws com.liferay.portal.SystemException;
67  
68      public java.util.List findByGroupId(long groupId, int begin, int end,
69          com.liferay.portal.kernel.util.OrderByComparator obc)
70          throws com.liferay.portal.SystemException;
71  
72      public com.liferay.portlet.shopping.model.ShoppingOrder findByGroupId_First(
73          long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
74          throws com.liferay.portal.SystemException, 
75              com.liferay.portlet.shopping.NoSuchOrderException;
76  
77      public com.liferay.portlet.shopping.model.ShoppingOrder findByGroupId_Last(
78          long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
79          throws com.liferay.portal.SystemException, 
80              com.liferay.portlet.shopping.NoSuchOrderException;
81  
82      public com.liferay.portlet.shopping.model.ShoppingOrder[] findByGroupId_PrevAndNext(
83          long orderId, long groupId,
84          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 findByNumber(
89          java.lang.String number)
90          throws com.liferay.portal.SystemException, 
91              com.liferay.portlet.shopping.NoSuchOrderException;
92  
93      public com.liferay.portlet.shopping.model.ShoppingOrder fetchByNumber(
94          java.lang.String number) throws com.liferay.portal.SystemException;
95  
96      public java.util.List findByG_U_PPPS(long groupId, long userId,
97          java.lang.String ppPaymentStatus)
98          throws com.liferay.portal.SystemException;
99  
100     public java.util.List findByG_U_PPPS(long groupId, long userId,
101         java.lang.String ppPaymentStatus, int begin, int end)
102         throws com.liferay.portal.SystemException;
103 
104     public java.util.List findByG_U_PPPS(long groupId, long userId,
105         java.lang.String ppPaymentStatus, int begin, int end,
106         com.liferay.portal.kernel.util.OrderByComparator obc)
107         throws com.liferay.portal.SystemException;
108 
109     public com.liferay.portlet.shopping.model.ShoppingOrder findByG_U_PPPS_First(
110         long groupId, long userId, java.lang.String ppPaymentStatus,
111         com.liferay.portal.kernel.util.OrderByComparator obc)
112         throws com.liferay.portal.SystemException, 
113             com.liferay.portlet.shopping.NoSuchOrderException;
114 
115     public com.liferay.portlet.shopping.model.ShoppingOrder findByG_U_PPPS_Last(
116         long groupId, long userId, java.lang.String ppPaymentStatus,
117         com.liferay.portal.kernel.util.OrderByComparator obc)
118         throws com.liferay.portal.SystemException, 
119             com.liferay.portlet.shopping.NoSuchOrderException;
120 
121     public com.liferay.portlet.shopping.model.ShoppingOrder[] findByG_U_PPPS_PrevAndNext(
122         long orderId, long groupId, long userId,
123         java.lang.String ppPaymentStatus,
124         com.liferay.portal.kernel.util.OrderByComparator obc)
125         throws com.liferay.portal.SystemException, 
126             com.liferay.portlet.shopping.NoSuchOrderException;
127 
128     public java.util.List findWithDynamicQuery(
129         com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
130         throws com.liferay.portal.SystemException;
131 
132     public java.util.List findWithDynamicQuery(
133         com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
134         int begin, int end) throws com.liferay.portal.SystemException;
135 
136     public java.util.List findAll() throws com.liferay.portal.SystemException;
137 
138     public java.util.List findAll(int begin, int end)
139         throws com.liferay.portal.SystemException;
140 
141     public java.util.List findAll(int begin, int end,
142         com.liferay.portal.kernel.util.OrderByComparator obc)
143         throws com.liferay.portal.SystemException;
144 
145     public void removeByGroupId(long groupId)
146         throws com.liferay.portal.SystemException;
147 
148     public void removeByNumber(java.lang.String number)
149         throws com.liferay.portal.SystemException, 
150             com.liferay.portlet.shopping.NoSuchOrderException;
151 
152     public void removeByG_U_PPPS(long groupId, long userId,
153         java.lang.String ppPaymentStatus)
154         throws com.liferay.portal.SystemException;
155 
156     public void removeAll() throws com.liferay.portal.SystemException;
157 
158     public int countByGroupId(long groupId)
159         throws com.liferay.portal.SystemException;
160 
161     public int countByNumber(java.lang.String number)
162         throws com.liferay.portal.SystemException;
163 
164     public int countByG_U_PPPS(long groupId, long userId,
165         java.lang.String ppPaymentStatus)
166         throws com.liferay.portal.SystemException;
167 
168     public int countAll() throws com.liferay.portal.SystemException;
169 }