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