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