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