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="UserTrackerPathUtil.java.html"><b><i>View Source</i></b></a>
025: *
026: * @author Brian Wing Shun Chan
027: *
028: */
029: public class UserTrackerPathUtil {
030: public static com.liferay.portal.model.UserTrackerPath create(
031: long userTrackerPathId) {
032: return getPersistence().create(userTrackerPathId);
033: }
034:
035: public static com.liferay.portal.model.UserTrackerPath remove(
036: long userTrackerPathId)
037: throws com.liferay.portal.SystemException,
038: com.liferay.portal.NoSuchUserTrackerPathException {
039: return getPersistence().remove(userTrackerPathId);
040: }
041:
042: public static com.liferay.portal.model.UserTrackerPath remove(
043: com.liferay.portal.model.UserTrackerPath userTrackerPath)
044: throws com.liferay.portal.SystemException {
045: return getPersistence().remove(userTrackerPath);
046: }
047:
048: public static com.liferay.portal.model.UserTrackerPath update(
049: com.liferay.portal.model.UserTrackerPath userTrackerPath)
050: throws com.liferay.portal.SystemException {
051: return getPersistence().update(userTrackerPath);
052: }
053:
054: public static com.liferay.portal.model.UserTrackerPath update(
055: com.liferay.portal.model.UserTrackerPath userTrackerPath,
056: boolean merge) throws com.liferay.portal.SystemException {
057: return getPersistence().update(userTrackerPath, merge);
058: }
059:
060: public static com.liferay.portal.model.UserTrackerPath updateImpl(
061: com.liferay.portal.model.UserTrackerPath userTrackerPath,
062: boolean merge) throws com.liferay.portal.SystemException {
063: return getPersistence().updateImpl(userTrackerPath, merge);
064: }
065:
066: public static com.liferay.portal.model.UserTrackerPath findByPrimaryKey(
067: long userTrackerPathId)
068: throws com.liferay.portal.SystemException,
069: com.liferay.portal.NoSuchUserTrackerPathException {
070: return getPersistence().findByPrimaryKey(userTrackerPathId);
071: }
072:
073: public static com.liferay.portal.model.UserTrackerPath fetchByPrimaryKey(
074: long userTrackerPathId)
075: throws com.liferay.portal.SystemException {
076: return getPersistence().fetchByPrimaryKey(userTrackerPathId);
077: }
078:
079: public static java.util.List findByUserTrackerId(long userTrackerId)
080: throws com.liferay.portal.SystemException {
081: return getPersistence().findByUserTrackerId(userTrackerId);
082: }
083:
084: public static java.util.List findByUserTrackerId(
085: long userTrackerId, int begin, int end)
086: throws com.liferay.portal.SystemException {
087: return getPersistence().findByUserTrackerId(userTrackerId,
088: begin, end);
089: }
090:
091: public static java.util.List findByUserTrackerId(
092: long userTrackerId, int begin, int end,
093: com.liferay.portal.kernel.util.OrderByComparator obc)
094: throws com.liferay.portal.SystemException {
095: return getPersistence().findByUserTrackerId(userTrackerId,
096: begin, end, obc);
097: }
098:
099: public static com.liferay.portal.model.UserTrackerPath findByUserTrackerId_First(
100: long userTrackerId,
101: com.liferay.portal.kernel.util.OrderByComparator obc)
102: throws com.liferay.portal.SystemException,
103: com.liferay.portal.NoSuchUserTrackerPathException {
104: return getPersistence().findByUserTrackerId_First(
105: userTrackerId, obc);
106: }
107:
108: public static com.liferay.portal.model.UserTrackerPath findByUserTrackerId_Last(
109: long userTrackerId,
110: com.liferay.portal.kernel.util.OrderByComparator obc)
111: throws com.liferay.portal.SystemException,
112: com.liferay.portal.NoSuchUserTrackerPathException {
113: return getPersistence().findByUserTrackerId_Last(userTrackerId,
114: obc);
115: }
116:
117: public static com.liferay.portal.model.UserTrackerPath[] findByUserTrackerId_PrevAndNext(
118: long userTrackerPathId, long userTrackerId,
119: com.liferay.portal.kernel.util.OrderByComparator obc)
120: throws com.liferay.portal.SystemException,
121: com.liferay.portal.NoSuchUserTrackerPathException {
122: return getPersistence().findByUserTrackerId_PrevAndNext(
123: userTrackerPathId, userTrackerId, obc);
124: }
125:
126: public static java.util.List findWithDynamicQuery(
127: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
128: throws com.liferay.portal.SystemException {
129: return getPersistence().findWithDynamicQuery(queryInitializer);
130: }
131:
132: public static java.util.List findWithDynamicQuery(
133: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
134: int begin, int end)
135: throws com.liferay.portal.SystemException {
136: return getPersistence().findWithDynamicQuery(queryInitializer,
137: begin, end);
138: }
139:
140: public static java.util.List findAll()
141: throws com.liferay.portal.SystemException {
142: return getPersistence().findAll();
143: }
144:
145: public static java.util.List findAll(int begin, int end)
146: throws com.liferay.portal.SystemException {
147: return getPersistence().findAll(begin, end);
148: }
149:
150: public static java.util.List findAll(int begin, int end,
151: com.liferay.portal.kernel.util.OrderByComparator obc)
152: throws com.liferay.portal.SystemException {
153: return getPersistence().findAll(begin, end, obc);
154: }
155:
156: public static void removeByUserTrackerId(long userTrackerId)
157: throws com.liferay.portal.SystemException {
158: getPersistence().removeByUserTrackerId(userTrackerId);
159: }
160:
161: public static void removeAll()
162: throws com.liferay.portal.SystemException {
163: getPersistence().removeAll();
164: }
165:
166: public static int countByUserTrackerId(long userTrackerId)
167: throws com.liferay.portal.SystemException {
168: return getPersistence().countByUserTrackerId(userTrackerId);
169: }
170:
171: public static int countAll()
172: throws com.liferay.portal.SystemException {
173: return getPersistence().countAll();
174: }
175:
176: public static UserTrackerPathPersistence getPersistence() {
177: return _getUtil()._persistence;
178: }
179:
180: public void setPersistence(UserTrackerPathPersistence persistence) {
181: _persistence = persistence;
182: }
183:
184: private static UserTrackerPathUtil _getUtil() {
185: if (_util == null) {
186: _util = (UserTrackerPathUtil) com.liferay.portal.kernel.bean.BeanLocatorUtil
187: .locate(_UTIL);
188: }
189:
190: return _util;
191: }
192:
193: private static final String _UTIL = UserTrackerPathUtil.class
194: .getName();
195: private static UserTrackerPathUtil _util;
196: private UserTrackerPathPersistence _persistence;
197: }
|