001
014
015 package com.liferay.portal.service.persistence;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
019 import com.liferay.portal.kernel.exception.SystemException;
020 import com.liferay.portal.kernel.util.OrderByComparator;
021 import com.liferay.portal.model.UserTracker;
022 import com.liferay.portal.service.ServiceContext;
023
024 import java.util.List;
025
026
032 public class UserTrackerUtil {
033
036 public static void clearCache() {
037 getPersistence().clearCache();
038 }
039
040
043 public static void clearCache(UserTracker userTracker) {
044 getPersistence().clearCache(userTracker);
045 }
046
047
050 public long countWithDynamicQuery(DynamicQuery dynamicQuery)
051 throws SystemException {
052 return getPersistence().countWithDynamicQuery(dynamicQuery);
053 }
054
055
058 public static List<UserTracker> findWithDynamicQuery(
059 DynamicQuery dynamicQuery) throws SystemException {
060 return getPersistence().findWithDynamicQuery(dynamicQuery);
061 }
062
063
066 public static List<UserTracker> findWithDynamicQuery(
067 DynamicQuery dynamicQuery, int start, int end)
068 throws SystemException {
069 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
070 }
071
072
075 public static List<UserTracker> findWithDynamicQuery(
076 DynamicQuery dynamicQuery, int start, int end,
077 OrderByComparator orderByComparator) throws SystemException {
078 return getPersistence()
079 .findWithDynamicQuery(dynamicQuery, start, end,
080 orderByComparator);
081 }
082
083
086 public static UserTracker remove(UserTracker userTracker)
087 throws SystemException {
088 return getPersistence().remove(userTracker);
089 }
090
091
094 public static UserTracker update(UserTracker userTracker, boolean merge)
095 throws SystemException {
096 return getPersistence().update(userTracker, merge);
097 }
098
099
102 public static UserTracker update(UserTracker userTracker, boolean merge,
103 ServiceContext serviceContext) throws SystemException {
104 return getPersistence().update(userTracker, merge, serviceContext);
105 }
106
107 public static void cacheResult(
108 com.liferay.portal.model.UserTracker userTracker) {
109 getPersistence().cacheResult(userTracker);
110 }
111
112 public static void cacheResult(
113 java.util.List<com.liferay.portal.model.UserTracker> userTrackers) {
114 getPersistence().cacheResult(userTrackers);
115 }
116
117 public static com.liferay.portal.model.UserTracker create(
118 long userTrackerId) {
119 return getPersistence().create(userTrackerId);
120 }
121
122 public static com.liferay.portal.model.UserTracker remove(
123 long userTrackerId)
124 throws com.liferay.portal.NoSuchUserTrackerException,
125 com.liferay.portal.kernel.exception.SystemException {
126 return getPersistence().remove(userTrackerId);
127 }
128
129 public static com.liferay.portal.model.UserTracker updateImpl(
130 com.liferay.portal.model.UserTracker userTracker, boolean merge)
131 throws com.liferay.portal.kernel.exception.SystemException {
132 return getPersistence().updateImpl(userTracker, merge);
133 }
134
135 public static com.liferay.portal.model.UserTracker findByPrimaryKey(
136 long userTrackerId)
137 throws com.liferay.portal.NoSuchUserTrackerException,
138 com.liferay.portal.kernel.exception.SystemException {
139 return getPersistence().findByPrimaryKey(userTrackerId);
140 }
141
142 public static com.liferay.portal.model.UserTracker fetchByPrimaryKey(
143 long userTrackerId)
144 throws com.liferay.portal.kernel.exception.SystemException {
145 return getPersistence().fetchByPrimaryKey(userTrackerId);
146 }
147
148 public static java.util.List<com.liferay.portal.model.UserTracker> findByCompanyId(
149 long companyId)
150 throws com.liferay.portal.kernel.exception.SystemException {
151 return getPersistence().findByCompanyId(companyId);
152 }
153
154 public static java.util.List<com.liferay.portal.model.UserTracker> findByCompanyId(
155 long companyId, int start, int end)
156 throws com.liferay.portal.kernel.exception.SystemException {
157 return getPersistence().findByCompanyId(companyId, start, end);
158 }
159
160 public static java.util.List<com.liferay.portal.model.UserTracker> findByCompanyId(
161 long companyId, int start, int end,
162 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
163 throws com.liferay.portal.kernel.exception.SystemException {
164 return getPersistence()
165 .findByCompanyId(companyId, start, end, orderByComparator);
166 }
167
168 public static com.liferay.portal.model.UserTracker findByCompanyId_First(
169 long companyId,
170 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
171 throws com.liferay.portal.NoSuchUserTrackerException,
172 com.liferay.portal.kernel.exception.SystemException {
173 return getPersistence()
174 .findByCompanyId_First(companyId, orderByComparator);
175 }
176
177 public static com.liferay.portal.model.UserTracker findByCompanyId_Last(
178 long companyId,
179 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
180 throws com.liferay.portal.NoSuchUserTrackerException,
181 com.liferay.portal.kernel.exception.SystemException {
182 return getPersistence()
183 .findByCompanyId_Last(companyId, orderByComparator);
184 }
185
186 public static com.liferay.portal.model.UserTracker[] findByCompanyId_PrevAndNext(
187 long userTrackerId, long companyId,
188 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
189 throws com.liferay.portal.NoSuchUserTrackerException,
190 com.liferay.portal.kernel.exception.SystemException {
191 return getPersistence()
192 .findByCompanyId_PrevAndNext(userTrackerId, companyId,
193 orderByComparator);
194 }
195
196 public static java.util.List<com.liferay.portal.model.UserTracker> findByUserId(
197 long userId) throws com.liferay.portal.kernel.exception.SystemException {
198 return getPersistence().findByUserId(userId);
199 }
200
201 public static java.util.List<com.liferay.portal.model.UserTracker> findByUserId(
202 long userId, int start, int end)
203 throws com.liferay.portal.kernel.exception.SystemException {
204 return getPersistence().findByUserId(userId, start, end);
205 }
206
207 public static java.util.List<com.liferay.portal.model.UserTracker> findByUserId(
208 long userId, int start, int end,
209 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
210 throws com.liferay.portal.kernel.exception.SystemException {
211 return getPersistence()
212 .findByUserId(userId, start, end, orderByComparator);
213 }
214
215 public static com.liferay.portal.model.UserTracker findByUserId_First(
216 long userId,
217 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
218 throws com.liferay.portal.NoSuchUserTrackerException,
219 com.liferay.portal.kernel.exception.SystemException {
220 return getPersistence().findByUserId_First(userId, orderByComparator);
221 }
222
223 public static com.liferay.portal.model.UserTracker findByUserId_Last(
224 long userId,
225 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
226 throws com.liferay.portal.NoSuchUserTrackerException,
227 com.liferay.portal.kernel.exception.SystemException {
228 return getPersistence().findByUserId_Last(userId, orderByComparator);
229 }
230
231 public static com.liferay.portal.model.UserTracker[] findByUserId_PrevAndNext(
232 long userTrackerId, long userId,
233 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
234 throws com.liferay.portal.NoSuchUserTrackerException,
235 com.liferay.portal.kernel.exception.SystemException {
236 return getPersistence()
237 .findByUserId_PrevAndNext(userTrackerId, userId,
238 orderByComparator);
239 }
240
241 public static java.util.List<com.liferay.portal.model.UserTracker> findBySessionId(
242 java.lang.String sessionId)
243 throws com.liferay.portal.kernel.exception.SystemException {
244 return getPersistence().findBySessionId(sessionId);
245 }
246
247 public static java.util.List<com.liferay.portal.model.UserTracker> findBySessionId(
248 java.lang.String sessionId, int start, int end)
249 throws com.liferay.portal.kernel.exception.SystemException {
250 return getPersistence().findBySessionId(sessionId, start, end);
251 }
252
253 public static java.util.List<com.liferay.portal.model.UserTracker> findBySessionId(
254 java.lang.String sessionId, int start, int end,
255 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
256 throws com.liferay.portal.kernel.exception.SystemException {
257 return getPersistence()
258 .findBySessionId(sessionId, start, end, orderByComparator);
259 }
260
261 public static com.liferay.portal.model.UserTracker findBySessionId_First(
262 java.lang.String sessionId,
263 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
264 throws com.liferay.portal.NoSuchUserTrackerException,
265 com.liferay.portal.kernel.exception.SystemException {
266 return getPersistence()
267 .findBySessionId_First(sessionId, orderByComparator);
268 }
269
270 public static com.liferay.portal.model.UserTracker findBySessionId_Last(
271 java.lang.String sessionId,
272 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
273 throws com.liferay.portal.NoSuchUserTrackerException,
274 com.liferay.portal.kernel.exception.SystemException {
275 return getPersistence()
276 .findBySessionId_Last(sessionId, orderByComparator);
277 }
278
279 public static com.liferay.portal.model.UserTracker[] findBySessionId_PrevAndNext(
280 long userTrackerId, java.lang.String sessionId,
281 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
282 throws com.liferay.portal.NoSuchUserTrackerException,
283 com.liferay.portal.kernel.exception.SystemException {
284 return getPersistence()
285 .findBySessionId_PrevAndNext(userTrackerId, sessionId,
286 orderByComparator);
287 }
288
289 public static java.util.List<com.liferay.portal.model.UserTracker> findAll()
290 throws com.liferay.portal.kernel.exception.SystemException {
291 return getPersistence().findAll();
292 }
293
294 public static java.util.List<com.liferay.portal.model.UserTracker> findAll(
295 int start, int end)
296 throws com.liferay.portal.kernel.exception.SystemException {
297 return getPersistence().findAll(start, end);
298 }
299
300 public static java.util.List<com.liferay.portal.model.UserTracker> findAll(
301 int start, int end,
302 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
303 throws com.liferay.portal.kernel.exception.SystemException {
304 return getPersistence().findAll(start, end, orderByComparator);
305 }
306
307 public static void removeByCompanyId(long companyId)
308 throws com.liferay.portal.kernel.exception.SystemException {
309 getPersistence().removeByCompanyId(companyId);
310 }
311
312 public static void removeByUserId(long userId)
313 throws com.liferay.portal.kernel.exception.SystemException {
314 getPersistence().removeByUserId(userId);
315 }
316
317 public static void removeBySessionId(java.lang.String sessionId)
318 throws com.liferay.portal.kernel.exception.SystemException {
319 getPersistence().removeBySessionId(sessionId);
320 }
321
322 public static void removeAll()
323 throws com.liferay.portal.kernel.exception.SystemException {
324 getPersistence().removeAll();
325 }
326
327 public static int countByCompanyId(long companyId)
328 throws com.liferay.portal.kernel.exception.SystemException {
329 return getPersistence().countByCompanyId(companyId);
330 }
331
332 public static int countByUserId(long userId)
333 throws com.liferay.portal.kernel.exception.SystemException {
334 return getPersistence().countByUserId(userId);
335 }
336
337 public static int countBySessionId(java.lang.String sessionId)
338 throws com.liferay.portal.kernel.exception.SystemException {
339 return getPersistence().countBySessionId(sessionId);
340 }
341
342 public static int countAll()
343 throws com.liferay.portal.kernel.exception.SystemException {
344 return getPersistence().countAll();
345 }
346
347 public static UserTrackerPersistence getPersistence() {
348 if (_persistence == null) {
349 _persistence = (UserTrackerPersistence)PortalBeanLocatorUtil.locate(UserTrackerPersistence.class.getName());
350 }
351
352 return _persistence;
353 }
354
355 public void setPersistence(UserTrackerPersistence persistence) {
356 _persistence = persistence;
357 }
358
359 private static UserTrackerPersistence _persistence;
360 }