1
19
20 package com.liferay.portlet.shopping.service.persistence;
21
22
28 public class ShoppingCategoryUtil {
29 public static void cacheResult(
30 com.liferay.portlet.shopping.model.ShoppingCategory shoppingCategory) {
31 getPersistence().cacheResult(shoppingCategory);
32 }
33
34 public static void cacheResult(
35 java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> shoppingCategories) {
36 getPersistence().cacheResult(shoppingCategories);
37 }
38
39 public static void clearCache() {
40 getPersistence().clearCache();
41 }
42
43 public static com.liferay.portlet.shopping.model.ShoppingCategory create(
44 long categoryId) {
45 return getPersistence().create(categoryId);
46 }
47
48 public static com.liferay.portlet.shopping.model.ShoppingCategory remove(
49 long categoryId)
50 throws com.liferay.portal.SystemException,
51 com.liferay.portlet.shopping.NoSuchCategoryException {
52 return getPersistence().remove(categoryId);
53 }
54
55 public static com.liferay.portlet.shopping.model.ShoppingCategory remove(
56 com.liferay.portlet.shopping.model.ShoppingCategory shoppingCategory)
57 throws com.liferay.portal.SystemException {
58 return getPersistence().remove(shoppingCategory);
59 }
60
61
64 public static com.liferay.portlet.shopping.model.ShoppingCategory update(
65 com.liferay.portlet.shopping.model.ShoppingCategory shoppingCategory)
66 throws com.liferay.portal.SystemException {
67 return getPersistence().update(shoppingCategory);
68 }
69
70
83 public static com.liferay.portlet.shopping.model.ShoppingCategory update(
84 com.liferay.portlet.shopping.model.ShoppingCategory shoppingCategory,
85 boolean merge) throws com.liferay.portal.SystemException {
86 return getPersistence().update(shoppingCategory, merge);
87 }
88
89 public static com.liferay.portlet.shopping.model.ShoppingCategory updateImpl(
90 com.liferay.portlet.shopping.model.ShoppingCategory shoppingCategory,
91 boolean merge) throws com.liferay.portal.SystemException {
92 return getPersistence().updateImpl(shoppingCategory, merge);
93 }
94
95 public static com.liferay.portlet.shopping.model.ShoppingCategory findByPrimaryKey(
96 long categoryId)
97 throws com.liferay.portal.SystemException,
98 com.liferay.portlet.shopping.NoSuchCategoryException {
99 return getPersistence().findByPrimaryKey(categoryId);
100 }
101
102 public static com.liferay.portlet.shopping.model.ShoppingCategory fetchByPrimaryKey(
103 long categoryId) throws com.liferay.portal.SystemException {
104 return getPersistence().fetchByPrimaryKey(categoryId);
105 }
106
107 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> findByGroupId(
108 long groupId) throws com.liferay.portal.SystemException {
109 return getPersistence().findByGroupId(groupId);
110 }
111
112 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> findByGroupId(
113 long groupId, int start, int end)
114 throws com.liferay.portal.SystemException {
115 return getPersistence().findByGroupId(groupId, start, end);
116 }
117
118 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> findByGroupId(
119 long groupId, int start, int end,
120 com.liferay.portal.kernel.util.OrderByComparator obc)
121 throws com.liferay.portal.SystemException {
122 return getPersistence().findByGroupId(groupId, start, end, obc);
123 }
124
125 public static com.liferay.portlet.shopping.model.ShoppingCategory findByGroupId_First(
126 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
127 throws com.liferay.portal.SystemException,
128 com.liferay.portlet.shopping.NoSuchCategoryException {
129 return getPersistence().findByGroupId_First(groupId, obc);
130 }
131
132 public static com.liferay.portlet.shopping.model.ShoppingCategory findByGroupId_Last(
133 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
134 throws com.liferay.portal.SystemException,
135 com.liferay.portlet.shopping.NoSuchCategoryException {
136 return getPersistence().findByGroupId_Last(groupId, obc);
137 }
138
139 public static com.liferay.portlet.shopping.model.ShoppingCategory[] findByGroupId_PrevAndNext(
140 long categoryId, long groupId,
141 com.liferay.portal.kernel.util.OrderByComparator obc)
142 throws com.liferay.portal.SystemException,
143 com.liferay.portlet.shopping.NoSuchCategoryException {
144 return getPersistence()
145 .findByGroupId_PrevAndNext(categoryId, groupId, obc);
146 }
147
148 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> findByG_P(
149 long groupId, long parentCategoryId)
150 throws com.liferay.portal.SystemException {
151 return getPersistence().findByG_P(groupId, parentCategoryId);
152 }
153
154 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> findByG_P(
155 long groupId, long parentCategoryId, int start, int end)
156 throws com.liferay.portal.SystemException {
157 return getPersistence().findByG_P(groupId, parentCategoryId, start, end);
158 }
159
160 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> findByG_P(
161 long groupId, long parentCategoryId, int start, int end,
162 com.liferay.portal.kernel.util.OrderByComparator obc)
163 throws com.liferay.portal.SystemException {
164 return getPersistence()
165 .findByG_P(groupId, parentCategoryId, start, end, obc);
166 }
167
168 public static com.liferay.portlet.shopping.model.ShoppingCategory findByG_P_First(
169 long groupId, long parentCategoryId,
170 com.liferay.portal.kernel.util.OrderByComparator obc)
171 throws com.liferay.portal.SystemException,
172 com.liferay.portlet.shopping.NoSuchCategoryException {
173 return getPersistence().findByG_P_First(groupId, parentCategoryId, obc);
174 }
175
176 public static com.liferay.portlet.shopping.model.ShoppingCategory findByG_P_Last(
177 long groupId, long parentCategoryId,
178 com.liferay.portal.kernel.util.OrderByComparator obc)
179 throws com.liferay.portal.SystemException,
180 com.liferay.portlet.shopping.NoSuchCategoryException {
181 return getPersistence().findByG_P_Last(groupId, parentCategoryId, obc);
182 }
183
184 public static com.liferay.portlet.shopping.model.ShoppingCategory[] findByG_P_PrevAndNext(
185 long categoryId, long groupId, long parentCategoryId,
186 com.liferay.portal.kernel.util.OrderByComparator obc)
187 throws com.liferay.portal.SystemException,
188 com.liferay.portlet.shopping.NoSuchCategoryException {
189 return getPersistence()
190 .findByG_P_PrevAndNext(categoryId, groupId,
191 parentCategoryId, obc);
192 }
193
194 public static java.util.List<Object> findWithDynamicQuery(
195 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
196 throws com.liferay.portal.SystemException {
197 return getPersistence().findWithDynamicQuery(dynamicQuery);
198 }
199
200 public static java.util.List<Object> findWithDynamicQuery(
201 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
202 int end) throws com.liferay.portal.SystemException {
203 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
204 }
205
206 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> findAll()
207 throws com.liferay.portal.SystemException {
208 return getPersistence().findAll();
209 }
210
211 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> findAll(
212 int start, int end) throws com.liferay.portal.SystemException {
213 return getPersistence().findAll(start, end);
214 }
215
216 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> findAll(
217 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
218 throws com.liferay.portal.SystemException {
219 return getPersistence().findAll(start, end, obc);
220 }
221
222 public static void removeByGroupId(long groupId)
223 throws com.liferay.portal.SystemException {
224 getPersistence().removeByGroupId(groupId);
225 }
226
227 public static void removeByG_P(long groupId, long parentCategoryId)
228 throws com.liferay.portal.SystemException {
229 getPersistence().removeByG_P(groupId, parentCategoryId);
230 }
231
232 public static void removeAll() throws com.liferay.portal.SystemException {
233 getPersistence().removeAll();
234 }
235
236 public static int countByGroupId(long groupId)
237 throws com.liferay.portal.SystemException {
238 return getPersistence().countByGroupId(groupId);
239 }
240
241 public static int countByG_P(long groupId, long parentCategoryId)
242 throws com.liferay.portal.SystemException {
243 return getPersistence().countByG_P(groupId, parentCategoryId);
244 }
245
246 public static int countAll() throws com.liferay.portal.SystemException {
247 return getPersistence().countAll();
248 }
249
250 public static ShoppingCategoryPersistence getPersistence() {
251 return _persistence;
252 }
253
254 public void setPersistence(ShoppingCategoryPersistence persistence) {
255 _persistence = persistence;
256 }
257
258 private static ShoppingCategoryPersistence _persistence;
259 }