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