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