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