001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.shopping.service.persistence;
016    
017    import com.liferay.portal.service.persistence.BasePersistence;
018    
019    import com.liferay.portlet.shopping.model.ShoppingOrder;
020    
021    /**
022     * @author    Brian Wing Shun Chan
023     * @see       ShoppingOrderPersistenceImpl
024     * @see       ShoppingOrderUtil
025     * @generated
026     */
027    public interface ShoppingOrderPersistence extends BasePersistence<ShoppingOrder> {
028            public void cacheResult(
029                    com.liferay.portlet.shopping.model.ShoppingOrder shoppingOrder);
030    
031            public void cacheResult(
032                    java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> shoppingOrders);
033    
034            public com.liferay.portlet.shopping.model.ShoppingOrder create(long orderId);
035    
036            public com.liferay.portlet.shopping.model.ShoppingOrder remove(long orderId)
037                    throws com.liferay.portal.kernel.exception.SystemException,
038                            com.liferay.portlet.shopping.NoSuchOrderException;
039    
040            public com.liferay.portlet.shopping.model.ShoppingOrder updateImpl(
041                    com.liferay.portlet.shopping.model.ShoppingOrder shoppingOrder,
042                    boolean merge)
043                    throws com.liferay.portal.kernel.exception.SystemException;
044    
045            public com.liferay.portlet.shopping.model.ShoppingOrder findByPrimaryKey(
046                    long orderId)
047                    throws com.liferay.portal.kernel.exception.SystemException,
048                            com.liferay.portlet.shopping.NoSuchOrderException;
049    
050            public com.liferay.portlet.shopping.model.ShoppingOrder fetchByPrimaryKey(
051                    long orderId)
052                    throws com.liferay.portal.kernel.exception.SystemException;
053    
054            public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByGroupId(
055                    long groupId)
056                    throws com.liferay.portal.kernel.exception.SystemException;
057    
058            public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByGroupId(
059                    long groupId, int start, int end)
060                    throws com.liferay.portal.kernel.exception.SystemException;
061    
062            public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByGroupId(
063                    long groupId, int start, int end,
064                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
065                    throws com.liferay.portal.kernel.exception.SystemException;
066    
067            public com.liferay.portlet.shopping.model.ShoppingOrder findByGroupId_First(
068                    long groupId,
069                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
070                    throws com.liferay.portal.kernel.exception.SystemException,
071                            com.liferay.portlet.shopping.NoSuchOrderException;
072    
073            public com.liferay.portlet.shopping.model.ShoppingOrder findByGroupId_Last(
074                    long groupId,
075                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
076                    throws com.liferay.portal.kernel.exception.SystemException,
077                            com.liferay.portlet.shopping.NoSuchOrderException;
078    
079            public com.liferay.portlet.shopping.model.ShoppingOrder[] findByGroupId_PrevAndNext(
080                    long orderId, long groupId,
081                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
082                    throws com.liferay.portal.kernel.exception.SystemException,
083                            com.liferay.portlet.shopping.NoSuchOrderException;
084    
085            public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> filterFindByGroupId(
086                    long groupId)
087                    throws com.liferay.portal.kernel.exception.SystemException;
088    
089            public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> filterFindByGroupId(
090                    long groupId, int start, int end)
091                    throws com.liferay.portal.kernel.exception.SystemException;
092    
093            public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> filterFindByGroupId(
094                    long groupId, int start, int end,
095                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
096                    throws com.liferay.portal.kernel.exception.SystemException;
097    
098            public com.liferay.portlet.shopping.model.ShoppingOrder findByNumber(
099                    java.lang.String number)
100                    throws com.liferay.portal.kernel.exception.SystemException,
101                            com.liferay.portlet.shopping.NoSuchOrderException;
102    
103            public com.liferay.portlet.shopping.model.ShoppingOrder fetchByNumber(
104                    java.lang.String number)
105                    throws com.liferay.portal.kernel.exception.SystemException;
106    
107            public com.liferay.portlet.shopping.model.ShoppingOrder fetchByNumber(
108                    java.lang.String number, boolean retrieveFromCache)
109                    throws com.liferay.portal.kernel.exception.SystemException;
110    
111            public com.liferay.portlet.shopping.model.ShoppingOrder findByPPTxnId(
112                    java.lang.String ppTxnId)
113                    throws com.liferay.portal.kernel.exception.SystemException,
114                            com.liferay.portlet.shopping.NoSuchOrderException;
115    
116            public com.liferay.portlet.shopping.model.ShoppingOrder fetchByPPTxnId(
117                    java.lang.String ppTxnId)
118                    throws com.liferay.portal.kernel.exception.SystemException;
119    
120            public com.liferay.portlet.shopping.model.ShoppingOrder fetchByPPTxnId(
121                    java.lang.String ppTxnId, boolean retrieveFromCache)
122                    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)
126                    throws com.liferay.portal.kernel.exception.SystemException;
127    
128            public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByG_U_PPPS(
129                    long groupId, long userId, java.lang.String ppPaymentStatus, int start,
130                    int end) throws com.liferay.portal.kernel.exception.SystemException;
131    
132            public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByG_U_PPPS(
133                    long groupId, long userId, java.lang.String ppPaymentStatus, int start,
134                    int end,
135                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
136                    throws com.liferay.portal.kernel.exception.SystemException;
137    
138            public com.liferay.portlet.shopping.model.ShoppingOrder findByG_U_PPPS_First(
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_Last(
145                    long groupId, long userId, java.lang.String ppPaymentStatus,
146                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
147                    throws com.liferay.portal.kernel.exception.SystemException,
148                            com.liferay.portlet.shopping.NoSuchOrderException;
149    
150            public com.liferay.portlet.shopping.model.ShoppingOrder[] findByG_U_PPPS_PrevAndNext(
151                    long orderId, long groupId, long userId,
152                    java.lang.String ppPaymentStatus,
153                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
154                    throws com.liferay.portal.kernel.exception.SystemException,
155                            com.liferay.portlet.shopping.NoSuchOrderException;
156    
157            public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> filterFindByG_U_PPPS(
158                    long groupId, long userId, java.lang.String ppPaymentStatus)
159                    throws com.liferay.portal.kernel.exception.SystemException;
160    
161            public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> filterFindByG_U_PPPS(
162                    long groupId, long userId, java.lang.String ppPaymentStatus, int start,
163                    int end) throws com.liferay.portal.kernel.exception.SystemException;
164    
165            public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> filterFindByG_U_PPPS(
166                    long groupId, long userId, java.lang.String ppPaymentStatus, int start,
167                    int end,
168                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
169                    throws com.liferay.portal.kernel.exception.SystemException;
170    
171            public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findAll()
172                    throws com.liferay.portal.kernel.exception.SystemException;
173    
174            public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findAll(
175                    int start, int end)
176                    throws com.liferay.portal.kernel.exception.SystemException;
177    
178            public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findAll(
179                    int start, int end,
180                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
181                    throws com.liferay.portal.kernel.exception.SystemException;
182    
183            public void removeByGroupId(long groupId)
184                    throws com.liferay.portal.kernel.exception.SystemException;
185    
186            public void removeByNumber(java.lang.String number)
187                    throws com.liferay.portal.kernel.exception.SystemException,
188                            com.liferay.portlet.shopping.NoSuchOrderException;
189    
190            public void removeByPPTxnId(java.lang.String ppTxnId)
191                    throws com.liferay.portal.kernel.exception.SystemException,
192                            com.liferay.portlet.shopping.NoSuchOrderException;
193    
194            public void removeByG_U_PPPS(long groupId, long userId,
195                    java.lang.String ppPaymentStatus)
196                    throws com.liferay.portal.kernel.exception.SystemException;
197    
198            public void removeAll()
199                    throws com.liferay.portal.kernel.exception.SystemException;
200    
201            public int countByGroupId(long groupId)
202                    throws com.liferay.portal.kernel.exception.SystemException;
203    
204            public int filterCountByGroupId(long groupId)
205                    throws com.liferay.portal.kernel.exception.SystemException;
206    
207            public int countByNumber(java.lang.String number)
208                    throws com.liferay.portal.kernel.exception.SystemException;
209    
210            public int countByPPTxnId(java.lang.String ppTxnId)
211                    throws com.liferay.portal.kernel.exception.SystemException;
212    
213            public int countByG_U_PPPS(long groupId, long userId,
214                    java.lang.String ppPaymentStatus)
215                    throws com.liferay.portal.kernel.exception.SystemException;
216    
217            public int filterCountByG_U_PPPS(long groupId, long userId,
218                    java.lang.String ppPaymentStatus)
219                    throws com.liferay.portal.kernel.exception.SystemException;
220    
221            public int countAll()
222                    throws com.liferay.portal.kernel.exception.SystemException;
223    }