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