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