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.UserTracker;
21
22 import java.util.List;
23
24
37 public class UserTrackerUtil {
38
41 public static void clearCache() {
42 getPersistence().clearCache();
43 }
44
45
48 public static void clearCache(UserTracker userTracker) {
49 getPersistence().clearCache(userTracker);
50 }
51
52
55 public long countWithDynamicQuery(DynamicQuery dynamicQuery)
56 throws SystemException {
57 return getPersistence().countWithDynamicQuery(dynamicQuery);
58 }
59
60
63 public static List<UserTracker> findWithDynamicQuery(
64 DynamicQuery dynamicQuery) throws SystemException {
65 return getPersistence().findWithDynamicQuery(dynamicQuery);
66 }
67
68
71 public static List<UserTracker> findWithDynamicQuery(
72 DynamicQuery dynamicQuery, int start, int end)
73 throws SystemException {
74 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
75 }
76
77
80 public static UserTracker remove(UserTracker userTracker)
81 throws SystemException {
82 return getPersistence().remove(userTracker);
83 }
84
85
88 public static UserTracker update(UserTracker userTracker, boolean merge)
89 throws SystemException {
90 return getPersistence().update(userTracker, merge);
91 }
92
93 public static void cacheResult(
94 com.liferay.portal.model.UserTracker userTracker) {
95 getPersistence().cacheResult(userTracker);
96 }
97
98 public static void cacheResult(
99 java.util.List<com.liferay.portal.model.UserTracker> userTrackers) {
100 getPersistence().cacheResult(userTrackers);
101 }
102
103 public static com.liferay.portal.model.UserTracker create(
104 long userTrackerId) {
105 return getPersistence().create(userTrackerId);
106 }
107
108 public static com.liferay.portal.model.UserTracker remove(
109 long userTrackerId)
110 throws com.liferay.portal.NoSuchUserTrackerException,
111 com.liferay.portal.kernel.exception.SystemException {
112 return getPersistence().remove(userTrackerId);
113 }
114
115 public static com.liferay.portal.model.UserTracker updateImpl(
116 com.liferay.portal.model.UserTracker userTracker, boolean merge)
117 throws com.liferay.portal.kernel.exception.SystemException {
118 return getPersistence().updateImpl(userTracker, merge);
119 }
120
121 public static com.liferay.portal.model.UserTracker findByPrimaryKey(
122 long userTrackerId)
123 throws com.liferay.portal.NoSuchUserTrackerException,
124 com.liferay.portal.kernel.exception.SystemException {
125 return getPersistence().findByPrimaryKey(userTrackerId);
126 }
127
128 public static com.liferay.portal.model.UserTracker fetchByPrimaryKey(
129 long userTrackerId)
130 throws com.liferay.portal.kernel.exception.SystemException {
131 return getPersistence().fetchByPrimaryKey(userTrackerId);
132 }
133
134 public static java.util.List<com.liferay.portal.model.UserTracker> findByCompanyId(
135 long companyId)
136 throws com.liferay.portal.kernel.exception.SystemException {
137 return getPersistence().findByCompanyId(companyId);
138 }
139
140 public static java.util.List<com.liferay.portal.model.UserTracker> findByCompanyId(
141 long companyId, int start, int end)
142 throws com.liferay.portal.kernel.exception.SystemException {
143 return getPersistence().findByCompanyId(companyId, start, end);
144 }
145
146 public static java.util.List<com.liferay.portal.model.UserTracker> findByCompanyId(
147 long companyId, int start, int end,
148 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
149 throws com.liferay.portal.kernel.exception.SystemException {
150 return getPersistence()
151 .findByCompanyId(companyId, start, end, orderByComparator);
152 }
153
154 public static com.liferay.portal.model.UserTracker findByCompanyId_First(
155 long companyId,
156 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
157 throws com.liferay.portal.NoSuchUserTrackerException,
158 com.liferay.portal.kernel.exception.SystemException {
159 return getPersistence()
160 .findByCompanyId_First(companyId, orderByComparator);
161 }
162
163 public static com.liferay.portal.model.UserTracker findByCompanyId_Last(
164 long companyId,
165 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
166 throws com.liferay.portal.NoSuchUserTrackerException,
167 com.liferay.portal.kernel.exception.SystemException {
168 return getPersistence()
169 .findByCompanyId_Last(companyId, orderByComparator);
170 }
171
172 public static com.liferay.portal.model.UserTracker[] findByCompanyId_PrevAndNext(
173 long userTrackerId, long companyId,
174 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
175 throws com.liferay.portal.NoSuchUserTrackerException,
176 com.liferay.portal.kernel.exception.SystemException {
177 return getPersistence()
178 .findByCompanyId_PrevAndNext(userTrackerId, companyId,
179 orderByComparator);
180 }
181
182 public static java.util.List<com.liferay.portal.model.UserTracker> findByUserId(
183 long userId) throws com.liferay.portal.kernel.exception.SystemException {
184 return getPersistence().findByUserId(userId);
185 }
186
187 public static java.util.List<com.liferay.portal.model.UserTracker> findByUserId(
188 long userId, int start, int end)
189 throws com.liferay.portal.kernel.exception.SystemException {
190 return getPersistence().findByUserId(userId, start, end);
191 }
192
193 public static java.util.List<com.liferay.portal.model.UserTracker> findByUserId(
194 long userId, int start, int end,
195 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
196 throws com.liferay.portal.kernel.exception.SystemException {
197 return getPersistence()
198 .findByUserId(userId, start, end, orderByComparator);
199 }
200
201 public static com.liferay.portal.model.UserTracker findByUserId_First(
202 long userId,
203 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
204 throws com.liferay.portal.NoSuchUserTrackerException,
205 com.liferay.portal.kernel.exception.SystemException {
206 return getPersistence().findByUserId_First(userId, orderByComparator);
207 }
208
209 public static com.liferay.portal.model.UserTracker findByUserId_Last(
210 long userId,
211 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
212 throws com.liferay.portal.NoSuchUserTrackerException,
213 com.liferay.portal.kernel.exception.SystemException {
214 return getPersistence().findByUserId_Last(userId, orderByComparator);
215 }
216
217 public static com.liferay.portal.model.UserTracker[] findByUserId_PrevAndNext(
218 long userTrackerId, long userId,
219 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
220 throws com.liferay.portal.NoSuchUserTrackerException,
221 com.liferay.portal.kernel.exception.SystemException {
222 return getPersistence()
223 .findByUserId_PrevAndNext(userTrackerId, userId,
224 orderByComparator);
225 }
226
227 public static java.util.List<com.liferay.portal.model.UserTracker> findBySessionId(
228 java.lang.String sessionId)
229 throws com.liferay.portal.kernel.exception.SystemException {
230 return getPersistence().findBySessionId(sessionId);
231 }
232
233 public static java.util.List<com.liferay.portal.model.UserTracker> findBySessionId(
234 java.lang.String sessionId, int start, int end)
235 throws com.liferay.portal.kernel.exception.SystemException {
236 return getPersistence().findBySessionId(sessionId, start, end);
237 }
238
239 public static java.util.List<com.liferay.portal.model.UserTracker> findBySessionId(
240 java.lang.String sessionId, int start, int end,
241 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
242 throws com.liferay.portal.kernel.exception.SystemException {
243 return getPersistence()
244 .findBySessionId(sessionId, start, end, orderByComparator);
245 }
246
247 public static com.liferay.portal.model.UserTracker findBySessionId_First(
248 java.lang.String sessionId,
249 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
250 throws com.liferay.portal.NoSuchUserTrackerException,
251 com.liferay.portal.kernel.exception.SystemException {
252 return getPersistence()
253 .findBySessionId_First(sessionId, orderByComparator);
254 }
255
256 public static com.liferay.portal.model.UserTracker findBySessionId_Last(
257 java.lang.String sessionId,
258 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
259 throws com.liferay.portal.NoSuchUserTrackerException,
260 com.liferay.portal.kernel.exception.SystemException {
261 return getPersistence()
262 .findBySessionId_Last(sessionId, orderByComparator);
263 }
264
265 public static com.liferay.portal.model.UserTracker[] findBySessionId_PrevAndNext(
266 long userTrackerId, java.lang.String sessionId,
267 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
268 throws com.liferay.portal.NoSuchUserTrackerException,
269 com.liferay.portal.kernel.exception.SystemException {
270 return getPersistence()
271 .findBySessionId_PrevAndNext(userTrackerId, sessionId,
272 orderByComparator);
273 }
274
275 public static java.util.List<com.liferay.portal.model.UserTracker> findAll()
276 throws com.liferay.portal.kernel.exception.SystemException {
277 return getPersistence().findAll();
278 }
279
280 public static java.util.List<com.liferay.portal.model.UserTracker> findAll(
281 int start, int end)
282 throws com.liferay.portal.kernel.exception.SystemException {
283 return getPersistence().findAll(start, end);
284 }
285
286 public static java.util.List<com.liferay.portal.model.UserTracker> findAll(
287 int start, int end,
288 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
289 throws com.liferay.portal.kernel.exception.SystemException {
290 return getPersistence().findAll(start, end, orderByComparator);
291 }
292
293 public static void removeByCompanyId(long companyId)
294 throws com.liferay.portal.kernel.exception.SystemException {
295 getPersistence().removeByCompanyId(companyId);
296 }
297
298 public static void removeByUserId(long userId)
299 throws com.liferay.portal.kernel.exception.SystemException {
300 getPersistence().removeByUserId(userId);
301 }
302
303 public static void removeBySessionId(java.lang.String sessionId)
304 throws com.liferay.portal.kernel.exception.SystemException {
305 getPersistence().removeBySessionId(sessionId);
306 }
307
308 public static void removeAll()
309 throws com.liferay.portal.kernel.exception.SystemException {
310 getPersistence().removeAll();
311 }
312
313 public static int countByCompanyId(long companyId)
314 throws com.liferay.portal.kernel.exception.SystemException {
315 return getPersistence().countByCompanyId(companyId);
316 }
317
318 public static int countByUserId(long userId)
319 throws com.liferay.portal.kernel.exception.SystemException {
320 return getPersistence().countByUserId(userId);
321 }
322
323 public static int countBySessionId(java.lang.String sessionId)
324 throws com.liferay.portal.kernel.exception.SystemException {
325 return getPersistence().countBySessionId(sessionId);
326 }
327
328 public static int countAll()
329 throws com.liferay.portal.kernel.exception.SystemException {
330 return getPersistence().countAll();
331 }
332
333 public static UserTrackerPersistence getPersistence() {
334 if (_persistence == null) {
335 _persistence = (UserTrackerPersistence)PortalBeanLocatorUtil.locate(UserTrackerPersistence.class.getName());
336 }
337
338 return _persistence;
339 }
340
341 public void setPersistence(UserTrackerPersistence persistence) {
342 _persistence = persistence;
343 }
344
345 private static UserTrackerPersistence _persistence;
346 }