001: /**
002: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003: *
004: * Permission is hereby granted, free of charge, to any person obtaining a copy
005: * of this software and associated documentation files (the "Software"), to deal
006: * in the Software without restriction, including without limitation the rights
007: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008: * copies of the Software, and to permit persons to whom the Software is
009: * furnished to do so, subject to the following conditions:
010: *
011: * The above copyright notice and this permission notice shall be included in
012: * all copies or substantial portions of the Software.
013: *
014: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020: * SOFTWARE.
021: */package com.liferay.portal.service.persistence;
022:
023: /**
024: * <a href="UserTrackerUtil.java.html"><b><i>View Source</i></b></a>
025: *
026: * @author Brian Wing Shun Chan
027: *
028: */
029: public class UserTrackerUtil {
030: public static com.liferay.portal.model.UserTracker create(
031: long userTrackerId) {
032: return getPersistence().create(userTrackerId);
033: }
034:
035: public static com.liferay.portal.model.UserTracker remove(
036: long userTrackerId)
037: throws com.liferay.portal.SystemException,
038: com.liferay.portal.NoSuchUserTrackerException {
039: return getPersistence().remove(userTrackerId);
040: }
041:
042: public static com.liferay.portal.model.UserTracker remove(
043: com.liferay.portal.model.UserTracker userTracker)
044: throws com.liferay.portal.SystemException {
045: return getPersistence().remove(userTracker);
046: }
047:
048: public static com.liferay.portal.model.UserTracker update(
049: com.liferay.portal.model.UserTracker userTracker)
050: throws com.liferay.portal.SystemException {
051: return getPersistence().update(userTracker);
052: }
053:
054: public static com.liferay.portal.model.UserTracker update(
055: com.liferay.portal.model.UserTracker userTracker,
056: boolean merge) throws com.liferay.portal.SystemException {
057: return getPersistence().update(userTracker, merge);
058: }
059:
060: public static com.liferay.portal.model.UserTracker updateImpl(
061: com.liferay.portal.model.UserTracker userTracker,
062: boolean merge) throws com.liferay.portal.SystemException {
063: return getPersistence().updateImpl(userTracker, merge);
064: }
065:
066: public static com.liferay.portal.model.UserTracker findByPrimaryKey(
067: long userTrackerId)
068: throws com.liferay.portal.SystemException,
069: com.liferay.portal.NoSuchUserTrackerException {
070: return getPersistence().findByPrimaryKey(userTrackerId);
071: }
072:
073: public static com.liferay.portal.model.UserTracker fetchByPrimaryKey(
074: long userTrackerId)
075: throws com.liferay.portal.SystemException {
076: return getPersistence().fetchByPrimaryKey(userTrackerId);
077: }
078:
079: public static java.util.List findByCompanyId(long companyId)
080: throws com.liferay.portal.SystemException {
081: return getPersistence().findByCompanyId(companyId);
082: }
083:
084: public static java.util.List findByCompanyId(long companyId,
085: int begin, int end)
086: throws com.liferay.portal.SystemException {
087: return getPersistence().findByCompanyId(companyId, begin, end);
088: }
089:
090: public static java.util.List findByCompanyId(long companyId,
091: int begin, int end,
092: com.liferay.portal.kernel.util.OrderByComparator obc)
093: throws com.liferay.portal.SystemException {
094: return getPersistence().findByCompanyId(companyId, begin, end,
095: obc);
096: }
097:
098: public static com.liferay.portal.model.UserTracker findByCompanyId_First(
099: long companyId,
100: com.liferay.portal.kernel.util.OrderByComparator obc)
101: throws com.liferay.portal.SystemException,
102: com.liferay.portal.NoSuchUserTrackerException {
103: return getPersistence().findByCompanyId_First(companyId, obc);
104: }
105:
106: public static com.liferay.portal.model.UserTracker findByCompanyId_Last(
107: long companyId,
108: com.liferay.portal.kernel.util.OrderByComparator obc)
109: throws com.liferay.portal.SystemException,
110: com.liferay.portal.NoSuchUserTrackerException {
111: return getPersistence().findByCompanyId_Last(companyId, obc);
112: }
113:
114: public static com.liferay.portal.model.UserTracker[] findByCompanyId_PrevAndNext(
115: long userTrackerId, long companyId,
116: com.liferay.portal.kernel.util.OrderByComparator obc)
117: throws com.liferay.portal.SystemException,
118: com.liferay.portal.NoSuchUserTrackerException {
119: return getPersistence().findByCompanyId_PrevAndNext(
120: userTrackerId, companyId, obc);
121: }
122:
123: public static java.util.List findByUserId(long userId)
124: throws com.liferay.portal.SystemException {
125: return getPersistence().findByUserId(userId);
126: }
127:
128: public static java.util.List findByUserId(long userId, int begin,
129: int end) throws com.liferay.portal.SystemException {
130: return getPersistence().findByUserId(userId, begin, end);
131: }
132:
133: public static java.util.List findByUserId(long userId, int begin,
134: int end,
135: com.liferay.portal.kernel.util.OrderByComparator obc)
136: throws com.liferay.portal.SystemException {
137: return getPersistence().findByUserId(userId, begin, end, obc);
138: }
139:
140: public static com.liferay.portal.model.UserTracker findByUserId_First(
141: long userId,
142: com.liferay.portal.kernel.util.OrderByComparator obc)
143: throws com.liferay.portal.SystemException,
144: com.liferay.portal.NoSuchUserTrackerException {
145: return getPersistence().findByUserId_First(userId, obc);
146: }
147:
148: public static com.liferay.portal.model.UserTracker findByUserId_Last(
149: long userId,
150: com.liferay.portal.kernel.util.OrderByComparator obc)
151: throws com.liferay.portal.SystemException,
152: com.liferay.portal.NoSuchUserTrackerException {
153: return getPersistence().findByUserId_Last(userId, obc);
154: }
155:
156: public static com.liferay.portal.model.UserTracker[] findByUserId_PrevAndNext(
157: long userTrackerId, long userId,
158: com.liferay.portal.kernel.util.OrderByComparator obc)
159: throws com.liferay.portal.SystemException,
160: com.liferay.portal.NoSuchUserTrackerException {
161: return getPersistence().findByUserId_PrevAndNext(userTrackerId,
162: userId, obc);
163: }
164:
165: public static java.util.List findBySessionId(
166: java.lang.String sessionId)
167: throws com.liferay.portal.SystemException {
168: return getPersistence().findBySessionId(sessionId);
169: }
170:
171: public static java.util.List findBySessionId(
172: java.lang.String sessionId, int begin, int end)
173: throws com.liferay.portal.SystemException {
174: return getPersistence().findBySessionId(sessionId, begin, end);
175: }
176:
177: public static java.util.List findBySessionId(
178: java.lang.String sessionId, int begin, int end,
179: com.liferay.portal.kernel.util.OrderByComparator obc)
180: throws com.liferay.portal.SystemException {
181: return getPersistence().findBySessionId(sessionId, begin, end,
182: obc);
183: }
184:
185: public static com.liferay.portal.model.UserTracker findBySessionId_First(
186: java.lang.String sessionId,
187: com.liferay.portal.kernel.util.OrderByComparator obc)
188: throws com.liferay.portal.SystemException,
189: com.liferay.portal.NoSuchUserTrackerException {
190: return getPersistence().findBySessionId_First(sessionId, obc);
191: }
192:
193: public static com.liferay.portal.model.UserTracker findBySessionId_Last(
194: java.lang.String sessionId,
195: com.liferay.portal.kernel.util.OrderByComparator obc)
196: throws com.liferay.portal.SystemException,
197: com.liferay.portal.NoSuchUserTrackerException {
198: return getPersistence().findBySessionId_Last(sessionId, obc);
199: }
200:
201: public static com.liferay.portal.model.UserTracker[] findBySessionId_PrevAndNext(
202: long userTrackerId, java.lang.String sessionId,
203: com.liferay.portal.kernel.util.OrderByComparator obc)
204: throws com.liferay.portal.SystemException,
205: com.liferay.portal.NoSuchUserTrackerException {
206: return getPersistence().findBySessionId_PrevAndNext(
207: userTrackerId, sessionId, obc);
208: }
209:
210: public static java.util.List findWithDynamicQuery(
211: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
212: throws com.liferay.portal.SystemException {
213: return getPersistence().findWithDynamicQuery(queryInitializer);
214: }
215:
216: public static java.util.List findWithDynamicQuery(
217: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
218: int begin, int end)
219: throws com.liferay.portal.SystemException {
220: return getPersistence().findWithDynamicQuery(queryInitializer,
221: begin, end);
222: }
223:
224: public static java.util.List findAll()
225: throws com.liferay.portal.SystemException {
226: return getPersistence().findAll();
227: }
228:
229: public static java.util.List findAll(int begin, int end)
230: throws com.liferay.portal.SystemException {
231: return getPersistence().findAll(begin, end);
232: }
233:
234: public static java.util.List findAll(int begin, int end,
235: com.liferay.portal.kernel.util.OrderByComparator obc)
236: throws com.liferay.portal.SystemException {
237: return getPersistence().findAll(begin, end, obc);
238: }
239:
240: public static void removeByCompanyId(long companyId)
241: throws com.liferay.portal.SystemException {
242: getPersistence().removeByCompanyId(companyId);
243: }
244:
245: public static void removeByUserId(long userId)
246: throws com.liferay.portal.SystemException {
247: getPersistence().removeByUserId(userId);
248: }
249:
250: public static void removeBySessionId(java.lang.String sessionId)
251: throws com.liferay.portal.SystemException {
252: getPersistence().removeBySessionId(sessionId);
253: }
254:
255: public static void removeAll()
256: throws com.liferay.portal.SystemException {
257: getPersistence().removeAll();
258: }
259:
260: public static int countByCompanyId(long companyId)
261: throws com.liferay.portal.SystemException {
262: return getPersistence().countByCompanyId(companyId);
263: }
264:
265: public static int countByUserId(long userId)
266: throws com.liferay.portal.SystemException {
267: return getPersistence().countByUserId(userId);
268: }
269:
270: public static int countBySessionId(java.lang.String sessionId)
271: throws com.liferay.portal.SystemException {
272: return getPersistence().countBySessionId(sessionId);
273: }
274:
275: public static int countAll()
276: throws com.liferay.portal.SystemException {
277: return getPersistence().countAll();
278: }
279:
280: public static UserTrackerPersistence getPersistence() {
281: return _getUtil()._persistence;
282: }
283:
284: public void setPersistence(UserTrackerPersistence persistence) {
285: _persistence = persistence;
286: }
287:
288: private static UserTrackerUtil _getUtil() {
289: if (_util == null) {
290: _util = (UserTrackerUtil) com.liferay.portal.kernel.bean.BeanLocatorUtil
291: .locate(_UTIL);
292: }
293:
294: return _util;
295: }
296:
297: private static final String _UTIL = UserTrackerUtil.class.getName();
298: private static UserTrackerUtil _util;
299: private UserTrackerPersistence _persistence;
300: }
|