001
014
015 package com.liferay.portlet.shopping.service.persistence;
016
017 import com.liferay.portal.service.persistence.BasePersistence;
018
019 import com.liferay.portlet.shopping.model.ShoppingItem;
020
021
027 public interface ShoppingItemPersistence extends BasePersistence<ShoppingItem> {
028 public void cacheResult(
029 com.liferay.portlet.shopping.model.ShoppingItem shoppingItem);
030
031 public void cacheResult(
032 java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> shoppingItems);
033
034 public com.liferay.portlet.shopping.model.ShoppingItem create(long itemId);
035
036 public com.liferay.portlet.shopping.model.ShoppingItem remove(long itemId)
037 throws com.liferay.portal.kernel.exception.SystemException,
038 com.liferay.portlet.shopping.NoSuchItemException;
039
040 public com.liferay.portlet.shopping.model.ShoppingItem updateImpl(
041 com.liferay.portlet.shopping.model.ShoppingItem shoppingItem,
042 boolean merge)
043 throws com.liferay.portal.kernel.exception.SystemException;
044
045 public com.liferay.portlet.shopping.model.ShoppingItem findByPrimaryKey(
046 long itemId)
047 throws com.liferay.portal.kernel.exception.SystemException,
048 com.liferay.portlet.shopping.NoSuchItemException;
049
050 public com.liferay.portlet.shopping.model.ShoppingItem fetchByPrimaryKey(
051 long itemId) throws com.liferay.portal.kernel.exception.SystemException;
052
053 public com.liferay.portlet.shopping.model.ShoppingItem findBySmallImageId(
054 long smallImageId)
055 throws com.liferay.portal.kernel.exception.SystemException,
056 com.liferay.portlet.shopping.NoSuchItemException;
057
058 public com.liferay.portlet.shopping.model.ShoppingItem fetchBySmallImageId(
059 long smallImageId)
060 throws com.liferay.portal.kernel.exception.SystemException;
061
062 public com.liferay.portlet.shopping.model.ShoppingItem fetchBySmallImageId(
063 long smallImageId, boolean retrieveFromCache)
064 throws com.liferay.portal.kernel.exception.SystemException;
065
066 public com.liferay.portlet.shopping.model.ShoppingItem findByMediumImageId(
067 long mediumImageId)
068 throws com.liferay.portal.kernel.exception.SystemException,
069 com.liferay.portlet.shopping.NoSuchItemException;
070
071 public com.liferay.portlet.shopping.model.ShoppingItem fetchByMediumImageId(
072 long mediumImageId)
073 throws com.liferay.portal.kernel.exception.SystemException;
074
075 public com.liferay.portlet.shopping.model.ShoppingItem fetchByMediumImageId(
076 long mediumImageId, boolean retrieveFromCache)
077 throws com.liferay.portal.kernel.exception.SystemException;
078
079 public com.liferay.portlet.shopping.model.ShoppingItem findByLargeImageId(
080 long largeImageId)
081 throws com.liferay.portal.kernel.exception.SystemException,
082 com.liferay.portlet.shopping.NoSuchItemException;
083
084 public com.liferay.portlet.shopping.model.ShoppingItem fetchByLargeImageId(
085 long largeImageId)
086 throws com.liferay.portal.kernel.exception.SystemException;
087
088 public com.liferay.portlet.shopping.model.ShoppingItem fetchByLargeImageId(
089 long largeImageId, boolean retrieveFromCache)
090 throws com.liferay.portal.kernel.exception.SystemException;
091
092 public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> findByG_C(
093 long groupId, long categoryId)
094 throws com.liferay.portal.kernel.exception.SystemException;
095
096 public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> findByG_C(
097 long groupId, long categoryId, int start, int end)
098 throws com.liferay.portal.kernel.exception.SystemException;
099
100 public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> findByG_C(
101 long groupId, long categoryId, int start, int end,
102 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
103 throws com.liferay.portal.kernel.exception.SystemException;
104
105 public com.liferay.portlet.shopping.model.ShoppingItem findByG_C_First(
106 long groupId, long categoryId,
107 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
108 throws com.liferay.portal.kernel.exception.SystemException,
109 com.liferay.portlet.shopping.NoSuchItemException;
110
111 public com.liferay.portlet.shopping.model.ShoppingItem findByG_C_Last(
112 long groupId, long categoryId,
113 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
114 throws com.liferay.portal.kernel.exception.SystemException,
115 com.liferay.portlet.shopping.NoSuchItemException;
116
117 public com.liferay.portlet.shopping.model.ShoppingItem[] findByG_C_PrevAndNext(
118 long itemId, long groupId, long categoryId,
119 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
120 throws com.liferay.portal.kernel.exception.SystemException,
121 com.liferay.portlet.shopping.NoSuchItemException;
122
123 public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> filterFindByG_C(
124 long groupId, long categoryId)
125 throws com.liferay.portal.kernel.exception.SystemException;
126
127 public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> filterFindByG_C(
128 long groupId, long categoryId, int start, int end)
129 throws com.liferay.portal.kernel.exception.SystemException;
130
131 public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> filterFindByG_C(
132 long groupId, long categoryId, int start, int end,
133 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
134 throws com.liferay.portal.kernel.exception.SystemException;
135
136 public com.liferay.portlet.shopping.model.ShoppingItem findByC_S(
137 long companyId, java.lang.String sku)
138 throws com.liferay.portal.kernel.exception.SystemException,
139 com.liferay.portlet.shopping.NoSuchItemException;
140
141 public com.liferay.portlet.shopping.model.ShoppingItem fetchByC_S(
142 long companyId, java.lang.String sku)
143 throws com.liferay.portal.kernel.exception.SystemException;
144
145 public com.liferay.portlet.shopping.model.ShoppingItem fetchByC_S(
146 long companyId, java.lang.String sku, boolean retrieveFromCache)
147 throws com.liferay.portal.kernel.exception.SystemException;
148
149 public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> findAll()
150 throws com.liferay.portal.kernel.exception.SystemException;
151
152 public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> findAll(
153 int start, int end)
154 throws com.liferay.portal.kernel.exception.SystemException;
155
156 public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> findAll(
157 int start, int end,
158 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
159 throws com.liferay.portal.kernel.exception.SystemException;
160
161 public void removeBySmallImageId(long smallImageId)
162 throws com.liferay.portal.kernel.exception.SystemException,
163 com.liferay.portlet.shopping.NoSuchItemException;
164
165 public void removeByMediumImageId(long mediumImageId)
166 throws com.liferay.portal.kernel.exception.SystemException,
167 com.liferay.portlet.shopping.NoSuchItemException;
168
169 public void removeByLargeImageId(long largeImageId)
170 throws com.liferay.portal.kernel.exception.SystemException,
171 com.liferay.portlet.shopping.NoSuchItemException;
172
173 public void removeByG_C(long groupId, long categoryId)
174 throws com.liferay.portal.kernel.exception.SystemException;
175
176 public void removeByC_S(long companyId, java.lang.String sku)
177 throws com.liferay.portal.kernel.exception.SystemException,
178 com.liferay.portlet.shopping.NoSuchItemException;
179
180 public void removeAll()
181 throws com.liferay.portal.kernel.exception.SystemException;
182
183 public int countBySmallImageId(long smallImageId)
184 throws com.liferay.portal.kernel.exception.SystemException;
185
186 public int countByMediumImageId(long mediumImageId)
187 throws com.liferay.portal.kernel.exception.SystemException;
188
189 public int countByLargeImageId(long largeImageId)
190 throws com.liferay.portal.kernel.exception.SystemException;
191
192 public int countByG_C(long groupId, long categoryId)
193 throws com.liferay.portal.kernel.exception.SystemException;
194
195 public int filterCountByG_C(long groupId, long categoryId)
196 throws com.liferay.portal.kernel.exception.SystemException;
197
198 public int countByC_S(long companyId, java.lang.String sku)
199 throws com.liferay.portal.kernel.exception.SystemException;
200
201 public int countAll()
202 throws com.liferay.portal.kernel.exception.SystemException;
203
204 public java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> getShoppingItemPrices(
205 long pk) throws com.liferay.portal.kernel.exception.SystemException;
206
207 public java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> getShoppingItemPrices(
208 long pk, int start, int end)
209 throws com.liferay.portal.kernel.exception.SystemException;
210
211 public java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> getShoppingItemPrices(
212 long pk, int start, int end,
213 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
214 throws com.liferay.portal.kernel.exception.SystemException;
215
216 public int getShoppingItemPricesSize(long pk)
217 throws com.liferay.portal.kernel.exception.SystemException;
218
219 public boolean containsShoppingItemPrice(long pk, long shoppingItemPricePK)
220 throws com.liferay.portal.kernel.exception.SystemException;
221
222 public boolean containsShoppingItemPrices(long pk)
223 throws com.liferay.portal.kernel.exception.SystemException;
224 }