1
14
15 package com.liferay.portal.service.persistence;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
19 import com.liferay.portal.kernel.exception.SystemException;
20 import com.liferay.portal.model.Team;
21
22 import java.util.List;
23
24
37 public class TeamUtil {
38
41 public static void clearCache() {
42 getPersistence().clearCache();
43 }
44
45
48 public static void clearCache(Team team) {
49 getPersistence().clearCache(team);
50 }
51
52
55 public long countWithDynamicQuery(DynamicQuery dynamicQuery)
56 throws SystemException {
57 return getPersistence().countWithDynamicQuery(dynamicQuery);
58 }
59
60
63 public static List<Team> findWithDynamicQuery(DynamicQuery dynamicQuery)
64 throws SystemException {
65 return getPersistence().findWithDynamicQuery(dynamicQuery);
66 }
67
68
71 public static List<Team> findWithDynamicQuery(DynamicQuery dynamicQuery,
72 int start, int end) throws SystemException {
73 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
74 }
75
76
79 public static Team remove(Team team) throws SystemException {
80 return getPersistence().remove(team);
81 }
82
83
86 public static Team update(Team team, boolean merge)
87 throws SystemException {
88 return getPersistence().update(team, merge);
89 }
90
91 public static void cacheResult(com.liferay.portal.model.Team team) {
92 getPersistence().cacheResult(team);
93 }
94
95 public static void cacheResult(
96 java.util.List<com.liferay.portal.model.Team> teams) {
97 getPersistence().cacheResult(teams);
98 }
99
100 public static com.liferay.portal.model.Team create(long teamId) {
101 return getPersistence().create(teamId);
102 }
103
104 public static com.liferay.portal.model.Team remove(long teamId)
105 throws com.liferay.portal.NoSuchTeamException,
106 com.liferay.portal.kernel.exception.SystemException {
107 return getPersistence().remove(teamId);
108 }
109
110 public static com.liferay.portal.model.Team updateImpl(
111 com.liferay.portal.model.Team team, boolean merge)
112 throws com.liferay.portal.kernel.exception.SystemException {
113 return getPersistence().updateImpl(team, merge);
114 }
115
116 public static com.liferay.portal.model.Team findByPrimaryKey(long teamId)
117 throws com.liferay.portal.NoSuchTeamException,
118 com.liferay.portal.kernel.exception.SystemException {
119 return getPersistence().findByPrimaryKey(teamId);
120 }
121
122 public static com.liferay.portal.model.Team fetchByPrimaryKey(long teamId)
123 throws com.liferay.portal.kernel.exception.SystemException {
124 return getPersistence().fetchByPrimaryKey(teamId);
125 }
126
127 public static java.util.List<com.liferay.portal.model.Team> findByGroupId(
128 long groupId)
129 throws com.liferay.portal.kernel.exception.SystemException {
130 return getPersistence().findByGroupId(groupId);
131 }
132
133 public static java.util.List<com.liferay.portal.model.Team> findByGroupId(
134 long groupId, int start, int end)
135 throws com.liferay.portal.kernel.exception.SystemException {
136 return getPersistence().findByGroupId(groupId, start, end);
137 }
138
139 public static java.util.List<com.liferay.portal.model.Team> findByGroupId(
140 long groupId, int start, int end,
141 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
142 throws com.liferay.portal.kernel.exception.SystemException {
143 return getPersistence()
144 .findByGroupId(groupId, start, end, orderByComparator);
145 }
146
147 public static com.liferay.portal.model.Team findByGroupId_First(
148 long groupId,
149 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
150 throws com.liferay.portal.NoSuchTeamException,
151 com.liferay.portal.kernel.exception.SystemException {
152 return getPersistence().findByGroupId_First(groupId, orderByComparator);
153 }
154
155 public static com.liferay.portal.model.Team findByGroupId_Last(
156 long groupId,
157 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
158 throws com.liferay.portal.NoSuchTeamException,
159 com.liferay.portal.kernel.exception.SystemException {
160 return getPersistence().findByGroupId_Last(groupId, orderByComparator);
161 }
162
163 public static com.liferay.portal.model.Team[] findByGroupId_PrevAndNext(
164 long teamId, long groupId,
165 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
166 throws com.liferay.portal.NoSuchTeamException,
167 com.liferay.portal.kernel.exception.SystemException {
168 return getPersistence()
169 .findByGroupId_PrevAndNext(teamId, groupId, orderByComparator);
170 }
171
172 public static java.util.List<com.liferay.portal.model.Team> filterFindByGroupId(
173 long groupId)
174 throws com.liferay.portal.kernel.exception.SystemException {
175 return getPersistence().filterFindByGroupId(groupId);
176 }
177
178 public static java.util.List<com.liferay.portal.model.Team> filterFindByGroupId(
179 long groupId, int start, int end)
180 throws com.liferay.portal.kernel.exception.SystemException {
181 return getPersistence().filterFindByGroupId(groupId, start, end);
182 }
183
184 public static java.util.List<com.liferay.portal.model.Team> filterFindByGroupId(
185 long groupId, int start, int end,
186 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
187 throws com.liferay.portal.kernel.exception.SystemException {
188 return getPersistence()
189 .filterFindByGroupId(groupId, start, end, orderByComparator);
190 }
191
192 public static com.liferay.portal.model.Team findByG_N(long groupId,
193 java.lang.String name)
194 throws com.liferay.portal.NoSuchTeamException,
195 com.liferay.portal.kernel.exception.SystemException {
196 return getPersistence().findByG_N(groupId, name);
197 }
198
199 public static com.liferay.portal.model.Team fetchByG_N(long groupId,
200 java.lang.String name)
201 throws com.liferay.portal.kernel.exception.SystemException {
202 return getPersistence().fetchByG_N(groupId, name);
203 }
204
205 public static com.liferay.portal.model.Team fetchByG_N(long groupId,
206 java.lang.String name, boolean retrieveFromCache)
207 throws com.liferay.portal.kernel.exception.SystemException {
208 return getPersistence().fetchByG_N(groupId, name, retrieveFromCache);
209 }
210
211 public static java.util.List<com.liferay.portal.model.Team> findAll()
212 throws com.liferay.portal.kernel.exception.SystemException {
213 return getPersistence().findAll();
214 }
215
216 public static java.util.List<com.liferay.portal.model.Team> findAll(
217 int start, int end)
218 throws com.liferay.portal.kernel.exception.SystemException {
219 return getPersistence().findAll(start, end);
220 }
221
222 public static java.util.List<com.liferay.portal.model.Team> findAll(
223 int start, int end,
224 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
225 throws com.liferay.portal.kernel.exception.SystemException {
226 return getPersistence().findAll(start, end, orderByComparator);
227 }
228
229 public static void removeByGroupId(long groupId)
230 throws com.liferay.portal.kernel.exception.SystemException {
231 getPersistence().removeByGroupId(groupId);
232 }
233
234 public static void removeByG_N(long groupId, java.lang.String name)
235 throws com.liferay.portal.NoSuchTeamException,
236 com.liferay.portal.kernel.exception.SystemException {
237 getPersistence().removeByG_N(groupId, name);
238 }
239
240 public static void removeAll()
241 throws com.liferay.portal.kernel.exception.SystemException {
242 getPersistence().removeAll();
243 }
244
245 public static int countByGroupId(long groupId)
246 throws com.liferay.portal.kernel.exception.SystemException {
247 return getPersistence().countByGroupId(groupId);
248 }
249
250 public static int filterCountByGroupId(long groupId)
251 throws com.liferay.portal.kernel.exception.SystemException {
252 return getPersistence().filterCountByGroupId(groupId);
253 }
254
255 public static int countByG_N(long groupId, java.lang.String name)
256 throws com.liferay.portal.kernel.exception.SystemException {
257 return getPersistence().countByG_N(groupId, name);
258 }
259
260 public static int filterCountByG_N(long groupId, java.lang.String name)
261 throws com.liferay.portal.kernel.exception.SystemException {
262 return getPersistence().filterCountByG_N(groupId, name);
263 }
264
265 public static int countAll()
266 throws com.liferay.portal.kernel.exception.SystemException {
267 return getPersistence().countAll();
268 }
269
270 public static java.util.List<com.liferay.portal.model.User> getUsers(
271 long pk) throws com.liferay.portal.kernel.exception.SystemException {
272 return getPersistence().getUsers(pk);
273 }
274
275 public static java.util.List<com.liferay.portal.model.User> getUsers(
276 long pk, int start, int end)
277 throws com.liferay.portal.kernel.exception.SystemException {
278 return getPersistence().getUsers(pk, start, end);
279 }
280
281 public static java.util.List<com.liferay.portal.model.User> getUsers(
282 long pk, int start, int end,
283 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
284 throws com.liferay.portal.kernel.exception.SystemException {
285 return getPersistence().getUsers(pk, start, end, orderByComparator);
286 }
287
288 public static int getUsersSize(long pk)
289 throws com.liferay.portal.kernel.exception.SystemException {
290 return getPersistence().getUsersSize(pk);
291 }
292
293 public static boolean containsUser(long pk, long userPK)
294 throws com.liferay.portal.kernel.exception.SystemException {
295 return getPersistence().containsUser(pk, userPK);
296 }
297
298 public static boolean containsUsers(long pk)
299 throws com.liferay.portal.kernel.exception.SystemException {
300 return getPersistence().containsUsers(pk);
301 }
302
303 public static void addUser(long pk, long userPK)
304 throws com.liferay.portal.kernel.exception.SystemException {
305 getPersistence().addUser(pk, userPK);
306 }
307
308 public static void addUser(long pk, com.liferay.portal.model.User user)
309 throws com.liferay.portal.kernel.exception.SystemException {
310 getPersistence().addUser(pk, user);
311 }
312
313 public static void addUsers(long pk, long[] userPKs)
314 throws com.liferay.portal.kernel.exception.SystemException {
315 getPersistence().addUsers(pk, userPKs);
316 }
317
318 public static void addUsers(long pk,
319 java.util.List<com.liferay.portal.model.User> users)
320 throws com.liferay.portal.kernel.exception.SystemException {
321 getPersistence().addUsers(pk, users);
322 }
323
324 public static void clearUsers(long pk)
325 throws com.liferay.portal.kernel.exception.SystemException {
326 getPersistence().clearUsers(pk);
327 }
328
329 public static void removeUser(long pk, long userPK)
330 throws com.liferay.portal.kernel.exception.SystemException {
331 getPersistence().removeUser(pk, userPK);
332 }
333
334 public static void removeUser(long pk, com.liferay.portal.model.User user)
335 throws com.liferay.portal.kernel.exception.SystemException {
336 getPersistence().removeUser(pk, user);
337 }
338
339 public static void removeUsers(long pk, long[] userPKs)
340 throws com.liferay.portal.kernel.exception.SystemException {
341 getPersistence().removeUsers(pk, userPKs);
342 }
343
344 public static void removeUsers(long pk,
345 java.util.List<com.liferay.portal.model.User> users)
346 throws com.liferay.portal.kernel.exception.SystemException {
347 getPersistence().removeUsers(pk, users);
348 }
349
350 public static void setUsers(long pk, long[] userPKs)
351 throws com.liferay.portal.kernel.exception.SystemException {
352 getPersistence().setUsers(pk, userPKs);
353 }
354
355 public static void setUsers(long pk,
356 java.util.List<com.liferay.portal.model.User> users)
357 throws com.liferay.portal.kernel.exception.SystemException {
358 getPersistence().setUsers(pk, users);
359 }
360
361 public static TeamPersistence getPersistence() {
362 if (_persistence == null) {
363 _persistence = (TeamPersistence)PortalBeanLocatorUtil.locate(TeamPersistence.class.getName());
364 }
365
366 return _persistence;
367 }
368
369 public void setPersistence(TeamPersistence persistence) {
370 _persistence = persistence;
371 }
372
373 private static TeamPersistence _persistence;
374 }