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