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 obc)
76          throws com.liferay.portal.SystemException;
77  
78      public com.liferay.portlet.shopping.model.ShoppingItem findByCategoryId_First(
79          long categoryId, com.liferay.portal.kernel.util.OrderByComparator obc)
80          throws com.liferay.portal.SystemException,
81              com.liferay.portlet.shopping.NoSuchItemException;
82  
83      public com.liferay.portlet.shopping.model.ShoppingItem findByCategoryId_Last(
84          long categoryId, com.liferay.portal.kernel.util.OrderByComparator obc)
85          throws com.liferay.portal.SystemException,
86              com.liferay.portlet.shopping.NoSuchItemException;
87  
88      public com.liferay.portlet.shopping.model.ShoppingItem[] findByCategoryId_PrevAndNext(
89          long itemId, long categoryId,
90          com.liferay.portal.kernel.util.OrderByComparator obc)
91          throws com.liferay.portal.SystemException,
92              com.liferay.portlet.shopping.NoSuchItemException;
93  
94      public com.liferay.portlet.shopping.model.ShoppingItem findBySmallImageId(
95          long smallImageId)
96          throws com.liferay.portal.SystemException,
97              com.liferay.portlet.shopping.NoSuchItemException;
98  
99      public com.liferay.portlet.shopping.model.ShoppingItem fetchBySmallImageId(
100         long smallImageId) throws com.liferay.portal.SystemException;
101 
102     public com.liferay.portlet.shopping.model.ShoppingItem fetchBySmallImageId(
103         long smallImageId, boolean retrieveFromCache)
104         throws com.liferay.portal.SystemException;
105 
106     public com.liferay.portlet.shopping.model.ShoppingItem findByMediumImageId(
107         long mediumImageId)
108         throws com.liferay.portal.SystemException,
109             com.liferay.portlet.shopping.NoSuchItemException;
110 
111     public com.liferay.portlet.shopping.model.ShoppingItem fetchByMediumImageId(
112         long mediumImageId) throws com.liferay.portal.SystemException;
113 
114     public com.liferay.portlet.shopping.model.ShoppingItem fetchByMediumImageId(
115         long mediumImageId, boolean retrieveFromCache)
116         throws com.liferay.portal.SystemException;
117 
118     public com.liferay.portlet.shopping.model.ShoppingItem findByLargeImageId(
119         long largeImageId)
120         throws com.liferay.portal.SystemException,
121             com.liferay.portlet.shopping.NoSuchItemException;
122 
123     public com.liferay.portlet.shopping.model.ShoppingItem fetchByLargeImageId(
124         long largeImageId) throws com.liferay.portal.SystemException;
125 
126     public com.liferay.portlet.shopping.model.ShoppingItem fetchByLargeImageId(
127         long largeImageId, boolean retrieveFromCache)
128         throws com.liferay.portal.SystemException;
129 
130     public com.liferay.portlet.shopping.model.ShoppingItem findByC_S(
131         long companyId, java.lang.String sku)
132         throws com.liferay.portal.SystemException,
133             com.liferay.portlet.shopping.NoSuchItemException;
134 
135     public com.liferay.portlet.shopping.model.ShoppingItem fetchByC_S(
136         long companyId, java.lang.String sku)
137         throws com.liferay.portal.SystemException;
138 
139     public com.liferay.portlet.shopping.model.ShoppingItem fetchByC_S(
140         long companyId, java.lang.String sku, boolean retrieveFromCache)
141         throws com.liferay.portal.SystemException;
142 
143     public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> findAll()
144         throws com.liferay.portal.SystemException;
145 
146     public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> findAll(
147         int start, int end) throws com.liferay.portal.SystemException;
148 
149     public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> findAll(
150         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
151         throws com.liferay.portal.SystemException;
152 
153     public void removeByCategoryId(long categoryId)
154         throws com.liferay.portal.SystemException;
155 
156     public void removeBySmallImageId(long smallImageId)
157         throws com.liferay.portal.SystemException,
158             com.liferay.portlet.shopping.NoSuchItemException;
159 
160     public void removeByMediumImageId(long mediumImageId)
161         throws com.liferay.portal.SystemException,
162             com.liferay.portlet.shopping.NoSuchItemException;
163 
164     public void removeByLargeImageId(long largeImageId)
165         throws com.liferay.portal.SystemException,
166             com.liferay.portlet.shopping.NoSuchItemException;
167 
168     public void removeByC_S(long companyId, java.lang.String sku)
169         throws com.liferay.portal.SystemException,
170             com.liferay.portlet.shopping.NoSuchItemException;
171 
172     public void removeAll() throws com.liferay.portal.SystemException;
173 
174     public int countByCategoryId(long categoryId)
175         throws com.liferay.portal.SystemException;
176 
177     public int countBySmallImageId(long smallImageId)
178         throws com.liferay.portal.SystemException;
179 
180     public int countByMediumImageId(long mediumImageId)
181         throws com.liferay.portal.SystemException;
182 
183     public int countByLargeImageId(long largeImageId)
184         throws com.liferay.portal.SystemException;
185 
186     public int countByC_S(long companyId, java.lang.String sku)
187         throws com.liferay.portal.SystemException;
188 
189     public int countAll() throws com.liferay.portal.SystemException;
190 
191     public java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> getShoppingItemPrices(
192         long pk) throws com.liferay.portal.SystemException;
193 
194     public java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> getShoppingItemPrices(
195         long pk, int start, int end) 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,
199         com.liferay.portal.kernel.util.OrderByComparator obc)
200         throws com.liferay.portal.SystemException;
201 
202     public int getShoppingItemPricesSize(long pk)
203         throws com.liferay.portal.SystemException;
204 
205     public boolean containsShoppingItemPrice(long pk, long shoppingItemPricePK)
206         throws com.liferay.portal.SystemException;
207 
208     public boolean containsShoppingItemPrices(long pk)
209         throws com.liferay.portal.SystemException;
210 }