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