1
22
23 package com.liferay.portlet.shopping.service.persistence;
24
25 import com.liferay.portal.PortalException;
26 import com.liferay.portal.SystemException;
27 import com.liferay.portal.kernel.annotation.Propagation;
28 import com.liferay.portal.kernel.annotation.Transactional;
29
30
36 @Transactional(rollbackFor = {
37 PortalException.class, SystemException.class})
38 public interface ShoppingItemPersistence {
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 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
78 public com.liferay.portlet.shopping.model.ShoppingItem findByPrimaryKey(
79 long itemId)
80 throws com.liferay.portal.SystemException,
81 com.liferay.portlet.shopping.NoSuchItemException;
82
83 public com.liferay.portlet.shopping.model.ShoppingItem fetchByPrimaryKey(
84 long itemId) throws com.liferay.portal.SystemException;
85
86 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
87 public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> findByCategoryId(
88 long categoryId) throws com.liferay.portal.SystemException;
89
90 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
91 public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> findByCategoryId(
92 long categoryId, int start, int end)
93 throws com.liferay.portal.SystemException;
94
95 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
96 public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> findByCategoryId(
97 long categoryId, int start, int end,
98 com.liferay.portal.kernel.util.OrderByComparator obc)
99 throws com.liferay.portal.SystemException;
100
101 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
102 public com.liferay.portlet.shopping.model.ShoppingItem findByCategoryId_First(
103 long categoryId, com.liferay.portal.kernel.util.OrderByComparator obc)
104 throws com.liferay.portal.SystemException,
105 com.liferay.portlet.shopping.NoSuchItemException;
106
107 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
108 public com.liferay.portlet.shopping.model.ShoppingItem findByCategoryId_Last(
109 long categoryId, com.liferay.portal.kernel.util.OrderByComparator obc)
110 throws com.liferay.portal.SystemException,
111 com.liferay.portlet.shopping.NoSuchItemException;
112
113 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
114 public com.liferay.portlet.shopping.model.ShoppingItem[] findByCategoryId_PrevAndNext(
115 long itemId, long categoryId,
116 com.liferay.portal.kernel.util.OrderByComparator obc)
117 throws com.liferay.portal.SystemException,
118 com.liferay.portlet.shopping.NoSuchItemException;
119
120 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
121 public com.liferay.portlet.shopping.model.ShoppingItem findBySmallImageId(
122 long smallImageId)
123 throws com.liferay.portal.SystemException,
124 com.liferay.portlet.shopping.NoSuchItemException;
125
126 public com.liferay.portlet.shopping.model.ShoppingItem fetchBySmallImageId(
127 long smallImageId) throws com.liferay.portal.SystemException;
128
129 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
130 public com.liferay.portlet.shopping.model.ShoppingItem findByMediumImageId(
131 long mediumImageId)
132 throws com.liferay.portal.SystemException,
133 com.liferay.portlet.shopping.NoSuchItemException;
134
135 public com.liferay.portlet.shopping.model.ShoppingItem fetchByMediumImageId(
136 long mediumImageId) throws com.liferay.portal.SystemException;
137
138 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
139 public com.liferay.portlet.shopping.model.ShoppingItem findByLargeImageId(
140 long largeImageId)
141 throws com.liferay.portal.SystemException,
142 com.liferay.portlet.shopping.NoSuchItemException;
143
144 public com.liferay.portlet.shopping.model.ShoppingItem fetchByLargeImageId(
145 long largeImageId) throws com.liferay.portal.SystemException;
146
147 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
148 public com.liferay.portlet.shopping.model.ShoppingItem findByC_S(
149 long companyId, java.lang.String sku)
150 throws com.liferay.portal.SystemException,
151 com.liferay.portlet.shopping.NoSuchItemException;
152
153 public com.liferay.portlet.shopping.model.ShoppingItem fetchByC_S(
154 long companyId, java.lang.String sku)
155 throws com.liferay.portal.SystemException;
156
157 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
158 public java.util.List<Object> findWithDynamicQuery(
159 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
160 throws com.liferay.portal.SystemException;
161
162 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
163 public java.util.List<Object> findWithDynamicQuery(
164 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
165 int end) throws com.liferay.portal.SystemException;
166
167 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
168 public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> findAll()
169 throws com.liferay.portal.SystemException;
170
171 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
172 public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> findAll(
173 int start, int end) throws com.liferay.portal.SystemException;
174
175 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
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 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
202 public int countByCategoryId(long categoryId)
203 throws com.liferay.portal.SystemException;
204
205 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
206 public int countBySmallImageId(long smallImageId)
207 throws com.liferay.portal.SystemException;
208
209 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
210 public int countByMediumImageId(long mediumImageId)
211 throws com.liferay.portal.SystemException;
212
213 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
214 public int countByLargeImageId(long largeImageId)
215 throws com.liferay.portal.SystemException;
216
217 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
218 public int countByC_S(long companyId, java.lang.String sku)
219 throws com.liferay.portal.SystemException;
220
221 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
222 public int countAll() throws com.liferay.portal.SystemException;
223
224 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
225 public java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> getShoppingItemPrices(
226 long pk) throws com.liferay.portal.SystemException;
227
228 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
229 public java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> getShoppingItemPrices(
230 long pk, int start, int end) throws com.liferay.portal.SystemException;
231
232 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
233 public java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> getShoppingItemPrices(
234 long pk, int start, int end,
235 com.liferay.portal.kernel.util.OrderByComparator obc)
236 throws com.liferay.portal.SystemException;
237
238 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
239 public int getShoppingItemPricesSize(long pk)
240 throws com.liferay.portal.SystemException;
241
242 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
243 public boolean containsShoppingItemPrice(long pk, long shoppingItemPricePK)
244 throws com.liferay.portal.SystemException;
245
246 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
247 public boolean containsShoppingItemPrices(long pk)
248 throws com.liferay.portal.SystemException;
249
250 public void registerListener(
251 com.liferay.portal.model.ModelListener listener);
252
253 public void unregisterListener(
254 com.liferay.portal.model.ModelListener listener);
255 }