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