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