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.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.kernel.exception.SystemException,
45              com.liferay.portlet.shopping.NoSuchItemException;
46  
47      public com.liferay.portlet.shopping.model.ShoppingItem updateImpl(
48          com.liferay.portlet.shopping.model.ShoppingItem shoppingItem,
49          boolean merge)
50          throws com.liferay.portal.kernel.exception.SystemException;
51  
52      public com.liferay.portlet.shopping.model.ShoppingItem findByPrimaryKey(
53          long itemId)
54          throws com.liferay.portal.kernel.exception.SystemException,
55              com.liferay.portlet.shopping.NoSuchItemException;
56  
57      public com.liferay.portlet.shopping.model.ShoppingItem fetchByPrimaryKey(
58          long itemId) throws com.liferay.portal.kernel.exception.SystemException;
59  
60      public com.liferay.portlet.shopping.model.ShoppingItem findBySmallImageId(
61          long smallImageId)
62          throws com.liferay.portal.kernel.exception.SystemException,
63              com.liferay.portlet.shopping.NoSuchItemException;
64  
65      public com.liferay.portlet.shopping.model.ShoppingItem fetchBySmallImageId(
66          long smallImageId)
67          throws com.liferay.portal.kernel.exception.SystemException;
68  
69      public com.liferay.portlet.shopping.model.ShoppingItem fetchBySmallImageId(
70          long smallImageId, boolean retrieveFromCache)
71          throws com.liferay.portal.kernel.exception.SystemException;
72  
73      public com.liferay.portlet.shopping.model.ShoppingItem findByMediumImageId(
74          long mediumImageId)
75          throws com.liferay.portal.kernel.exception.SystemException,
76              com.liferay.portlet.shopping.NoSuchItemException;
77  
78      public com.liferay.portlet.shopping.model.ShoppingItem fetchByMediumImageId(
79          long mediumImageId)
80          throws com.liferay.portal.kernel.exception.SystemException;
81  
82      public com.liferay.portlet.shopping.model.ShoppingItem fetchByMediumImageId(
83          long mediumImageId, boolean retrieveFromCache)
84          throws com.liferay.portal.kernel.exception.SystemException;
85  
86      public com.liferay.portlet.shopping.model.ShoppingItem findByLargeImageId(
87          long largeImageId)
88          throws com.liferay.portal.kernel.exception.SystemException,
89              com.liferay.portlet.shopping.NoSuchItemException;
90  
91      public com.liferay.portlet.shopping.model.ShoppingItem fetchByLargeImageId(
92          long largeImageId)
93          throws com.liferay.portal.kernel.exception.SystemException;
94  
95      public com.liferay.portlet.shopping.model.ShoppingItem fetchByLargeImageId(
96          long largeImageId, boolean retrieveFromCache)
97          throws com.liferay.portal.kernel.exception.SystemException;
98  
99      public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> findByG_C(
100         long groupId, long categoryId)
101         throws com.liferay.portal.kernel.exception.SystemException;
102 
103     public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> findByG_C(
104         long groupId, long categoryId, int start, int end)
105         throws com.liferay.portal.kernel.exception.SystemException;
106 
107     public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> findByG_C(
108         long groupId, long categoryId, int start, int end,
109         com.liferay.portal.kernel.util.OrderByComparator obc)
110         throws com.liferay.portal.kernel.exception.SystemException;
111 
112     public com.liferay.portlet.shopping.model.ShoppingItem findByG_C_First(
113         long groupId, long categoryId,
114         com.liferay.portal.kernel.util.OrderByComparator obc)
115         throws com.liferay.portal.kernel.exception.SystemException,
116             com.liferay.portlet.shopping.NoSuchItemException;
117 
118     public com.liferay.portlet.shopping.model.ShoppingItem findByG_C_Last(
119         long groupId, long categoryId,
120         com.liferay.portal.kernel.util.OrderByComparator obc)
121         throws com.liferay.portal.kernel.exception.SystemException,
122             com.liferay.portlet.shopping.NoSuchItemException;
123 
124     public com.liferay.portlet.shopping.model.ShoppingItem[] findByG_C_PrevAndNext(
125         long itemId, long groupId, long categoryId,
126         com.liferay.portal.kernel.util.OrderByComparator obc)
127         throws com.liferay.portal.kernel.exception.SystemException,
128             com.liferay.portlet.shopping.NoSuchItemException;
129 
130     public com.liferay.portlet.shopping.model.ShoppingItem findByC_S(
131         long companyId, java.lang.String sku)
132         throws com.liferay.portal.kernel.exception.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.kernel.exception.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.kernel.exception.SystemException;
142 
143     public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> findAll()
144         throws com.liferay.portal.kernel.exception.SystemException;
145 
146     public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> findAll(
147         int start, int end)
148         throws com.liferay.portal.kernel.exception.SystemException;
149 
150     public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> findAll(
151         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
152         throws com.liferay.portal.kernel.exception.SystemException;
153 
154     public void removeBySmallImageId(long smallImageId)
155         throws com.liferay.portal.kernel.exception.SystemException,
156             com.liferay.portlet.shopping.NoSuchItemException;
157 
158     public void removeByMediumImageId(long mediumImageId)
159         throws com.liferay.portal.kernel.exception.SystemException,
160             com.liferay.portlet.shopping.NoSuchItemException;
161 
162     public void removeByLargeImageId(long largeImageId)
163         throws com.liferay.portal.kernel.exception.SystemException,
164             com.liferay.portlet.shopping.NoSuchItemException;
165 
166     public void removeByG_C(long groupId, long categoryId)
167         throws com.liferay.portal.kernel.exception.SystemException;
168 
169     public void removeByC_S(long companyId, java.lang.String sku)
170         throws com.liferay.portal.kernel.exception.SystemException,
171             com.liferay.portlet.shopping.NoSuchItemException;
172 
173     public void removeAll()
174         throws com.liferay.portal.kernel.exception.SystemException;
175 
176     public int countBySmallImageId(long smallImageId)
177         throws com.liferay.portal.kernel.exception.SystemException;
178 
179     public int countByMediumImageId(long mediumImageId)
180         throws com.liferay.portal.kernel.exception.SystemException;
181 
182     public int countByLargeImageId(long largeImageId)
183         throws com.liferay.portal.kernel.exception.SystemException;
184 
185     public int countByG_C(long groupId, long categoryId)
186         throws com.liferay.portal.kernel.exception.SystemException;
187 
188     public int countByC_S(long companyId, java.lang.String sku)
189         throws com.liferay.portal.kernel.exception.SystemException;
190 
191     public int countAll()
192         throws com.liferay.portal.kernel.exception.SystemException;
193 
194     public java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> getShoppingItemPrices(
195         long pk) throws com.liferay.portal.kernel.exception.SystemException;
196 
197     public java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> getShoppingItemPrices(
198         long pk, int start, int end)
199         throws com.liferay.portal.kernel.exception.SystemException;
200 
201     public java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> getShoppingItemPrices(
202         long pk, int start, int end,
203         com.liferay.portal.kernel.util.OrderByComparator obc)
204         throws com.liferay.portal.kernel.exception.SystemException;
205 
206     public int getShoppingItemPricesSize(long pk)
207         throws com.liferay.portal.kernel.exception.SystemException;
208 
209     public boolean containsShoppingItemPrice(long pk, long shoppingItemPricePK)
210         throws com.liferay.portal.kernel.exception.SystemException;
211 
212     public boolean containsShoppingItemPrices(long pk)
213         throws com.liferay.portal.kernel.exception.SystemException;
214 }