1
22
23 package com.liferay.portlet.shopping.service.persistence;
24
25 import com.liferay.portal.service.persistence.BasePersistence;
26
27 import com.liferay.portlet.shopping.model.ShoppingItem;
28
29
42 public interface ShoppingItemPersistence extends BasePersistence<ShoppingItem> {
43 public void cacheResult(
44 com.liferay.portlet.shopping.model.ShoppingItem shoppingItem);
45
46 public void cacheResult(
47 java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> shoppingItems);
48
49 public com.liferay.portlet.shopping.model.ShoppingItem create(long itemId);
50
51 public com.liferay.portlet.shopping.model.ShoppingItem remove(long itemId)
52 throws com.liferay.portal.SystemException,
53 com.liferay.portlet.shopping.NoSuchItemException;
54
55
58 public com.liferay.portlet.shopping.model.ShoppingItem update(
59 com.liferay.portlet.shopping.model.ShoppingItem shoppingItem)
60 throws com.liferay.portal.SystemException;
61
62 public com.liferay.portlet.shopping.model.ShoppingItem updateImpl(
63 com.liferay.portlet.shopping.model.ShoppingItem shoppingItem,
64 boolean merge) throws com.liferay.portal.SystemException;
65
66 public com.liferay.portlet.shopping.model.ShoppingItem findByPrimaryKey(
67 long itemId)
68 throws com.liferay.portal.SystemException,
69 com.liferay.portlet.shopping.NoSuchItemException;
70
71 public com.liferay.portlet.shopping.model.ShoppingItem fetchByPrimaryKey(
72 long itemId) throws com.liferay.portal.SystemException;
73
74 public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> findByCategoryId(
75 long categoryId) throws com.liferay.portal.SystemException;
76
77 public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> findByCategoryId(
78 long categoryId, int start, int end)
79 throws com.liferay.portal.SystemException;
80
81 public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> findByCategoryId(
82 long categoryId, int start, int end,
83 com.liferay.portal.kernel.util.OrderByComparator obc)
84 throws com.liferay.portal.SystemException;
85
86 public com.liferay.portlet.shopping.model.ShoppingItem findByCategoryId_First(
87 long categoryId, com.liferay.portal.kernel.util.OrderByComparator obc)
88 throws com.liferay.portal.SystemException,
89 com.liferay.portlet.shopping.NoSuchItemException;
90
91 public com.liferay.portlet.shopping.model.ShoppingItem findByCategoryId_Last(
92 long categoryId, com.liferay.portal.kernel.util.OrderByComparator obc)
93 throws com.liferay.portal.SystemException,
94 com.liferay.portlet.shopping.NoSuchItemException;
95
96 public com.liferay.portlet.shopping.model.ShoppingItem[] findByCategoryId_PrevAndNext(
97 long itemId, long categoryId,
98 com.liferay.portal.kernel.util.OrderByComparator obc)
99 throws com.liferay.portal.SystemException,
100 com.liferay.portlet.shopping.NoSuchItemException;
101
102 public com.liferay.portlet.shopping.model.ShoppingItem findBySmallImageId(
103 long smallImageId)
104 throws com.liferay.portal.SystemException,
105 com.liferay.portlet.shopping.NoSuchItemException;
106
107 public com.liferay.portlet.shopping.model.ShoppingItem fetchBySmallImageId(
108 long smallImageId) throws com.liferay.portal.SystemException;
109
110 public com.liferay.portlet.shopping.model.ShoppingItem fetchBySmallImageId(
111 long smallImageId, boolean retrieveFromCache)
112 throws com.liferay.portal.SystemException;
113
114 public com.liferay.portlet.shopping.model.ShoppingItem findByMediumImageId(
115 long mediumImageId)
116 throws com.liferay.portal.SystemException,
117 com.liferay.portlet.shopping.NoSuchItemException;
118
119 public com.liferay.portlet.shopping.model.ShoppingItem fetchByMediumImageId(
120 long mediumImageId) throws com.liferay.portal.SystemException;
121
122 public com.liferay.portlet.shopping.model.ShoppingItem fetchByMediumImageId(
123 long mediumImageId, boolean retrieveFromCache)
124 throws com.liferay.portal.SystemException;
125
126 public com.liferay.portlet.shopping.model.ShoppingItem findByLargeImageId(
127 long largeImageId)
128 throws com.liferay.portal.SystemException,
129 com.liferay.portlet.shopping.NoSuchItemException;
130
131 public com.liferay.portlet.shopping.model.ShoppingItem fetchByLargeImageId(
132 long largeImageId) throws com.liferay.portal.SystemException;
133
134 public com.liferay.portlet.shopping.model.ShoppingItem fetchByLargeImageId(
135 long largeImageId, boolean retrieveFromCache)
136 throws com.liferay.portal.SystemException;
137
138 public com.liferay.portlet.shopping.model.ShoppingItem findByC_S(
139 long companyId, java.lang.String sku)
140 throws com.liferay.portal.SystemException,
141 com.liferay.portlet.shopping.NoSuchItemException;
142
143 public com.liferay.portlet.shopping.model.ShoppingItem fetchByC_S(
144 long companyId, java.lang.String sku)
145 throws com.liferay.portal.SystemException;
146
147 public com.liferay.portlet.shopping.model.ShoppingItem fetchByC_S(
148 long companyId, java.lang.String sku, boolean retrieveFromCache)
149 throws com.liferay.portal.SystemException;
150
151 public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> findAll()
152 throws com.liferay.portal.SystemException;
153
154 public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> findAll(
155 int start, int end) throws com.liferay.portal.SystemException;
156
157 public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> findAll(
158 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
159 throws com.liferay.portal.SystemException;
160
161 public void removeByCategoryId(long categoryId)
162 throws com.liferay.portal.SystemException;
163
164 public void removeBySmallImageId(long smallImageId)
165 throws com.liferay.portal.SystemException,
166 com.liferay.portlet.shopping.NoSuchItemException;
167
168 public void removeByMediumImageId(long mediumImageId)
169 throws com.liferay.portal.SystemException,
170 com.liferay.portlet.shopping.NoSuchItemException;
171
172 public void removeByLargeImageId(long largeImageId)
173 throws com.liferay.portal.SystemException,
174 com.liferay.portlet.shopping.NoSuchItemException;
175
176 public void removeByC_S(long companyId, java.lang.String sku)
177 throws com.liferay.portal.SystemException,
178 com.liferay.portlet.shopping.NoSuchItemException;
179
180 public void removeAll() throws com.liferay.portal.SystemException;
181
182 public int countByCategoryId(long categoryId)
183 throws com.liferay.portal.SystemException;
184
185 public int countBySmallImageId(long smallImageId)
186 throws com.liferay.portal.SystemException;
187
188 public int countByMediumImageId(long mediumImageId)
189 throws com.liferay.portal.SystemException;
190
191 public int countByLargeImageId(long largeImageId)
192 throws com.liferay.portal.SystemException;
193
194 public int countByC_S(long companyId, java.lang.String sku)
195 throws com.liferay.portal.SystemException;
196
197 public int countAll() throws com.liferay.portal.SystemException;
198
199 public java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> getShoppingItemPrices(
200 long pk) throws com.liferay.portal.SystemException;
201
202 public java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> getShoppingItemPrices(
203 long pk, int start, int end) throws com.liferay.portal.SystemException;
204
205 public java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> getShoppingItemPrices(
206 long pk, int start, int end,
207 com.liferay.portal.kernel.util.OrderByComparator obc)
208 throws com.liferay.portal.SystemException;
209
210 public int getShoppingItemPricesSize(long pk)
211 throws com.liferay.portal.SystemException;
212
213 public boolean containsShoppingItemPrice(long pk, long shoppingItemPricePK)
214 throws com.liferay.portal.SystemException;
215
216 public boolean containsShoppingItemPrices(long pk)
217 throws com.liferay.portal.SystemException;
218 }