1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   *
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.ShoppingItem;
20  
21  /**
22   * <a href="ShoppingItemPersistence.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       ShoppingItemPersistenceImpl
31   * @see       ShoppingItemUtil
32   * @generated
33   */
34  public interface ShoppingItemPersistence extends BasePersistence<ShoppingItem> {
35      public void cacheResult(
36          com.liferay.portlet.shopping.model.ShoppingItem shoppingItem);
37  
38      public void cacheResult(
39          java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> shoppingItems);
40  
41      public com.liferay.portlet.shopping.model.ShoppingItem create(long itemId);
42  
43      public com.liferay.portlet.shopping.model.ShoppingItem remove(long itemId)
44          throws com.liferay.portal.SystemException,
45              com.liferay.portlet.shopping.NoSuchItemException;
46  
47      /**
48       * @deprecated Use {@link BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)}.
49       */
50      public com.liferay.portlet.shopping.model.ShoppingItem update(
51          com.liferay.portlet.shopping.model.ShoppingItem shoppingItem)
52          throws com.liferay.portal.SystemException;
53  
54      public com.liferay.portlet.shopping.model.ShoppingItem updateImpl(
55          com.liferay.portlet.shopping.model.ShoppingItem shoppingItem,
56          boolean merge) throws com.liferay.portal.SystemException;
57  
58      public com.liferay.portlet.shopping.model.ShoppingItem findByPrimaryKey(
59          long itemId)
60          throws com.liferay.portal.SystemException,
61              com.liferay.portlet.shopping.NoSuchItemException;
62  
63      public com.liferay.portlet.shopping.model.ShoppingItem fetchByPrimaryKey(
64          long itemId) throws com.liferay.portal.SystemException;
65  
66      public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> findByCategoryId(
67          long categoryId) throws com.liferay.portal.SystemException;
68  
69      public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> findByCategoryId(
70          long categoryId, int start, int end)
71          throws com.liferay.portal.SystemException;
72  
73      public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> findByCategoryId(
74          long categoryId, int start, int end,
75          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
76          throws com.liferay.portal.SystemException;
77  
78      public com.liferay.portlet.shopping.model.ShoppingItem findByCategoryId_First(
79          long categoryId,
80          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
81          throws com.liferay.portal.SystemException,
82              com.liferay.portlet.shopping.NoSuchItemException;
83  
84      public com.liferay.portlet.shopping.model.ShoppingItem findByCategoryId_Last(
85          long categoryId,
86          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
87          throws com.liferay.portal.SystemException,
88              com.liferay.portlet.shopping.NoSuchItemException;
89  
90      public com.liferay.portlet.shopping.model.ShoppingItem[] findByCategoryId_PrevAndNext(
91          long itemId, long categoryId,
92          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
93          throws com.liferay.portal.SystemException,
94              com.liferay.portlet.shopping.NoSuchItemException;
95  
96      public com.liferay.portlet.shopping.model.ShoppingItem findBySmallImageId(
97          long smallImageId)
98          throws com.liferay.portal.SystemException,
99              com.liferay.portlet.shopping.NoSuchItemException;
100 
101     public com.liferay.portlet.shopping.model.ShoppingItem fetchBySmallImageId(
102         long smallImageId) throws com.liferay.portal.SystemException;
103 
104     public com.liferay.portlet.shopping.model.ShoppingItem fetchBySmallImageId(
105         long smallImageId, boolean retrieveFromCache)
106         throws com.liferay.portal.SystemException;
107 
108     public com.liferay.portlet.shopping.model.ShoppingItem findByMediumImageId(
109         long mediumImageId)
110         throws com.liferay.portal.SystemException,
111             com.liferay.portlet.shopping.NoSuchItemException;
112 
113     public com.liferay.portlet.shopping.model.ShoppingItem fetchByMediumImageId(
114         long mediumImageId) throws com.liferay.portal.SystemException;
115 
116     public com.liferay.portlet.shopping.model.ShoppingItem fetchByMediumImageId(
117         long mediumImageId, boolean retrieveFromCache)
118         throws com.liferay.portal.SystemException;
119 
120     public com.liferay.portlet.shopping.model.ShoppingItem findByLargeImageId(
121         long largeImageId)
122         throws com.liferay.portal.SystemException,
123             com.liferay.portlet.shopping.NoSuchItemException;
124 
125     public com.liferay.portlet.shopping.model.ShoppingItem fetchByLargeImageId(
126         long largeImageId) throws com.liferay.portal.SystemException;
127 
128     public com.liferay.portlet.shopping.model.ShoppingItem fetchByLargeImageId(
129         long largeImageId, boolean retrieveFromCache)
130         throws com.liferay.portal.SystemException;
131 
132     public com.liferay.portlet.shopping.model.ShoppingItem findByC_S(
133         long companyId, java.lang.String sku)
134         throws com.liferay.portal.SystemException,
135             com.liferay.portlet.shopping.NoSuchItemException;
136 
137     public com.liferay.portlet.shopping.model.ShoppingItem fetchByC_S(
138         long companyId, java.lang.String sku)
139         throws com.liferay.portal.SystemException;
140 
141     public com.liferay.portlet.shopping.model.ShoppingItem fetchByC_S(
142         long companyId, java.lang.String sku, boolean retrieveFromCache)
143         throws com.liferay.portal.SystemException;
144 
145     public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> findAll()
146         throws com.liferay.portal.SystemException;
147 
148     public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> findAll(
149         int start, int end) throws com.liferay.portal.SystemException;
150 
151     public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> findAll(
152         int start, int end,
153         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
154         throws com.liferay.portal.SystemException;
155 
156     public void removeByCategoryId(long categoryId)
157         throws com.liferay.portal.SystemException;
158 
159     public void removeBySmallImageId(long smallImageId)
160         throws com.liferay.portal.SystemException,
161             com.liferay.portlet.shopping.NoSuchItemException;
162 
163     public void removeByMediumImageId(long mediumImageId)
164         throws com.liferay.portal.SystemException,
165             com.liferay.portlet.shopping.NoSuchItemException;
166 
167     public void removeByLargeImageId(long largeImageId)
168         throws com.liferay.portal.SystemException,
169             com.liferay.portlet.shopping.NoSuchItemException;
170 
171     public void removeByC_S(long companyId, java.lang.String sku)
172         throws com.liferay.portal.SystemException,
173             com.liferay.portlet.shopping.NoSuchItemException;
174 
175     public void removeAll() throws com.liferay.portal.SystemException;
176 
177     public int countByCategoryId(long categoryId)
178         throws com.liferay.portal.SystemException;
179 
180     public int countBySmallImageId(long smallImageId)
181         throws com.liferay.portal.SystemException;
182 
183     public int countByMediumImageId(long mediumImageId)
184         throws com.liferay.portal.SystemException;
185 
186     public int countByLargeImageId(long largeImageId)
187         throws com.liferay.portal.SystemException;
188 
189     public int countByC_S(long companyId, java.lang.String sku)
190         throws com.liferay.portal.SystemException;
191 
192     public int countAll() throws com.liferay.portal.SystemException;
193 
194     public java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> getShoppingItemPrices(
195         long pk) throws com.liferay.portal.SystemException;
196 
197     public java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> getShoppingItemPrices(
198         long pk, int start, int end) throws com.liferay.portal.SystemException;
199 
200     public java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> getShoppingItemPrices(
201         long pk, int start, int end,
202         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
203         throws com.liferay.portal.SystemException;
204 
205     public int getShoppingItemPricesSize(long pk)
206         throws com.liferay.portal.SystemException;
207 
208     public boolean containsShoppingItemPrice(long pk, long shoppingItemPricePK)
209         throws com.liferay.portal.SystemException;
210 
211     public boolean containsShoppingItemPrices(long pk)
212         throws com.liferay.portal.SystemException;
213 }