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 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 public static com.liferay.portlet.shopping.model.ShoppingCategory update(
57 com.liferay.portlet.shopping.model.ShoppingCategory shoppingCategory,
58 boolean merge) throws com.liferay.portal.SystemException {
59 return getPersistence().update(shoppingCategory, merge);
60 }
61
62 public static com.liferay.portlet.shopping.model.ShoppingCategory updateImpl(
63 com.liferay.portlet.shopping.model.ShoppingCategory shoppingCategory,
64 boolean merge) throws com.liferay.portal.SystemException {
65 return getPersistence().updateImpl(shoppingCategory, merge);
66 }
67
68 public static com.liferay.portlet.shopping.model.ShoppingCategory findByPrimaryKey(
69 long categoryId)
70 throws com.liferay.portal.SystemException,
71 com.liferay.portlet.shopping.NoSuchCategoryException {
72 return getPersistence().findByPrimaryKey(categoryId);
73 }
74
75 public static com.liferay.portlet.shopping.model.ShoppingCategory fetchByPrimaryKey(
76 long categoryId) throws com.liferay.portal.SystemException {
77 return getPersistence().fetchByPrimaryKey(categoryId);
78 }
79
80 public static java.util.List findByGroupId(long groupId)
81 throws com.liferay.portal.SystemException {
82 return getPersistence().findByGroupId(groupId);
83 }
84
85 public static java.util.List findByGroupId(long groupId, int begin, int end)
86 throws com.liferay.portal.SystemException {
87 return getPersistence().findByGroupId(groupId, begin, end);
88 }
89
90 public static java.util.List findByGroupId(long groupId, int begin,
91 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
92 throws com.liferay.portal.SystemException {
93 return getPersistence().findByGroupId(groupId, begin, end, obc);
94 }
95
96 public static com.liferay.portlet.shopping.model.ShoppingCategory findByGroupId_First(
97 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
98 throws com.liferay.portal.SystemException,
99 com.liferay.portlet.shopping.NoSuchCategoryException {
100 return getPersistence().findByGroupId_First(groupId, obc);
101 }
102
103 public static com.liferay.portlet.shopping.model.ShoppingCategory findByGroupId_Last(
104 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
105 throws com.liferay.portal.SystemException,
106 com.liferay.portlet.shopping.NoSuchCategoryException {
107 return getPersistence().findByGroupId_Last(groupId, obc);
108 }
109
110 public static com.liferay.portlet.shopping.model.ShoppingCategory[] findByGroupId_PrevAndNext(
111 long categoryId, long groupId,
112 com.liferay.portal.kernel.util.OrderByComparator obc)
113 throws com.liferay.portal.SystemException,
114 com.liferay.portlet.shopping.NoSuchCategoryException {
115 return getPersistence().findByGroupId_PrevAndNext(categoryId, groupId,
116 obc);
117 }
118
119 public static java.util.List findByG_P(long groupId, long parentCategoryId)
120 throws com.liferay.portal.SystemException {
121 return getPersistence().findByG_P(groupId, parentCategoryId);
122 }
123
124 public static java.util.List findByG_P(long groupId, long parentCategoryId,
125 int begin, int end) throws com.liferay.portal.SystemException {
126 return getPersistence().findByG_P(groupId, parentCategoryId, begin, end);
127 }
128
129 public static java.util.List findByG_P(long groupId, long parentCategoryId,
130 int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
131 throws com.liferay.portal.SystemException {
132 return getPersistence().findByG_P(groupId, parentCategoryId, begin,
133 end, obc);
134 }
135
136 public static com.liferay.portlet.shopping.model.ShoppingCategory findByG_P_First(
137 long groupId, long parentCategoryId,
138 com.liferay.portal.kernel.util.OrderByComparator obc)
139 throws com.liferay.portal.SystemException,
140 com.liferay.portlet.shopping.NoSuchCategoryException {
141 return getPersistence().findByG_P_First(groupId, parentCategoryId, obc);
142 }
143
144 public static com.liferay.portlet.shopping.model.ShoppingCategory findByG_P_Last(
145 long groupId, long parentCategoryId,
146 com.liferay.portal.kernel.util.OrderByComparator obc)
147 throws com.liferay.portal.SystemException,
148 com.liferay.portlet.shopping.NoSuchCategoryException {
149 return getPersistence().findByG_P_Last(groupId, parentCategoryId, obc);
150 }
151
152 public static com.liferay.portlet.shopping.model.ShoppingCategory[] findByG_P_PrevAndNext(
153 long categoryId, long groupId, long parentCategoryId,
154 com.liferay.portal.kernel.util.OrderByComparator obc)
155 throws com.liferay.portal.SystemException,
156 com.liferay.portlet.shopping.NoSuchCategoryException {
157 return getPersistence().findByG_P_PrevAndNext(categoryId, groupId,
158 parentCategoryId, obc);
159 }
160
161 public static java.util.List findWithDynamicQuery(
162 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
163 throws com.liferay.portal.SystemException {
164 return getPersistence().findWithDynamicQuery(queryInitializer);
165 }
166
167 public static java.util.List findWithDynamicQuery(
168 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
169 int begin, int end) throws com.liferay.portal.SystemException {
170 return getPersistence().findWithDynamicQuery(queryInitializer, begin,
171 end);
172 }
173
174 public static java.util.List findAll()
175 throws com.liferay.portal.SystemException {
176 return getPersistence().findAll();
177 }
178
179 public static java.util.List findAll(int begin, int end)
180 throws com.liferay.portal.SystemException {
181 return getPersistence().findAll(begin, end);
182 }
183
184 public static java.util.List findAll(int begin, int end,
185 com.liferay.portal.kernel.util.OrderByComparator obc)
186 throws com.liferay.portal.SystemException {
187 return getPersistence().findAll(begin, end, obc);
188 }
189
190 public static void removeByGroupId(long groupId)
191 throws com.liferay.portal.SystemException {
192 getPersistence().removeByGroupId(groupId);
193 }
194
195 public static void removeByG_P(long groupId, long parentCategoryId)
196 throws com.liferay.portal.SystemException {
197 getPersistence().removeByG_P(groupId, parentCategoryId);
198 }
199
200 public static void removeAll() throws com.liferay.portal.SystemException {
201 getPersistence().removeAll();
202 }
203
204 public static int countByGroupId(long groupId)
205 throws com.liferay.portal.SystemException {
206 return getPersistence().countByGroupId(groupId);
207 }
208
209 public static int countByG_P(long groupId, long parentCategoryId)
210 throws com.liferay.portal.SystemException {
211 return getPersistence().countByG_P(groupId, parentCategoryId);
212 }
213
214 public static int countAll() throws com.liferay.portal.SystemException {
215 return getPersistence().countAll();
216 }
217
218 public static ShoppingCategoryPersistence getPersistence() {
219 return _getUtil()._persistence;
220 }
221
222 public void setPersistence(ShoppingCategoryPersistence persistence) {
223 _persistence = persistence;
224 }
225
226 private static ShoppingCategoryUtil _getUtil() {
227 if (_util == null) {
228 _util = (ShoppingCategoryUtil)com.liferay.portal.kernel.bean.BeanLocatorUtil.locate(_UTIL);
229 }
230
231 return _util;
232 }
233
234 private static final String _UTIL = ShoppingCategoryUtil.class.getName();
235 private static ShoppingCategoryUtil _util;
236 private ShoppingCategoryPersistence _persistence;
237 }