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 List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
49 throws SystemException {
50 return getPersistence().findWithDynamicQuery(dynamicQuery);
51 }
52
53
56 public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
57 int start, int end) throws SystemException {
58 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
59 }
60
61
64 public static Team remove(Team team) throws SystemException {
65 return getPersistence().remove(team);
66 }
67
68
71 public static Team update(Team team, boolean merge)
72 throws SystemException {
73 return getPersistence().update(team, merge);
74 }
75
76 public static void cacheResult(com.liferay.portal.model.Team team) {
77 getPersistence().cacheResult(team);
78 }
79
80 public static void cacheResult(
81 java.util.List<com.liferay.portal.model.Team> teams) {
82 getPersistence().cacheResult(teams);
83 }
84
85 public static com.liferay.portal.model.Team create(long teamId) {
86 return getPersistence().create(teamId);
87 }
88
89 public static com.liferay.portal.model.Team remove(long teamId)
90 throws com.liferay.portal.NoSuchTeamException,
91 com.liferay.portal.kernel.exception.SystemException {
92 return getPersistence().remove(teamId);
93 }
94
95 public static com.liferay.portal.model.Team updateImpl(
96 com.liferay.portal.model.Team team, boolean merge)
97 throws com.liferay.portal.kernel.exception.SystemException {
98 return getPersistence().updateImpl(team, merge);
99 }
100
101 public static com.liferay.portal.model.Team findByPrimaryKey(long teamId)
102 throws com.liferay.portal.NoSuchTeamException,
103 com.liferay.portal.kernel.exception.SystemException {
104 return getPersistence().findByPrimaryKey(teamId);
105 }
106
107 public static com.liferay.portal.model.Team fetchByPrimaryKey(long teamId)
108 throws com.liferay.portal.kernel.exception.SystemException {
109 return getPersistence().fetchByPrimaryKey(teamId);
110 }
111
112 public static java.util.List<com.liferay.portal.model.Team> findByGroupId(
113 long groupId)
114 throws com.liferay.portal.kernel.exception.SystemException {
115 return getPersistence().findByGroupId(groupId);
116 }
117
118 public static java.util.List<com.liferay.portal.model.Team> findByGroupId(
119 long groupId, int start, int end)
120 throws com.liferay.portal.kernel.exception.SystemException {
121 return getPersistence().findByGroupId(groupId, start, end);
122 }
123
124 public static java.util.List<com.liferay.portal.model.Team> findByGroupId(
125 long groupId, int start, int end,
126 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
127 throws com.liferay.portal.kernel.exception.SystemException {
128 return getPersistence()
129 .findByGroupId(groupId, start, end, orderByComparator);
130 }
131
132 public static com.liferay.portal.model.Team findByGroupId_First(
133 long groupId,
134 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
135 throws com.liferay.portal.NoSuchTeamException,
136 com.liferay.portal.kernel.exception.SystemException {
137 return getPersistence().findByGroupId_First(groupId, orderByComparator);
138 }
139
140 public static com.liferay.portal.model.Team findByGroupId_Last(
141 long groupId,
142 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
143 throws com.liferay.portal.NoSuchTeamException,
144 com.liferay.portal.kernel.exception.SystemException {
145 return getPersistence().findByGroupId_Last(groupId, orderByComparator);
146 }
147
148 public static com.liferay.portal.model.Team[] findByGroupId_PrevAndNext(
149 long teamId, long groupId,
150 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
151 throws com.liferay.portal.NoSuchTeamException,
152 com.liferay.portal.kernel.exception.SystemException {
153 return getPersistence()
154 .findByGroupId_PrevAndNext(teamId, groupId, orderByComparator);
155 }
156
157 public static com.liferay.portal.model.Team findByG_N(long groupId,
158 java.lang.String name)
159 throws com.liferay.portal.NoSuchTeamException,
160 com.liferay.portal.kernel.exception.SystemException {
161 return getPersistence().findByG_N(groupId, name);
162 }
163
164 public static com.liferay.portal.model.Team fetchByG_N(long groupId,
165 java.lang.String name)
166 throws com.liferay.portal.kernel.exception.SystemException {
167 return getPersistence().fetchByG_N(groupId, name);
168 }
169
170 public static com.liferay.portal.model.Team fetchByG_N(long groupId,
171 java.lang.String name, boolean retrieveFromCache)
172 throws com.liferay.portal.kernel.exception.SystemException {
173 return getPersistence().fetchByG_N(groupId, name, retrieveFromCache);
174 }
175
176 public static java.util.List<com.liferay.portal.model.Team> findAll()
177 throws com.liferay.portal.kernel.exception.SystemException {
178 return getPersistence().findAll();
179 }
180
181 public static java.util.List<com.liferay.portal.model.Team> findAll(
182 int start, int end)
183 throws com.liferay.portal.kernel.exception.SystemException {
184 return getPersistence().findAll(start, end);
185 }
186
187 public static java.util.List<com.liferay.portal.model.Team> findAll(
188 int start, int end,
189 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
190 throws com.liferay.portal.kernel.exception.SystemException {
191 return getPersistence().findAll(start, end, orderByComparator);
192 }
193
194 public static void removeByGroupId(long groupId)
195 throws com.liferay.portal.kernel.exception.SystemException {
196 getPersistence().removeByGroupId(groupId);
197 }
198
199 public static void removeByG_N(long groupId, java.lang.String name)
200 throws com.liferay.portal.NoSuchTeamException,
201 com.liferay.portal.kernel.exception.SystemException {
202 getPersistence().removeByG_N(groupId, name);
203 }
204
205 public static void removeAll()
206 throws com.liferay.portal.kernel.exception.SystemException {
207 getPersistence().removeAll();
208 }
209
210 public static int countByGroupId(long groupId)
211 throws com.liferay.portal.kernel.exception.SystemException {
212 return getPersistence().countByGroupId(groupId);
213 }
214
215 public static int countByG_N(long groupId, java.lang.String name)
216 throws com.liferay.portal.kernel.exception.SystemException {
217 return getPersistence().countByG_N(groupId, name);
218 }
219
220 public static int countAll()
221 throws com.liferay.portal.kernel.exception.SystemException {
222 return getPersistence().countAll();
223 }
224
225 public static java.util.List<com.liferay.portal.model.User> getUsers(
226 long pk) throws com.liferay.portal.kernel.exception.SystemException {
227 return getPersistence().getUsers(pk);
228 }
229
230 public static java.util.List<com.liferay.portal.model.User> getUsers(
231 long pk, int start, int end)
232 throws com.liferay.portal.kernel.exception.SystemException {
233 return getPersistence().getUsers(pk, start, end);
234 }
235
236 public static java.util.List<com.liferay.portal.model.User> getUsers(
237 long pk, int start, int end,
238 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
239 throws com.liferay.portal.kernel.exception.SystemException {
240 return getPersistence().getUsers(pk, start, end, orderByComparator);
241 }
242
243 public static int getUsersSize(long pk)
244 throws com.liferay.portal.kernel.exception.SystemException {
245 return getPersistence().getUsersSize(pk);
246 }
247
248 public static boolean containsUser(long pk, long userPK)
249 throws com.liferay.portal.kernel.exception.SystemException {
250 return getPersistence().containsUser(pk, userPK);
251 }
252
253 public static boolean containsUsers(long pk)
254 throws com.liferay.portal.kernel.exception.SystemException {
255 return getPersistence().containsUsers(pk);
256 }
257
258 public static void addUser(long pk, long userPK)
259 throws com.liferay.portal.kernel.exception.SystemException {
260 getPersistence().addUser(pk, userPK);
261 }
262
263 public static void addUser(long pk, com.liferay.portal.model.User user)
264 throws com.liferay.portal.kernel.exception.SystemException {
265 getPersistence().addUser(pk, user);
266 }
267
268 public static void addUsers(long pk, long[] userPKs)
269 throws com.liferay.portal.kernel.exception.SystemException {
270 getPersistence().addUsers(pk, userPKs);
271 }
272
273 public static void addUsers(long pk,
274 java.util.List<com.liferay.portal.model.User> users)
275 throws com.liferay.portal.kernel.exception.SystemException {
276 getPersistence().addUsers(pk, users);
277 }
278
279 public static void clearUsers(long pk)
280 throws com.liferay.portal.kernel.exception.SystemException {
281 getPersistence().clearUsers(pk);
282 }
283
284 public static void removeUser(long pk, long userPK)
285 throws com.liferay.portal.kernel.exception.SystemException {
286 getPersistence().removeUser(pk, userPK);
287 }
288
289 public static void removeUser(long pk, com.liferay.portal.model.User user)
290 throws com.liferay.portal.kernel.exception.SystemException {
291 getPersistence().removeUser(pk, user);
292 }
293
294 public static void removeUsers(long pk, long[] userPKs)
295 throws com.liferay.portal.kernel.exception.SystemException {
296 getPersistence().removeUsers(pk, userPKs);
297 }
298
299 public static void removeUsers(long pk,
300 java.util.List<com.liferay.portal.model.User> users)
301 throws com.liferay.portal.kernel.exception.SystemException {
302 getPersistence().removeUsers(pk, users);
303 }
304
305 public static void setUsers(long pk, long[] userPKs)
306 throws com.liferay.portal.kernel.exception.SystemException {
307 getPersistence().setUsers(pk, userPKs);
308 }
309
310 public static void setUsers(long pk,
311 java.util.List<com.liferay.portal.model.User> users)
312 throws com.liferay.portal.kernel.exception.SystemException {
313 getPersistence().setUsers(pk, users);
314 }
315
316 public static TeamPersistence getPersistence() {
317 if (_persistence == null) {
318 _persistence = (TeamPersistence)PortalBeanLocatorUtil.locate(TeamPersistence.class.getName());
319 }
320
321 return _persistence;
322 }
323
324 public void setPersistence(TeamPersistence persistence) {
325 _persistence = persistence;
326 }
327
328 private static TeamPersistence _persistence;
329 }