001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
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.UserTrackerPath;
022    import com.liferay.portal.service.ServiceContext;
023    
024    import java.util.List;
025    
026    /**
027     * @author    Brian Wing Shun Chan
028     * @see       UserTrackerPathPersistence
029     * @see       UserTrackerPathPersistenceImpl
030     * @generated
031     */
032    public class UserTrackerPathUtil {
033            /**
034             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
035             */
036            public static void clearCache() {
037                    getPersistence().clearCache();
038            }
039    
040            /**
041             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel)
042             */
043            public static void clearCache(UserTrackerPath userTrackerPath) {
044                    getPersistence().clearCache(userTrackerPath);
045            }
046    
047            /**
048             * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
049             */
050            public long countWithDynamicQuery(DynamicQuery dynamicQuery)
051                    throws SystemException {
052                    return getPersistence().countWithDynamicQuery(dynamicQuery);
053            }
054    
055            /**
056             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
057             */
058            public static List<UserTrackerPath> findWithDynamicQuery(
059                    DynamicQuery dynamicQuery) throws SystemException {
060                    return getPersistence().findWithDynamicQuery(dynamicQuery);
061            }
062    
063            /**
064             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
065             */
066            public static List<UserTrackerPath> findWithDynamicQuery(
067                    DynamicQuery dynamicQuery, int start, int end)
068                    throws SystemException {
069                    return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
070            }
071    
072            /**
073             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
074             */
075            public static List<UserTrackerPath> 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            /**
084             * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
085             */
086            public static UserTrackerPath remove(UserTrackerPath userTrackerPath)
087                    throws SystemException {
088                    return getPersistence().remove(userTrackerPath);
089            }
090    
091            /**
092             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
093             */
094            public static UserTrackerPath update(UserTrackerPath userTrackerPath,
095                    boolean merge) throws SystemException {
096                    return getPersistence().update(userTrackerPath, merge);
097            }
098    
099            /**
100             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)
101             */
102            public static UserTrackerPath update(UserTrackerPath userTrackerPath,
103                    boolean merge, ServiceContext serviceContext) throws SystemException {
104                    return getPersistence().update(userTrackerPath, merge, serviceContext);
105            }
106    
107            public static void cacheResult(
108                    com.liferay.portal.model.UserTrackerPath userTrackerPath) {
109                    getPersistence().cacheResult(userTrackerPath);
110            }
111    
112            public static void cacheResult(
113                    java.util.List<com.liferay.portal.model.UserTrackerPath> userTrackerPaths) {
114                    getPersistence().cacheResult(userTrackerPaths);
115            }
116    
117            public static com.liferay.portal.model.UserTrackerPath create(
118                    long userTrackerPathId) {
119                    return getPersistence().create(userTrackerPathId);
120            }
121    
122            public static com.liferay.portal.model.UserTrackerPath remove(
123                    long userTrackerPathId)
124                    throws com.liferay.portal.NoSuchUserTrackerPathException,
125                            com.liferay.portal.kernel.exception.SystemException {
126                    return getPersistence().remove(userTrackerPathId);
127            }
128    
129            public static com.liferay.portal.model.UserTrackerPath updateImpl(
130                    com.liferay.portal.model.UserTrackerPath userTrackerPath, boolean merge)
131                    throws com.liferay.portal.kernel.exception.SystemException {
132                    return getPersistence().updateImpl(userTrackerPath, merge);
133            }
134    
135            public static com.liferay.portal.model.UserTrackerPath findByPrimaryKey(
136                    long userTrackerPathId)
137                    throws com.liferay.portal.NoSuchUserTrackerPathException,
138                            com.liferay.portal.kernel.exception.SystemException {
139                    return getPersistence().findByPrimaryKey(userTrackerPathId);
140            }
141    
142            public static com.liferay.portal.model.UserTrackerPath fetchByPrimaryKey(
143                    long userTrackerPathId)
144                    throws com.liferay.portal.kernel.exception.SystemException {
145                    return getPersistence().fetchByPrimaryKey(userTrackerPathId);
146            }
147    
148            public static java.util.List<com.liferay.portal.model.UserTrackerPath> findByUserTrackerId(
149                    long userTrackerId)
150                    throws com.liferay.portal.kernel.exception.SystemException {
151                    return getPersistence().findByUserTrackerId(userTrackerId);
152            }
153    
154            public static java.util.List<com.liferay.portal.model.UserTrackerPath> findByUserTrackerId(
155                    long userTrackerId, int start, int end)
156                    throws com.liferay.portal.kernel.exception.SystemException {
157                    return getPersistence().findByUserTrackerId(userTrackerId, start, end);
158            }
159    
160            public static java.util.List<com.liferay.portal.model.UserTrackerPath> findByUserTrackerId(
161                    long userTrackerId, int start, int end,
162                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
163                    throws com.liferay.portal.kernel.exception.SystemException {
164                    return getPersistence()
165                                       .findByUserTrackerId(userTrackerId, start, end,
166                            orderByComparator);
167            }
168    
169            public static com.liferay.portal.model.UserTrackerPath findByUserTrackerId_First(
170                    long userTrackerId,
171                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
172                    throws com.liferay.portal.NoSuchUserTrackerPathException,
173                            com.liferay.portal.kernel.exception.SystemException {
174                    return getPersistence()
175                                       .findByUserTrackerId_First(userTrackerId, orderByComparator);
176            }
177    
178            public static com.liferay.portal.model.UserTrackerPath findByUserTrackerId_Last(
179                    long userTrackerId,
180                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
181                    throws com.liferay.portal.NoSuchUserTrackerPathException,
182                            com.liferay.portal.kernel.exception.SystemException {
183                    return getPersistence()
184                                       .findByUserTrackerId_Last(userTrackerId, orderByComparator);
185            }
186    
187            public static com.liferay.portal.model.UserTrackerPath[] findByUserTrackerId_PrevAndNext(
188                    long userTrackerPathId, long userTrackerId,
189                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
190                    throws com.liferay.portal.NoSuchUserTrackerPathException,
191                            com.liferay.portal.kernel.exception.SystemException {
192                    return getPersistence()
193                                       .findByUserTrackerId_PrevAndNext(userTrackerPathId,
194                            userTrackerId, orderByComparator);
195            }
196    
197            public static java.util.List<com.liferay.portal.model.UserTrackerPath> findAll()
198                    throws com.liferay.portal.kernel.exception.SystemException {
199                    return getPersistence().findAll();
200            }
201    
202            public static java.util.List<com.liferay.portal.model.UserTrackerPath> findAll(
203                    int start, int end)
204                    throws com.liferay.portal.kernel.exception.SystemException {
205                    return getPersistence().findAll(start, end);
206            }
207    
208            public static java.util.List<com.liferay.portal.model.UserTrackerPath> findAll(
209                    int start, int end,
210                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
211                    throws com.liferay.portal.kernel.exception.SystemException {
212                    return getPersistence().findAll(start, end, orderByComparator);
213            }
214    
215            public static void removeByUserTrackerId(long userTrackerId)
216                    throws com.liferay.portal.kernel.exception.SystemException {
217                    getPersistence().removeByUserTrackerId(userTrackerId);
218            }
219    
220            public static void removeAll()
221                    throws com.liferay.portal.kernel.exception.SystemException {
222                    getPersistence().removeAll();
223            }
224    
225            public static int countByUserTrackerId(long userTrackerId)
226                    throws com.liferay.portal.kernel.exception.SystemException {
227                    return getPersistence().countByUserTrackerId(userTrackerId);
228            }
229    
230            public static int countAll()
231                    throws com.liferay.portal.kernel.exception.SystemException {
232                    return getPersistence().countAll();
233            }
234    
235            public static UserTrackerPathPersistence getPersistence() {
236                    if (_persistence == null) {
237                            _persistence = (UserTrackerPathPersistence)PortalBeanLocatorUtil.locate(UserTrackerPathPersistence.class.getName());
238                    }
239    
240                    return _persistence;
241            }
242    
243            public void setPersistence(UserTrackerPathPersistence persistence) {
244                    _persistence = persistence;
245            }
246    
247            private static UserTrackerPathPersistence _persistence;
248    }