1   /**
2    * Copyright (c) 2000-2007 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 findByPrimaryKey(
51          long orderId)
52          throws com.liferay.portal.SystemException, 
53              com.liferay.portlet.shopping.NoSuchOrderException;
54  
55      public com.liferay.portlet.shopping.model.ShoppingOrder fetchByPrimaryKey(
56          long orderId) throws com.liferay.portal.SystemException;
57  
58      public com.liferay.portlet.shopping.model.ShoppingOrder findByNumber(
59          java.lang.String number)
60          throws com.liferay.portal.SystemException, 
61              com.liferay.portlet.shopping.NoSuchOrderException;
62  
63      public com.liferay.portlet.shopping.model.ShoppingOrder fetchByNumber(
64          java.lang.String number) throws com.liferay.portal.SystemException;
65  
66      public java.util.List findByG_U_PPPS(long groupId, long userId,
67          java.lang.String ppPaymentStatus)
68          throws com.liferay.portal.SystemException;
69  
70      public java.util.List findByG_U_PPPS(long groupId, long userId,
71          java.lang.String ppPaymentStatus, int begin, int end)
72          throws com.liferay.portal.SystemException;
73  
74      public java.util.List findByG_U_PPPS(long groupId, long userId,
75          java.lang.String ppPaymentStatus, int begin, int end,
76          com.liferay.portal.kernel.util.OrderByComparator obc)
77          throws com.liferay.portal.SystemException;
78  
79      public com.liferay.portlet.shopping.model.ShoppingOrder findByG_U_PPPS_First(
80          long groupId, long userId, java.lang.String ppPaymentStatus,
81          com.liferay.portal.kernel.util.OrderByComparator obc)
82          throws com.liferay.portal.SystemException, 
83              com.liferay.portlet.shopping.NoSuchOrderException;
84  
85      public com.liferay.portlet.shopping.model.ShoppingOrder findByG_U_PPPS_Last(
86          long groupId, long userId, java.lang.String ppPaymentStatus,
87          com.liferay.portal.kernel.util.OrderByComparator obc)
88          throws com.liferay.portal.SystemException, 
89              com.liferay.portlet.shopping.NoSuchOrderException;
90  
91      public com.liferay.portlet.shopping.model.ShoppingOrder[] findByG_U_PPPS_PrevAndNext(
92          long orderId, long groupId, long userId,
93          java.lang.String ppPaymentStatus,
94          com.liferay.portal.kernel.util.OrderByComparator obc)
95          throws com.liferay.portal.SystemException, 
96              com.liferay.portlet.shopping.NoSuchOrderException;
97  
98      public java.util.List findWithDynamicQuery(
99          com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
100         throws com.liferay.portal.SystemException;
101 
102     public java.util.List findWithDynamicQuery(
103         com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
104         int begin, int end) throws com.liferay.portal.SystemException;
105 
106     public java.util.List findAll() throws com.liferay.portal.SystemException;
107 
108     public java.util.List findAll(int begin, int end)
109         throws com.liferay.portal.SystemException;
110 
111     public java.util.List findAll(int begin, int end,
112         com.liferay.portal.kernel.util.OrderByComparator obc)
113         throws com.liferay.portal.SystemException;
114 
115     public void removeByNumber(java.lang.String number)
116         throws com.liferay.portal.SystemException, 
117             com.liferay.portlet.shopping.NoSuchOrderException;
118 
119     public void removeByG_U_PPPS(long groupId, long userId,
120         java.lang.String ppPaymentStatus)
121         throws com.liferay.portal.SystemException;
122 
123     public void removeAll() throws com.liferay.portal.SystemException;
124 
125     public int countByNumber(java.lang.String number)
126         throws com.liferay.portal.SystemException;
127 
128     public int countByG_U_PPPS(long groupId, long userId,
129         java.lang.String ppPaymentStatus)
130         throws com.liferay.portal.SystemException;
131 
132     public int countAll() throws com.liferay.portal.SystemException;
133 }