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