1
22
23 package com.liferay.portal.service.persistence;
24
25
31 public class OrganizationUtil {
32 public static com.liferay.portal.model.Organization create(
33 long organizationId) {
34 return getPersistence().create(organizationId);
35 }
36
37 public static com.liferay.portal.model.Organization remove(
38 long organizationId)
39 throws com.liferay.portal.SystemException,
40 com.liferay.portal.NoSuchOrganizationException {
41 return getPersistence().remove(organizationId);
42 }
43
44 public static com.liferay.portal.model.Organization remove(
45 com.liferay.portal.model.Organization organization)
46 throws com.liferay.portal.SystemException {
47 return getPersistence().remove(organization);
48 }
49
50 public static com.liferay.portal.model.Organization update(
51 com.liferay.portal.model.Organization organization)
52 throws com.liferay.portal.SystemException {
53 return getPersistence().update(organization);
54 }
55
56 public static com.liferay.portal.model.Organization update(
57 com.liferay.portal.model.Organization organization, boolean merge)
58 throws com.liferay.portal.SystemException {
59 return getPersistence().update(organization, merge);
60 }
61
62 public static com.liferay.portal.model.Organization updateImpl(
63 com.liferay.portal.model.Organization organization, boolean merge)
64 throws com.liferay.portal.SystemException {
65 return getPersistence().updateImpl(organization, merge);
66 }
67
68 public static com.liferay.portal.model.Organization findByPrimaryKey(
69 long organizationId)
70 throws com.liferay.portal.SystemException,
71 com.liferay.portal.NoSuchOrganizationException {
72 return getPersistence().findByPrimaryKey(organizationId);
73 }
74
75 public static com.liferay.portal.model.Organization fetchByPrimaryKey(
76 long organizationId) throws com.liferay.portal.SystemException {
77 return getPersistence().fetchByPrimaryKey(organizationId);
78 }
79
80 public static java.util.List findByCompanyId(long companyId)
81 throws com.liferay.portal.SystemException {
82 return getPersistence().findByCompanyId(companyId);
83 }
84
85 public static java.util.List findByCompanyId(long companyId, int begin,
86 int end) throws com.liferay.portal.SystemException {
87 return getPersistence().findByCompanyId(companyId, begin, end);
88 }
89
90 public static java.util.List findByCompanyId(long companyId, int begin,
91 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
92 throws com.liferay.portal.SystemException {
93 return getPersistence().findByCompanyId(companyId, begin, end, obc);
94 }
95
96 public static com.liferay.portal.model.Organization findByCompanyId_First(
97 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
98 throws com.liferay.portal.SystemException,
99 com.liferay.portal.NoSuchOrganizationException {
100 return getPersistence().findByCompanyId_First(companyId, obc);
101 }
102
103 public static com.liferay.portal.model.Organization findByCompanyId_Last(
104 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
105 throws com.liferay.portal.SystemException,
106 com.liferay.portal.NoSuchOrganizationException {
107 return getPersistence().findByCompanyId_Last(companyId, obc);
108 }
109
110 public static com.liferay.portal.model.Organization[] findByCompanyId_PrevAndNext(
111 long organizationId, long companyId,
112 com.liferay.portal.kernel.util.OrderByComparator obc)
113 throws com.liferay.portal.SystemException,
114 com.liferay.portal.NoSuchOrganizationException {
115 return getPersistence().findByCompanyId_PrevAndNext(organizationId,
116 companyId, obc);
117 }
118
119 public static java.util.List findByLocations(long companyId)
120 throws com.liferay.portal.SystemException {
121 return getPersistence().findByLocations(companyId);
122 }
123
124 public static java.util.List findByLocations(long companyId, int begin,
125 int end) throws com.liferay.portal.SystemException {
126 return getPersistence().findByLocations(companyId, begin, end);
127 }
128
129 public static java.util.List findByLocations(long companyId, int begin,
130 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
131 throws com.liferay.portal.SystemException {
132 return getPersistence().findByLocations(companyId, begin, end, obc);
133 }
134
135 public static com.liferay.portal.model.Organization findByLocations_First(
136 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
137 throws com.liferay.portal.SystemException,
138 com.liferay.portal.NoSuchOrganizationException {
139 return getPersistence().findByLocations_First(companyId, obc);
140 }
141
142 public static com.liferay.portal.model.Organization findByLocations_Last(
143 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
144 throws com.liferay.portal.SystemException,
145 com.liferay.portal.NoSuchOrganizationException {
146 return getPersistence().findByLocations_Last(companyId, obc);
147 }
148
149 public static com.liferay.portal.model.Organization[] findByLocations_PrevAndNext(
150 long organizationId, long companyId,
151 com.liferay.portal.kernel.util.OrderByComparator obc)
152 throws com.liferay.portal.SystemException,
153 com.liferay.portal.NoSuchOrganizationException {
154 return getPersistence().findByLocations_PrevAndNext(organizationId,
155 companyId, obc);
156 }
157
158 public static java.util.List findByC_P(long companyId,
159 long parentOrganizationId) throws com.liferay.portal.SystemException {
160 return getPersistence().findByC_P(companyId, parentOrganizationId);
161 }
162
163 public static java.util.List findByC_P(long companyId,
164 long parentOrganizationId, int begin, int end)
165 throws com.liferay.portal.SystemException {
166 return getPersistence().findByC_P(companyId, parentOrganizationId,
167 begin, end);
168 }
169
170 public static java.util.List findByC_P(long companyId,
171 long parentOrganizationId, int begin, int end,
172 com.liferay.portal.kernel.util.OrderByComparator obc)
173 throws com.liferay.portal.SystemException {
174 return getPersistence().findByC_P(companyId, parentOrganizationId,
175 begin, end, obc);
176 }
177
178 public static com.liferay.portal.model.Organization findByC_P_First(
179 long companyId, long parentOrganizationId,
180 com.liferay.portal.kernel.util.OrderByComparator obc)
181 throws com.liferay.portal.SystemException,
182 com.liferay.portal.NoSuchOrganizationException {
183 return getPersistence().findByC_P_First(companyId,
184 parentOrganizationId, obc);
185 }
186
187 public static com.liferay.portal.model.Organization findByC_P_Last(
188 long companyId, long parentOrganizationId,
189 com.liferay.portal.kernel.util.OrderByComparator obc)
190 throws com.liferay.portal.SystemException,
191 com.liferay.portal.NoSuchOrganizationException {
192 return getPersistence().findByC_P_Last(companyId, parentOrganizationId,
193 obc);
194 }
195
196 public static com.liferay.portal.model.Organization[] findByC_P_PrevAndNext(
197 long organizationId, long companyId, long parentOrganizationId,
198 com.liferay.portal.kernel.util.OrderByComparator obc)
199 throws com.liferay.portal.SystemException,
200 com.liferay.portal.NoSuchOrganizationException {
201 return getPersistence().findByC_P_PrevAndNext(organizationId,
202 companyId, parentOrganizationId, obc);
203 }
204
205 public static com.liferay.portal.model.Organization findByC_N(
206 long companyId, java.lang.String name)
207 throws com.liferay.portal.SystemException,
208 com.liferay.portal.NoSuchOrganizationException {
209 return getPersistence().findByC_N(companyId, name);
210 }
211
212 public static com.liferay.portal.model.Organization fetchByC_N(
213 long companyId, java.lang.String name)
214 throws com.liferay.portal.SystemException {
215 return getPersistence().fetchByC_N(companyId, name);
216 }
217
218 public static java.util.List findWithDynamicQuery(
219 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
220 throws com.liferay.portal.SystemException {
221 return getPersistence().findWithDynamicQuery(queryInitializer);
222 }
223
224 public static java.util.List findWithDynamicQuery(
225 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
226 int begin, int end) throws com.liferay.portal.SystemException {
227 return getPersistence().findWithDynamicQuery(queryInitializer, begin,
228 end);
229 }
230
231 public static java.util.List findAll()
232 throws com.liferay.portal.SystemException {
233 return getPersistence().findAll();
234 }
235
236 public static java.util.List findAll(int begin, int end)
237 throws com.liferay.portal.SystemException {
238 return getPersistence().findAll(begin, end);
239 }
240
241 public static java.util.List findAll(int begin, int end,
242 com.liferay.portal.kernel.util.OrderByComparator obc)
243 throws com.liferay.portal.SystemException {
244 return getPersistence().findAll(begin, 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 removeByLocations(long companyId)
253 throws com.liferay.portal.SystemException {
254 getPersistence().removeByLocations(companyId);
255 }
256
257 public static void removeByC_P(long companyId, long parentOrganizationId)
258 throws com.liferay.portal.SystemException {
259 getPersistence().removeByC_P(companyId, parentOrganizationId);
260 }
261
262 public static void removeByC_N(long companyId, java.lang.String name)
263 throws com.liferay.portal.SystemException,
264 com.liferay.portal.NoSuchOrganizationException {
265 getPersistence().removeByC_N(companyId, name);
266 }
267
268 public static void removeAll() throws com.liferay.portal.SystemException {
269 getPersistence().removeAll();
270 }
271
272 public static int countByCompanyId(long companyId)
273 throws com.liferay.portal.SystemException {
274 return getPersistence().countByCompanyId(companyId);
275 }
276
277 public static int countByLocations(long companyId)
278 throws com.liferay.portal.SystemException {
279 return getPersistence().countByLocations(companyId);
280 }
281
282 public static int countByC_P(long companyId, long parentOrganizationId)
283 throws com.liferay.portal.SystemException {
284 return getPersistence().countByC_P(companyId, parentOrganizationId);
285 }
286
287 public static int countByC_N(long companyId, java.lang.String name)
288 throws com.liferay.portal.SystemException {
289 return getPersistence().countByC_N(companyId, name);
290 }
291
292 public static int countAll() throws com.liferay.portal.SystemException {
293 return getPersistence().countAll();
294 }
295
296 public static java.util.List getGroups(long pk)
297 throws com.liferay.portal.SystemException,
298 com.liferay.portal.NoSuchOrganizationException {
299 return getPersistence().getGroups(pk);
300 }
301
302 public static java.util.List getGroups(long pk, int begin, int end)
303 throws com.liferay.portal.SystemException,
304 com.liferay.portal.NoSuchOrganizationException {
305 return getPersistence().getGroups(pk, begin, end);
306 }
307
308 public static java.util.List getGroups(long pk, int begin, int end,
309 com.liferay.portal.kernel.util.OrderByComparator obc)
310 throws com.liferay.portal.SystemException,
311 com.liferay.portal.NoSuchOrganizationException {
312 return getPersistence().getGroups(pk, begin, end, obc);
313 }
314
315 public static int getGroupsSize(long pk)
316 throws com.liferay.portal.SystemException {
317 return getPersistence().getGroupsSize(pk);
318 }
319
320 public static boolean containsGroup(long pk, long groupPK)
321 throws com.liferay.portal.SystemException {
322 return getPersistence().containsGroup(pk, groupPK);
323 }
324
325 public static boolean containsGroups(long pk)
326 throws com.liferay.portal.SystemException {
327 return getPersistence().containsGroups(pk);
328 }
329
330 public static void addGroup(long pk, long groupPK)
331 throws com.liferay.portal.SystemException,
332 com.liferay.portal.NoSuchGroupException,
333 com.liferay.portal.NoSuchOrganizationException {
334 getPersistence().addGroup(pk, groupPK);
335 }
336
337 public static void addGroup(long pk, com.liferay.portal.model.Group group)
338 throws com.liferay.portal.SystemException,
339 com.liferay.portal.NoSuchGroupException,
340 com.liferay.portal.NoSuchOrganizationException {
341 getPersistence().addGroup(pk, group);
342 }
343
344 public static void addGroups(long pk, long[] groupPKs)
345 throws com.liferay.portal.SystemException,
346 com.liferay.portal.NoSuchGroupException,
347 com.liferay.portal.NoSuchOrganizationException {
348 getPersistence().addGroups(pk, groupPKs);
349 }
350
351 public static void addGroups(long pk, java.util.List groups)
352 throws com.liferay.portal.SystemException,
353 com.liferay.portal.NoSuchGroupException,
354 com.liferay.portal.NoSuchOrganizationException {
355 getPersistence().addGroups(pk, groups);
356 }
357
358 public static void clearGroups(long pk)
359 throws com.liferay.portal.SystemException,
360 com.liferay.portal.NoSuchOrganizationException {
361 getPersistence().clearGroups(pk);
362 }
363
364 public static void removeGroup(long pk, long groupPK)
365 throws com.liferay.portal.SystemException,
366 com.liferay.portal.NoSuchGroupException,
367 com.liferay.portal.NoSuchOrganizationException {
368 getPersistence().removeGroup(pk, groupPK);
369 }
370
371 public static void removeGroup(long pk, com.liferay.portal.model.Group group)
372 throws com.liferay.portal.SystemException,
373 com.liferay.portal.NoSuchGroupException,
374 com.liferay.portal.NoSuchOrganizationException {
375 getPersistence().removeGroup(pk, group);
376 }
377
378 public static void removeGroups(long pk, long[] groupPKs)
379 throws com.liferay.portal.SystemException,
380 com.liferay.portal.NoSuchGroupException,
381 com.liferay.portal.NoSuchOrganizationException {
382 getPersistence().removeGroups(pk, groupPKs);
383 }
384
385 public static void removeGroups(long pk, java.util.List groups)
386 throws com.liferay.portal.SystemException,
387 com.liferay.portal.NoSuchGroupException,
388 com.liferay.portal.NoSuchOrganizationException {
389 getPersistence().removeGroups(pk, groups);
390 }
391
392 public static void setGroups(long pk, long[] groupPKs)
393 throws com.liferay.portal.SystemException,
394 com.liferay.portal.NoSuchGroupException,
395 com.liferay.portal.NoSuchOrganizationException {
396 getPersistence().setGroups(pk, groupPKs);
397 }
398
399 public static void setGroups(long pk, java.util.List groups)
400 throws com.liferay.portal.SystemException,
401 com.liferay.portal.NoSuchGroupException,
402 com.liferay.portal.NoSuchOrganizationException {
403 getPersistence().setGroups(pk, groups);
404 }
405
406 public static java.util.List getUsers(long pk)
407 throws com.liferay.portal.SystemException,
408 com.liferay.portal.NoSuchOrganizationException {
409 return getPersistence().getUsers(pk);
410 }
411
412 public static java.util.List getUsers(long pk, int begin, int end)
413 throws com.liferay.portal.SystemException,
414 com.liferay.portal.NoSuchOrganizationException {
415 return getPersistence().getUsers(pk, begin, end);
416 }
417
418 public static java.util.List getUsers(long pk, int begin, int end,
419 com.liferay.portal.kernel.util.OrderByComparator obc)
420 throws com.liferay.portal.SystemException,
421 com.liferay.portal.NoSuchOrganizationException {
422 return getPersistence().getUsers(pk, begin, end, obc);
423 }
424
425 public static int getUsersSize(long pk)
426 throws com.liferay.portal.SystemException {
427 return getPersistence().getUsersSize(pk);
428 }
429
430 public static boolean containsUser(long pk, long userPK)
431 throws com.liferay.portal.SystemException {
432 return getPersistence().containsUser(pk, userPK);
433 }
434
435 public static boolean containsUsers(long pk)
436 throws com.liferay.portal.SystemException {
437 return getPersistence().containsUsers(pk);
438 }
439
440 public static void addUser(long pk, long userPK)
441 throws com.liferay.portal.SystemException,
442 com.liferay.portal.NoSuchOrganizationException,
443 com.liferay.portal.NoSuchUserException {
444 getPersistence().addUser(pk, userPK);
445 }
446
447 public static void addUser(long pk, com.liferay.portal.model.User user)
448 throws com.liferay.portal.SystemException,
449 com.liferay.portal.NoSuchOrganizationException,
450 com.liferay.portal.NoSuchUserException {
451 getPersistence().addUser(pk, user);
452 }
453
454 public static void addUsers(long pk, long[] userPKs)
455 throws com.liferay.portal.SystemException,
456 com.liferay.portal.NoSuchOrganizationException,
457 com.liferay.portal.NoSuchUserException {
458 getPersistence().addUsers(pk, userPKs);
459 }
460
461 public static void addUsers(long pk, java.util.List users)
462 throws com.liferay.portal.SystemException,
463 com.liferay.portal.NoSuchOrganizationException,
464 com.liferay.portal.NoSuchUserException {
465 getPersistence().addUsers(pk, users);
466 }
467
468 public static void clearUsers(long pk)
469 throws com.liferay.portal.SystemException,
470 com.liferay.portal.NoSuchOrganizationException {
471 getPersistence().clearUsers(pk);
472 }
473
474 public static void removeUser(long pk, long userPK)
475 throws com.liferay.portal.SystemException,
476 com.liferay.portal.NoSuchOrganizationException,
477 com.liferay.portal.NoSuchUserException {
478 getPersistence().removeUser(pk, userPK);
479 }
480
481 public static void removeUser(long pk, com.liferay.portal.model.User user)
482 throws com.liferay.portal.SystemException,
483 com.liferay.portal.NoSuchOrganizationException,
484 com.liferay.portal.NoSuchUserException {
485 getPersistence().removeUser(pk, user);
486 }
487
488 public static void removeUsers(long pk, long[] userPKs)
489 throws com.liferay.portal.SystemException,
490 com.liferay.portal.NoSuchOrganizationException,
491 com.liferay.portal.NoSuchUserException {
492 getPersistence().removeUsers(pk, userPKs);
493 }
494
495 public static void removeUsers(long pk, java.util.List users)
496 throws com.liferay.portal.SystemException,
497 com.liferay.portal.NoSuchOrganizationException,
498 com.liferay.portal.NoSuchUserException {
499 getPersistence().removeUsers(pk, users);
500 }
501
502 public static void setUsers(long pk, long[] userPKs)
503 throws com.liferay.portal.SystemException,
504 com.liferay.portal.NoSuchOrganizationException,
505 com.liferay.portal.NoSuchUserException {
506 getPersistence().setUsers(pk, userPKs);
507 }
508
509 public static void setUsers(long pk, java.util.List users)
510 throws com.liferay.portal.SystemException,
511 com.liferay.portal.NoSuchOrganizationException,
512 com.liferay.portal.NoSuchUserException {
513 getPersistence().setUsers(pk, users);
514 }
515
516 public static OrganizationPersistence getPersistence() {
517 return _getUtil()._persistence;
518 }
519
520 public void setPersistence(OrganizationPersistence persistence) {
521 _persistence = persistence;
522 }
523
524 private static OrganizationUtil _getUtil() {
525 if (_util == null) {
526 _util = (OrganizationUtil)com.liferay.portal.kernel.bean.BeanLocatorUtil.locate(_UTIL);
527 }
528
529 return _util;
530 }
531
532 private static final String _UTIL = OrganizationUtil.class.getName();
533 private static OrganizationUtil _util;
534 private OrganizationPersistence _persistence;
535 }