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 orderByComparator)
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 orderByComparator)
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 orderByComparator)
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 orderByComparator)
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,
152         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
153         throws com.liferay.portal.kernel.exception.SystemException;
154 
155     public void removeBySmallImageId(long smallImageId)
156         throws com.liferay.portal.kernel.exception.SystemException,
157             com.liferay.portlet.shopping.NoSuchItemException;
158 
159     public void removeByMediumImageId(long mediumImageId)
160         throws com.liferay.portal.kernel.exception.SystemException,
161             com.liferay.portlet.shopping.NoSuchItemException;
162 
163     public void removeByLargeImageId(long largeImageId)
164         throws com.liferay.portal.kernel.exception.SystemException,
165             com.liferay.portlet.shopping.NoSuchItemException;
166 
167     public void removeByG_C(long groupId, long categoryId)
168         throws com.liferay.portal.kernel.exception.SystemException;
169 
170     public void removeByC_S(long companyId, java.lang.String sku)
171         throws com.liferay.portal.kernel.exception.SystemException,
172             com.liferay.portlet.shopping.NoSuchItemException;
173 
174     public void removeAll()
175         throws com.liferay.portal.kernel.exception.SystemException;
176 
177     public int countBySmallImageId(long smallImageId)
178         throws com.liferay.portal.kernel.exception.SystemException;
179 
180     public int countByMediumImageId(long mediumImageId)
181         throws com.liferay.portal.kernel.exception.SystemException;
182 
183     public int countByLargeImageId(long largeImageId)
184         throws com.liferay.portal.kernel.exception.SystemException;
185 
186     public int countByG_C(long groupId, long categoryId)
187         throws com.liferay.portal.kernel.exception.SystemException;
188 
189     public int countByC_S(long companyId, java.lang.String sku)
190         throws com.liferay.portal.kernel.exception.SystemException;
191 
192     public int countAll()
193         throws com.liferay.portal.kernel.exception.SystemException;
194 
195     public java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> getShoppingItemPrices(
196         long pk) throws com.liferay.portal.kernel.exception.SystemException;
197 
198     public java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> getShoppingItemPrices(
199         long pk, int start, int end)
200         throws com.liferay.portal.kernel.exception.SystemException;
201 
202     public java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> getShoppingItemPrices(
203         long pk, int start, int end,
204         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
205         throws com.liferay.portal.kernel.exception.SystemException;
206 
207     public int getShoppingItemPricesSize(long pk)
208         throws com.liferay.portal.kernel.exception.SystemException;
209 
210     public boolean containsShoppingItemPrice(long pk, long shoppingItemPricePK)
211         throws com.liferay.portal.kernel.exception.SystemException;
212 
213     public boolean containsShoppingItemPrices(long pk)
214         throws com.liferay.portal.kernel.exception.SystemException;
215 }