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