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