1
22
23 package com.liferay.portal.service.persistence;
24
25
31 public class UserGroupUtil {
32 public static com.liferay.portal.model.UserGroup create(long userGroupId) {
33 return getPersistence().create(userGroupId);
34 }
35
36 public static com.liferay.portal.model.UserGroup remove(long userGroupId)
37 throws com.liferay.portal.SystemException,
38 com.liferay.portal.NoSuchUserGroupException {
39 return getPersistence().remove(userGroupId);
40 }
41
42 public static com.liferay.portal.model.UserGroup remove(
43 com.liferay.portal.model.UserGroup userGroup)
44 throws com.liferay.portal.SystemException {
45 return getPersistence().remove(userGroup);
46 }
47
48
51 public static com.liferay.portal.model.UserGroup update(
52 com.liferay.portal.model.UserGroup userGroup)
53 throws com.liferay.portal.SystemException {
54 return getPersistence().update(userGroup);
55 }
56
57
70 public static com.liferay.portal.model.UserGroup update(
71 com.liferay.portal.model.UserGroup userGroup, boolean merge)
72 throws com.liferay.portal.SystemException {
73 return getPersistence().update(userGroup, merge);
74 }
75
76 public static com.liferay.portal.model.UserGroup updateImpl(
77 com.liferay.portal.model.UserGroup userGroup, boolean merge)
78 throws com.liferay.portal.SystemException {
79 return getPersistence().updateImpl(userGroup, merge);
80 }
81
82 public static com.liferay.portal.model.UserGroup findByPrimaryKey(
83 long userGroupId)
84 throws com.liferay.portal.SystemException,
85 com.liferay.portal.NoSuchUserGroupException {
86 return getPersistence().findByPrimaryKey(userGroupId);
87 }
88
89 public static com.liferay.portal.model.UserGroup fetchByPrimaryKey(
90 long userGroupId) throws com.liferay.portal.SystemException {
91 return getPersistence().fetchByPrimaryKey(userGroupId);
92 }
93
94 public static java.util.List<com.liferay.portal.model.UserGroup> findByCompanyId(
95 long companyId) throws com.liferay.portal.SystemException {
96 return getPersistence().findByCompanyId(companyId);
97 }
98
99 public static java.util.List<com.liferay.portal.model.UserGroup> findByCompanyId(
100 long companyId, int begin, int end)
101 throws com.liferay.portal.SystemException {
102 return getPersistence().findByCompanyId(companyId, begin, end);
103 }
104
105 public static java.util.List<com.liferay.portal.model.UserGroup> findByCompanyId(
106 long companyId, int begin, int end,
107 com.liferay.portal.kernel.util.OrderByComparator obc)
108 throws com.liferay.portal.SystemException {
109 return getPersistence().findByCompanyId(companyId, begin, end, obc);
110 }
111
112 public static com.liferay.portal.model.UserGroup findByCompanyId_First(
113 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
114 throws com.liferay.portal.SystemException,
115 com.liferay.portal.NoSuchUserGroupException {
116 return getPersistence().findByCompanyId_First(companyId, obc);
117 }
118
119 public static com.liferay.portal.model.UserGroup findByCompanyId_Last(
120 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
121 throws com.liferay.portal.SystemException,
122 com.liferay.portal.NoSuchUserGroupException {
123 return getPersistence().findByCompanyId_Last(companyId, obc);
124 }
125
126 public static com.liferay.portal.model.UserGroup[] findByCompanyId_PrevAndNext(
127 long userGroupId, long companyId,
128 com.liferay.portal.kernel.util.OrderByComparator obc)
129 throws com.liferay.portal.SystemException,
130 com.liferay.portal.NoSuchUserGroupException {
131 return getPersistence()
132 .findByCompanyId_PrevAndNext(userGroupId, companyId, obc);
133 }
134
135 public static java.util.List<com.liferay.portal.model.UserGroup> findByC_P(
136 long companyId, long parentUserGroupId)
137 throws com.liferay.portal.SystemException {
138 return getPersistence().findByC_P(companyId, parentUserGroupId);
139 }
140
141 public static java.util.List<com.liferay.portal.model.UserGroup> findByC_P(
142 long companyId, long parentUserGroupId, int begin, int end)
143 throws com.liferay.portal.SystemException {
144 return getPersistence()
145 .findByC_P(companyId, parentUserGroupId, begin, end);
146 }
147
148 public static java.util.List<com.liferay.portal.model.UserGroup> findByC_P(
149 long companyId, long parentUserGroupId, int begin, int end,
150 com.liferay.portal.kernel.util.OrderByComparator obc)
151 throws com.liferay.portal.SystemException {
152 return getPersistence()
153 .findByC_P(companyId, parentUserGroupId, begin, end, obc);
154 }
155
156 public static com.liferay.portal.model.UserGroup findByC_P_First(
157 long companyId, long parentUserGroupId,
158 com.liferay.portal.kernel.util.OrderByComparator obc)
159 throws com.liferay.portal.SystemException,
160 com.liferay.portal.NoSuchUserGroupException {
161 return getPersistence()
162 .findByC_P_First(companyId, parentUserGroupId, obc);
163 }
164
165 public static com.liferay.portal.model.UserGroup findByC_P_Last(
166 long companyId, long parentUserGroupId,
167 com.liferay.portal.kernel.util.OrderByComparator obc)
168 throws com.liferay.portal.SystemException,
169 com.liferay.portal.NoSuchUserGroupException {
170 return getPersistence().findByC_P_Last(companyId, parentUserGroupId, obc);
171 }
172
173 public static com.liferay.portal.model.UserGroup[] findByC_P_PrevAndNext(
174 long userGroupId, long companyId, long parentUserGroupId,
175 com.liferay.portal.kernel.util.OrderByComparator obc)
176 throws com.liferay.portal.SystemException,
177 com.liferay.portal.NoSuchUserGroupException {
178 return getPersistence()
179 .findByC_P_PrevAndNext(userGroupId, companyId,
180 parentUserGroupId, obc);
181 }
182
183 public static com.liferay.portal.model.UserGroup findByC_N(long companyId,
184 java.lang.String name)
185 throws com.liferay.portal.SystemException,
186 com.liferay.portal.NoSuchUserGroupException {
187 return getPersistence().findByC_N(companyId, name);
188 }
189
190 public static com.liferay.portal.model.UserGroup fetchByC_N(
191 long companyId, java.lang.String name)
192 throws com.liferay.portal.SystemException {
193 return getPersistence().fetchByC_N(companyId, name);
194 }
195
196 public static java.util.List<com.liferay.portal.model.UserGroup> findWithDynamicQuery(
197 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
198 throws com.liferay.portal.SystemException {
199 return getPersistence().findWithDynamicQuery(queryInitializer);
200 }
201
202 public static java.util.List<com.liferay.portal.model.UserGroup> findWithDynamicQuery(
203 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
204 int begin, int end) throws com.liferay.portal.SystemException {
205 return getPersistence()
206 .findWithDynamicQuery(queryInitializer, begin, end);
207 }
208
209 public static java.util.List<com.liferay.portal.model.UserGroup> findAll()
210 throws com.liferay.portal.SystemException {
211 return getPersistence().findAll();
212 }
213
214 public static java.util.List<com.liferay.portal.model.UserGroup> findAll(
215 int begin, int end) throws com.liferay.portal.SystemException {
216 return getPersistence().findAll(begin, end);
217 }
218
219 public static java.util.List<com.liferay.portal.model.UserGroup> findAll(
220 int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
221 throws com.liferay.portal.SystemException {
222 return getPersistence().findAll(begin, end, obc);
223 }
224
225 public static void removeByCompanyId(long companyId)
226 throws com.liferay.portal.SystemException {
227 getPersistence().removeByCompanyId(companyId);
228 }
229
230 public static void removeByC_P(long companyId, long parentUserGroupId)
231 throws com.liferay.portal.SystemException {
232 getPersistence().removeByC_P(companyId, parentUserGroupId);
233 }
234
235 public static void removeByC_N(long companyId, java.lang.String name)
236 throws com.liferay.portal.SystemException,
237 com.liferay.portal.NoSuchUserGroupException {
238 getPersistence().removeByC_N(companyId, name);
239 }
240
241 public static void removeAll() throws com.liferay.portal.SystemException {
242 getPersistence().removeAll();
243 }
244
245 public static int countByCompanyId(long companyId)
246 throws com.liferay.portal.SystemException {
247 return getPersistence().countByCompanyId(companyId);
248 }
249
250 public static int countByC_P(long companyId, long parentUserGroupId)
251 throws com.liferay.portal.SystemException {
252 return getPersistence().countByC_P(companyId, parentUserGroupId);
253 }
254
255 public static int countByC_N(long companyId, java.lang.String name)
256 throws com.liferay.portal.SystemException {
257 return getPersistence().countByC_N(companyId, name);
258 }
259
260 public static int countAll() throws com.liferay.portal.SystemException {
261 return getPersistence().countAll();
262 }
263
264 public static java.util.List<com.liferay.portal.model.User> getUsers(
265 long pk)
266 throws com.liferay.portal.SystemException,
267 com.liferay.portal.NoSuchUserGroupException {
268 return getPersistence().getUsers(pk);
269 }
270
271 public static java.util.List<com.liferay.portal.model.User> getUsers(
272 long pk, int begin, int end)
273 throws com.liferay.portal.SystemException,
274 com.liferay.portal.NoSuchUserGroupException {
275 return getPersistence().getUsers(pk, begin, end);
276 }
277
278 public static java.util.List<com.liferay.portal.model.User> getUsers(
279 long pk, int begin, int end,
280 com.liferay.portal.kernel.util.OrderByComparator obc)
281 throws com.liferay.portal.SystemException,
282 com.liferay.portal.NoSuchUserGroupException {
283 return getPersistence().getUsers(pk, begin, end, obc);
284 }
285
286 public static int getUsersSize(long pk)
287 throws com.liferay.portal.SystemException {
288 return getPersistence().getUsersSize(pk);
289 }
290
291 public static boolean containsUser(long pk, long userPK)
292 throws com.liferay.portal.SystemException {
293 return getPersistence().containsUser(pk, userPK);
294 }
295
296 public static boolean containsUsers(long pk)
297 throws com.liferay.portal.SystemException {
298 return getPersistence().containsUsers(pk);
299 }
300
301 public static void addUser(long pk, long userPK)
302 throws com.liferay.portal.SystemException,
303 com.liferay.portal.NoSuchUserGroupException,
304 com.liferay.portal.NoSuchUserException {
305 getPersistence().addUser(pk, userPK);
306 }
307
308 public static void addUser(long pk, com.liferay.portal.model.User user)
309 throws com.liferay.portal.SystemException,
310 com.liferay.portal.NoSuchUserGroupException,
311 com.liferay.portal.NoSuchUserException {
312 getPersistence().addUser(pk, user);
313 }
314
315 public static void addUsers(long pk, long[] userPKs)
316 throws com.liferay.portal.SystemException,
317 com.liferay.portal.NoSuchUserGroupException,
318 com.liferay.portal.NoSuchUserException {
319 getPersistence().addUsers(pk, userPKs);
320 }
321
322 public static void addUsers(long pk,
323 java.util.List<com.liferay.portal.model.User> users)
324 throws com.liferay.portal.SystemException,
325 com.liferay.portal.NoSuchUserGroupException,
326 com.liferay.portal.NoSuchUserException {
327 getPersistence().addUsers(pk, users);
328 }
329
330 public static void clearUsers(long pk)
331 throws com.liferay.portal.SystemException,
332 com.liferay.portal.NoSuchUserGroupException {
333 getPersistence().clearUsers(pk);
334 }
335
336 public static void removeUser(long pk, long userPK)
337 throws com.liferay.portal.SystemException,
338 com.liferay.portal.NoSuchUserGroupException,
339 com.liferay.portal.NoSuchUserException {
340 getPersistence().removeUser(pk, userPK);
341 }
342
343 public static void removeUser(long pk, com.liferay.portal.model.User user)
344 throws com.liferay.portal.SystemException,
345 com.liferay.portal.NoSuchUserGroupException,
346 com.liferay.portal.NoSuchUserException {
347 getPersistence().removeUser(pk, user);
348 }
349
350 public static void removeUsers(long pk, long[] userPKs)
351 throws com.liferay.portal.SystemException,
352 com.liferay.portal.NoSuchUserGroupException,
353 com.liferay.portal.NoSuchUserException {
354 getPersistence().removeUsers(pk, userPKs);
355 }
356
357 public static void removeUsers(long pk,
358 java.util.List<com.liferay.portal.model.User> users)
359 throws com.liferay.portal.SystemException,
360 com.liferay.portal.NoSuchUserGroupException,
361 com.liferay.portal.NoSuchUserException {
362 getPersistence().removeUsers(pk, users);
363 }
364
365 public static void setUsers(long pk, long[] userPKs)
366 throws com.liferay.portal.SystemException,
367 com.liferay.portal.NoSuchUserGroupException,
368 com.liferay.portal.NoSuchUserException {
369 getPersistence().setUsers(pk, userPKs);
370 }
371
372 public static void setUsers(long pk,
373 java.util.List<com.liferay.portal.model.User> users)
374 throws com.liferay.portal.SystemException,
375 com.liferay.portal.NoSuchUserGroupException,
376 com.liferay.portal.NoSuchUserException {
377 getPersistence().setUsers(pk, users);
378 }
379
380 public static UserGroupPersistence getPersistence() {
381 return _getUtil()._persistence;
382 }
383
384 public void setPersistence(UserGroupPersistence persistence) {
385 _persistence = persistence;
386 }
387
388 private static UserGroupUtil _getUtil() {
389 if (_util == null) {
390 _util = (UserGroupUtil)com.liferay.portal.kernel.bean.BeanLocatorUtil.locate(_UTIL);
391 }
392
393 return _util;
394 }
395
396 private static final String _UTIL = UserGroupUtil.class.getName();
397 private static UserGroupUtil _util;
398 private UserGroupPersistence _persistence;
399 }