1
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
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 java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> filterFindByG_C(
131 long groupId, long categoryId)
132 throws com.liferay.portal.kernel.exception.SystemException;
133
134 public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> filterFindByG_C(
135 long groupId, long categoryId, int start, int end)
136 throws com.liferay.portal.kernel.exception.SystemException;
137
138 public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> filterFindByG_C(
139 long groupId, long categoryId, int start, int end,
140 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
141 throws com.liferay.portal.kernel.exception.SystemException;
142
143 public com.liferay.portlet.shopping.model.ShoppingItem findByC_S(
144 long companyId, java.lang.String sku)
145 throws com.liferay.portal.kernel.exception.SystemException,
146 com.liferay.portlet.shopping.NoSuchItemException;
147
148 public com.liferay.portlet.shopping.model.ShoppingItem fetchByC_S(
149 long companyId, java.lang.String sku)
150 throws com.liferay.portal.kernel.exception.SystemException;
151
152 public com.liferay.portlet.shopping.model.ShoppingItem fetchByC_S(
153 long companyId, java.lang.String sku, boolean retrieveFromCache)
154 throws com.liferay.portal.kernel.exception.SystemException;
155
156 public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> findAll()
157 throws com.liferay.portal.kernel.exception.SystemException;
158
159 public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> findAll(
160 int start, int end)
161 throws com.liferay.portal.kernel.exception.SystemException;
162
163 public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> findAll(
164 int start, int end,
165 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
166 throws com.liferay.portal.kernel.exception.SystemException;
167
168 public void removeBySmallImageId(long smallImageId)
169 throws com.liferay.portal.kernel.exception.SystemException,
170 com.liferay.portlet.shopping.NoSuchItemException;
171
172 public void removeByMediumImageId(long mediumImageId)
173 throws com.liferay.portal.kernel.exception.SystemException,
174 com.liferay.portlet.shopping.NoSuchItemException;
175
176 public void removeByLargeImageId(long largeImageId)
177 throws com.liferay.portal.kernel.exception.SystemException,
178 com.liferay.portlet.shopping.NoSuchItemException;
179
180 public void removeByG_C(long groupId, long categoryId)
181 throws com.liferay.portal.kernel.exception.SystemException;
182
183 public void removeByC_S(long companyId, java.lang.String sku)
184 throws com.liferay.portal.kernel.exception.SystemException,
185 com.liferay.portlet.shopping.NoSuchItemException;
186
187 public void removeAll()
188 throws com.liferay.portal.kernel.exception.SystemException;
189
190 public int countBySmallImageId(long smallImageId)
191 throws com.liferay.portal.kernel.exception.SystemException;
192
193 public int countByMediumImageId(long mediumImageId)
194 throws com.liferay.portal.kernel.exception.SystemException;
195
196 public int countByLargeImageId(long largeImageId)
197 throws com.liferay.portal.kernel.exception.SystemException;
198
199 public int countByG_C(long groupId, long categoryId)
200 throws com.liferay.portal.kernel.exception.SystemException;
201
202 public int filterCountByG_C(long groupId, long categoryId)
203 throws com.liferay.portal.kernel.exception.SystemException;
204
205 public int countByC_S(long companyId, java.lang.String sku)
206 throws com.liferay.portal.kernel.exception.SystemException;
207
208 public int countAll()
209 throws com.liferay.portal.kernel.exception.SystemException;
210
211 public java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> getShoppingItemPrices(
212 long pk) throws com.liferay.portal.kernel.exception.SystemException;
213
214 public java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> getShoppingItemPrices(
215 long pk, int start, int end)
216 throws com.liferay.portal.kernel.exception.SystemException;
217
218 public java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> getShoppingItemPrices(
219 long pk, int start, int end,
220 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
221 throws com.liferay.portal.kernel.exception.SystemException;
222
223 public int getShoppingItemPricesSize(long pk)
224 throws com.liferay.portal.kernel.exception.SystemException;
225
226 public boolean containsShoppingItemPrice(long pk, long shoppingItemPricePK)
227 throws com.liferay.portal.kernel.exception.SystemException;
228
229 public boolean containsShoppingItemPrices(long pk)
230 throws com.liferay.portal.kernel.exception.SystemException;
231 }