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