1
19
20 package com.liferay.portlet.shopping.service.persistence;
21
22 import com.liferay.portal.service.persistence.BasePersistence;
23
24
30 public interface ShoppingItemPersistence extends BasePersistence {
31 public void cacheResult(
32 com.liferay.portlet.shopping.model.ShoppingItem shoppingItem);
33
34 public void cacheResult(
35 java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> shoppingItems);
36
37 public void clearCache();
38
39 public com.liferay.portlet.shopping.model.ShoppingItem create(long itemId);
40
41 public com.liferay.portlet.shopping.model.ShoppingItem remove(long itemId)
42 throws com.liferay.portal.SystemException,
43 com.liferay.portlet.shopping.NoSuchItemException;
44
45 public com.liferay.portlet.shopping.model.ShoppingItem remove(
46 com.liferay.portlet.shopping.model.ShoppingItem shoppingItem)
47 throws com.liferay.portal.SystemException;
48
49
52 public com.liferay.portlet.shopping.model.ShoppingItem update(
53 com.liferay.portlet.shopping.model.ShoppingItem shoppingItem)
54 throws com.liferay.portal.SystemException;
55
56
69 public com.liferay.portlet.shopping.model.ShoppingItem update(
70 com.liferay.portlet.shopping.model.ShoppingItem shoppingItem,
71 boolean merge) throws com.liferay.portal.SystemException;
72
73 public com.liferay.portlet.shopping.model.ShoppingItem updateImpl(
74 com.liferay.portlet.shopping.model.ShoppingItem shoppingItem,
75 boolean merge) throws com.liferay.portal.SystemException;
76
77 public com.liferay.portlet.shopping.model.ShoppingItem findByPrimaryKey(
78 long itemId)
79 throws com.liferay.portal.SystemException,
80 com.liferay.portlet.shopping.NoSuchItemException;
81
82 public com.liferay.portlet.shopping.model.ShoppingItem fetchByPrimaryKey(
83 long itemId) throws com.liferay.portal.SystemException;
84
85 public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> findByCategoryId(
86 long categoryId) throws com.liferay.portal.SystemException;
87
88 public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> findByCategoryId(
89 long categoryId, int start, int end)
90 throws com.liferay.portal.SystemException;
91
92 public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> findByCategoryId(
93 long categoryId, int start, int end,
94 com.liferay.portal.kernel.util.OrderByComparator obc)
95 throws com.liferay.portal.SystemException;
96
97 public com.liferay.portlet.shopping.model.ShoppingItem findByCategoryId_First(
98 long categoryId, com.liferay.portal.kernel.util.OrderByComparator obc)
99 throws com.liferay.portal.SystemException,
100 com.liferay.portlet.shopping.NoSuchItemException;
101
102 public com.liferay.portlet.shopping.model.ShoppingItem findByCategoryId_Last(
103 long categoryId, com.liferay.portal.kernel.util.OrderByComparator obc)
104 throws com.liferay.portal.SystemException,
105 com.liferay.portlet.shopping.NoSuchItemException;
106
107 public com.liferay.portlet.shopping.model.ShoppingItem[] findByCategoryId_PrevAndNext(
108 long itemId, long categoryId,
109 com.liferay.portal.kernel.util.OrderByComparator obc)
110 throws com.liferay.portal.SystemException,
111 com.liferay.portlet.shopping.NoSuchItemException;
112
113 public com.liferay.portlet.shopping.model.ShoppingItem findBySmallImageId(
114 long smallImageId)
115 throws com.liferay.portal.SystemException,
116 com.liferay.portlet.shopping.NoSuchItemException;
117
118 public com.liferay.portlet.shopping.model.ShoppingItem fetchBySmallImageId(
119 long smallImageId) throws com.liferay.portal.SystemException;
120
121 public com.liferay.portlet.shopping.model.ShoppingItem fetchBySmallImageId(
122 long smallImageId, boolean retrieveFromCache)
123 throws com.liferay.portal.SystemException;
124
125 public com.liferay.portlet.shopping.model.ShoppingItem findByMediumImageId(
126 long mediumImageId)
127 throws com.liferay.portal.SystemException,
128 com.liferay.portlet.shopping.NoSuchItemException;
129
130 public com.liferay.portlet.shopping.model.ShoppingItem fetchByMediumImageId(
131 long mediumImageId) throws com.liferay.portal.SystemException;
132
133 public com.liferay.portlet.shopping.model.ShoppingItem fetchByMediumImageId(
134 long mediumImageId, boolean retrieveFromCache)
135 throws com.liferay.portal.SystemException;
136
137 public com.liferay.portlet.shopping.model.ShoppingItem findByLargeImageId(
138 long largeImageId)
139 throws com.liferay.portal.SystemException,
140 com.liferay.portlet.shopping.NoSuchItemException;
141
142 public com.liferay.portlet.shopping.model.ShoppingItem fetchByLargeImageId(
143 long largeImageId) throws com.liferay.portal.SystemException;
144
145 public com.liferay.portlet.shopping.model.ShoppingItem fetchByLargeImageId(
146 long largeImageId, boolean retrieveFromCache)
147 throws com.liferay.portal.SystemException;
148
149 public com.liferay.portlet.shopping.model.ShoppingItem findByC_S(
150 long companyId, java.lang.String sku)
151 throws com.liferay.portal.SystemException,
152 com.liferay.portlet.shopping.NoSuchItemException;
153
154 public com.liferay.portlet.shopping.model.ShoppingItem fetchByC_S(
155 long companyId, java.lang.String sku)
156 throws com.liferay.portal.SystemException;
157
158 public com.liferay.portlet.shopping.model.ShoppingItem fetchByC_S(
159 long companyId, java.lang.String sku, boolean retrieveFromCache)
160 throws com.liferay.portal.SystemException;
161
162 public java.util.List<Object> findWithDynamicQuery(
163 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
164 throws com.liferay.portal.SystemException;
165
166 public java.util.List<Object> findWithDynamicQuery(
167 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
168 int end) throws com.liferay.portal.SystemException;
169
170 public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> findAll()
171 throws com.liferay.portal.SystemException;
172
173 public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> findAll(
174 int start, int end) throws com.liferay.portal.SystemException;
175
176 public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> findAll(
177 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
178 throws com.liferay.portal.SystemException;
179
180 public void removeByCategoryId(long categoryId)
181 throws com.liferay.portal.SystemException;
182
183 public void removeBySmallImageId(long smallImageId)
184 throws com.liferay.portal.SystemException,
185 com.liferay.portlet.shopping.NoSuchItemException;
186
187 public void removeByMediumImageId(long mediumImageId)
188 throws com.liferay.portal.SystemException,
189 com.liferay.portlet.shopping.NoSuchItemException;
190
191 public void removeByLargeImageId(long largeImageId)
192 throws com.liferay.portal.SystemException,
193 com.liferay.portlet.shopping.NoSuchItemException;
194
195 public void removeByC_S(long companyId, java.lang.String sku)
196 throws com.liferay.portal.SystemException,
197 com.liferay.portlet.shopping.NoSuchItemException;
198
199 public void removeAll() throws com.liferay.portal.SystemException;
200
201 public int countByCategoryId(long categoryId)
202 throws com.liferay.portal.SystemException;
203
204 public int countBySmallImageId(long smallImageId)
205 throws com.liferay.portal.SystemException;
206
207 public int countByMediumImageId(long mediumImageId)
208 throws com.liferay.portal.SystemException;
209
210 public int countByLargeImageId(long largeImageId)
211 throws com.liferay.portal.SystemException;
212
213 public int countByC_S(long companyId, java.lang.String sku)
214 throws com.liferay.portal.SystemException;
215
216 public int countAll() throws com.liferay.portal.SystemException;
217
218 public java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> getShoppingItemPrices(
219 long pk) throws com.liferay.portal.SystemException;
220
221 public java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> getShoppingItemPrices(
222 long pk, int start, int end) throws com.liferay.portal.SystemException;
223
224 public java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> getShoppingItemPrices(
225 long pk, int start, int end,
226 com.liferay.portal.kernel.util.OrderByComparator obc)
227 throws com.liferay.portal.SystemException;
228
229 public int getShoppingItemPricesSize(long pk)
230 throws com.liferay.portal.SystemException;
231
232 public boolean containsShoppingItemPrice(long pk, long shoppingItemPricePK)
233 throws com.liferay.portal.SystemException;
234
235 public boolean containsShoppingItemPrices(long pk)
236 throws com.liferay.portal.SystemException;
237 }