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     * The persistence utility for the user tracker path service. This utility wraps {@link UserTrackerPathPersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
028     *
029     * <p>
030     * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class.
031     * </p>
032     *
033     * <p>
034     * Caching information and settings can be found in <code>portal.properties</code>
035     * </p>
036     *
037     * @author Brian Wing Shun Chan
038     * @see UserTrackerPathPersistence
039     * @see UserTrackerPathPersistenceImpl
040     * @generated
041     */
042    public class UserTrackerPathUtil {
043            /**
044             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
045             */
046            public static void clearCache() {
047                    getPersistence().clearCache();
048            }
049    
050            /**
051             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel)
052             */
053            public static void clearCache(UserTrackerPath userTrackerPath) {
054                    getPersistence().clearCache(userTrackerPath);
055            }
056    
057            /**
058             * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
059             */
060            public long countWithDynamicQuery(DynamicQuery dynamicQuery)
061                    throws SystemException {
062                    return getPersistence().countWithDynamicQuery(dynamicQuery);
063            }
064    
065            /**
066             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
067             */
068            public static List<UserTrackerPath> findWithDynamicQuery(
069                    DynamicQuery dynamicQuery) throws SystemException {
070                    return getPersistence().findWithDynamicQuery(dynamicQuery);
071            }
072    
073            /**
074             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
075             */
076            public static List<UserTrackerPath> findWithDynamicQuery(
077                    DynamicQuery dynamicQuery, int start, int end)
078                    throws SystemException {
079                    return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
080            }
081    
082            /**
083             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
084             */
085            public static List<UserTrackerPath> findWithDynamicQuery(
086                    DynamicQuery dynamicQuery, int start, int end,
087                    OrderByComparator orderByComparator) throws SystemException {
088                    return getPersistence()
089                                       .findWithDynamicQuery(dynamicQuery, start, end,
090                            orderByComparator);
091            }
092    
093            /**
094             * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
095             */
096            public static UserTrackerPath remove(UserTrackerPath userTrackerPath)
097                    throws SystemException {
098                    return getPersistence().remove(userTrackerPath);
099            }
100    
101            /**
102             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
103             */
104            public static UserTrackerPath update(UserTrackerPath userTrackerPath,
105                    boolean merge) throws SystemException {
106                    return getPersistence().update(userTrackerPath, merge);
107            }
108    
109            /**
110             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)
111             */
112            public static UserTrackerPath update(UserTrackerPath userTrackerPath,
113                    boolean merge, ServiceContext serviceContext) throws SystemException {
114                    return getPersistence().update(userTrackerPath, merge, serviceContext);
115            }
116    
117            /**
118            * Caches the user tracker path in the entity cache if it is enabled.
119            *
120            * @param userTrackerPath the user tracker path to cache
121            */
122            public static void cacheResult(
123                    com.liferay.portal.model.UserTrackerPath userTrackerPath) {
124                    getPersistence().cacheResult(userTrackerPath);
125            }
126    
127            /**
128            * Caches the user tracker paths in the entity cache if it is enabled.
129            *
130            * @param userTrackerPaths the user tracker paths to cache
131            */
132            public static void cacheResult(
133                    java.util.List<com.liferay.portal.model.UserTrackerPath> userTrackerPaths) {
134                    getPersistence().cacheResult(userTrackerPaths);
135            }
136    
137            /**
138            * Creates a new user tracker path with the primary key. Does not add the user tracker path to the database.
139            *
140            * @param userTrackerPathId the primary key for the new user tracker path
141            * @return the new user tracker path
142            */
143            public static com.liferay.portal.model.UserTrackerPath create(
144                    long userTrackerPathId) {
145                    return getPersistence().create(userTrackerPathId);
146            }
147    
148            /**
149            * Removes the user tracker path with the primary key from the database. Also notifies the appropriate model listeners.
150            *
151            * @param userTrackerPathId the primary key of the user tracker path to remove
152            * @return the user tracker path that was removed
153            * @throws com.liferay.portal.NoSuchUserTrackerPathException if a user tracker path with the primary key could not be found
154            * @throws SystemException if a system exception occurred
155            */
156            public static com.liferay.portal.model.UserTrackerPath remove(
157                    long userTrackerPathId)
158                    throws com.liferay.portal.NoSuchUserTrackerPathException,
159                            com.liferay.portal.kernel.exception.SystemException {
160                    return getPersistence().remove(userTrackerPathId);
161            }
162    
163            public static com.liferay.portal.model.UserTrackerPath updateImpl(
164                    com.liferay.portal.model.UserTrackerPath userTrackerPath, boolean merge)
165                    throws com.liferay.portal.kernel.exception.SystemException {
166                    return getPersistence().updateImpl(userTrackerPath, merge);
167            }
168    
169            /**
170            * Finds the user tracker path with the primary key or throws a {@link com.liferay.portal.NoSuchUserTrackerPathException} if it could not be found.
171            *
172            * @param userTrackerPathId the primary key of the user tracker path to find
173            * @return the user tracker path
174            * @throws com.liferay.portal.NoSuchUserTrackerPathException if a user tracker path with the primary key could not be found
175            * @throws SystemException if a system exception occurred
176            */
177            public static com.liferay.portal.model.UserTrackerPath findByPrimaryKey(
178                    long userTrackerPathId)
179                    throws com.liferay.portal.NoSuchUserTrackerPathException,
180                            com.liferay.portal.kernel.exception.SystemException {
181                    return getPersistence().findByPrimaryKey(userTrackerPathId);
182            }
183    
184            /**
185            * Finds the user tracker path with the primary key or returns <code>null</code> if it could not be found.
186            *
187            * @param userTrackerPathId the primary key of the user tracker path to find
188            * @return the user tracker path, or <code>null</code> if a user tracker path with the primary key could not be found
189            * @throws SystemException if a system exception occurred
190            */
191            public static com.liferay.portal.model.UserTrackerPath fetchByPrimaryKey(
192                    long userTrackerPathId)
193                    throws com.liferay.portal.kernel.exception.SystemException {
194                    return getPersistence().fetchByPrimaryKey(userTrackerPathId);
195            }
196    
197            /**
198            * Finds all the user tracker paths where userTrackerId = &#63;.
199            *
200            * @param userTrackerId the user tracker id to search with
201            * @return the matching user tracker paths
202            * @throws SystemException if a system exception occurred
203            */
204            public static java.util.List<com.liferay.portal.model.UserTrackerPath> findByUserTrackerId(
205                    long userTrackerId)
206                    throws com.liferay.portal.kernel.exception.SystemException {
207                    return getPersistence().findByUserTrackerId(userTrackerId);
208            }
209    
210            /**
211            * Finds a range of all the user tracker paths where userTrackerId = &#63;.
212            *
213            * <p>
214            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
215            * </p>
216            *
217            * @param userTrackerId the user tracker id to search with
218            * @param start the lower bound of the range of user tracker paths to return
219            * @param end the upper bound of the range of user tracker paths to return (not inclusive)
220            * @return the range of matching user tracker paths
221            * @throws SystemException if a system exception occurred
222            */
223            public static java.util.List<com.liferay.portal.model.UserTrackerPath> findByUserTrackerId(
224                    long userTrackerId, int start, int end)
225                    throws com.liferay.portal.kernel.exception.SystemException {
226                    return getPersistence().findByUserTrackerId(userTrackerId, start, end);
227            }
228    
229            /**
230            * Finds an ordered range of all the user tracker paths where userTrackerId = &#63;.
231            *
232            * <p>
233            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
234            * </p>
235            *
236            * @param userTrackerId the user tracker id to search with
237            * @param start the lower bound of the range of user tracker paths to return
238            * @param end the upper bound of the range of user tracker paths to return (not inclusive)
239            * @param orderByComparator the comparator to order the results by
240            * @return the ordered range of matching user tracker paths
241            * @throws SystemException if a system exception occurred
242            */
243            public static java.util.List<com.liferay.portal.model.UserTrackerPath> findByUserTrackerId(
244                    long userTrackerId, int start, int end,
245                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
246                    throws com.liferay.portal.kernel.exception.SystemException {
247                    return getPersistence()
248                                       .findByUserTrackerId(userTrackerId, start, end,
249                            orderByComparator);
250            }
251    
252            /**
253            * Finds the first user tracker path in the ordered set where userTrackerId = &#63;.
254            *
255            * <p>
256            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
257            * </p>
258            *
259            * @param userTrackerId the user tracker id to search with
260            * @param orderByComparator the comparator to order the set by
261            * @return the first matching user tracker path
262            * @throws com.liferay.portal.NoSuchUserTrackerPathException if a matching user tracker path could not be found
263            * @throws SystemException if a system exception occurred
264            */
265            public static com.liferay.portal.model.UserTrackerPath findByUserTrackerId_First(
266                    long userTrackerId,
267                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
268                    throws com.liferay.portal.NoSuchUserTrackerPathException,
269                            com.liferay.portal.kernel.exception.SystemException {
270                    return getPersistence()
271                                       .findByUserTrackerId_First(userTrackerId, orderByComparator);
272            }
273    
274            /**
275            * Finds the last user tracker path in the ordered set where userTrackerId = &#63;.
276            *
277            * <p>
278            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
279            * </p>
280            *
281            * @param userTrackerId the user tracker id to search with
282            * @param orderByComparator the comparator to order the set by
283            * @return the last matching user tracker path
284            * @throws com.liferay.portal.NoSuchUserTrackerPathException if a matching user tracker path could not be found
285            * @throws SystemException if a system exception occurred
286            */
287            public static com.liferay.portal.model.UserTrackerPath findByUserTrackerId_Last(
288                    long userTrackerId,
289                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
290                    throws com.liferay.portal.NoSuchUserTrackerPathException,
291                            com.liferay.portal.kernel.exception.SystemException {
292                    return getPersistence()
293                                       .findByUserTrackerId_Last(userTrackerId, orderByComparator);
294            }
295    
296            /**
297            * Finds the user tracker paths before and after the current user tracker path in the ordered set where userTrackerId = &#63;.
298            *
299            * <p>
300            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
301            * </p>
302            *
303            * @param userTrackerPathId the primary key of the current user tracker path
304            * @param userTrackerId the user tracker id to search with
305            * @param orderByComparator the comparator to order the set by
306            * @return the previous, current, and next user tracker path
307            * @throws com.liferay.portal.NoSuchUserTrackerPathException if a user tracker path with the primary key could not be found
308            * @throws SystemException if a system exception occurred
309            */
310            public static com.liferay.portal.model.UserTrackerPath[] findByUserTrackerId_PrevAndNext(
311                    long userTrackerPathId, long userTrackerId,
312                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
313                    throws com.liferay.portal.NoSuchUserTrackerPathException,
314                            com.liferay.portal.kernel.exception.SystemException {
315                    return getPersistence()
316                                       .findByUserTrackerId_PrevAndNext(userTrackerPathId,
317                            userTrackerId, orderByComparator);
318            }
319    
320            /**
321            * Finds all the user tracker paths.
322            *
323            * @return the user tracker paths
324            * @throws SystemException if a system exception occurred
325            */
326            public static java.util.List<com.liferay.portal.model.UserTrackerPath> findAll()
327                    throws com.liferay.portal.kernel.exception.SystemException {
328                    return getPersistence().findAll();
329            }
330    
331            /**
332            * Finds a range of all the user tracker paths.
333            *
334            * <p>
335            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
336            * </p>
337            *
338            * @param start the lower bound of the range of user tracker paths to return
339            * @param end the upper bound of the range of user tracker paths to return (not inclusive)
340            * @return the range of user tracker paths
341            * @throws SystemException if a system exception occurred
342            */
343            public static java.util.List<com.liferay.portal.model.UserTrackerPath> findAll(
344                    int start, int end)
345                    throws com.liferay.portal.kernel.exception.SystemException {
346                    return getPersistence().findAll(start, end);
347            }
348    
349            /**
350            * Finds an ordered range of all the user tracker paths.
351            *
352            * <p>
353            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
354            * </p>
355            *
356            * @param start the lower bound of the range of user tracker paths to return
357            * @param end the upper bound of the range of user tracker paths to return (not inclusive)
358            * @param orderByComparator the comparator to order the results by
359            * @return the ordered range of user tracker paths
360            * @throws SystemException if a system exception occurred
361            */
362            public static java.util.List<com.liferay.portal.model.UserTrackerPath> findAll(
363                    int start, int end,
364                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
365                    throws com.liferay.portal.kernel.exception.SystemException {
366                    return getPersistence().findAll(start, end, orderByComparator);
367            }
368    
369            /**
370            * Removes all the user tracker paths where userTrackerId = &#63; from the database.
371            *
372            * @param userTrackerId the user tracker id to search with
373            * @throws SystemException if a system exception occurred
374            */
375            public static void removeByUserTrackerId(long userTrackerId)
376                    throws com.liferay.portal.kernel.exception.SystemException {
377                    getPersistence().removeByUserTrackerId(userTrackerId);
378            }
379    
380            /**
381            * Removes all the user tracker paths from the database.
382            *
383            * @throws SystemException if a system exception occurred
384            */
385            public static void removeAll()
386                    throws com.liferay.portal.kernel.exception.SystemException {
387                    getPersistence().removeAll();
388            }
389    
390            /**
391            * Counts all the user tracker paths where userTrackerId = &#63;.
392            *
393            * @param userTrackerId the user tracker id to search with
394            * @return the number of matching user tracker paths
395            * @throws SystemException if a system exception occurred
396            */
397            public static int countByUserTrackerId(long userTrackerId)
398                    throws com.liferay.portal.kernel.exception.SystemException {
399                    return getPersistence().countByUserTrackerId(userTrackerId);
400            }
401    
402            /**
403            * Counts all the user tracker paths.
404            *
405            * @return the number of user tracker paths
406            * @throws SystemException if a system exception occurred
407            */
408            public static int countAll()
409                    throws com.liferay.portal.kernel.exception.SystemException {
410                    return getPersistence().countAll();
411            }
412    
413            public static UserTrackerPathPersistence getPersistence() {
414                    if (_persistence == null) {
415                            _persistence = (UserTrackerPathPersistence)PortalBeanLocatorUtil.locate(UserTrackerPathPersistence.class.getName());
416                    }
417    
418                    return _persistence;
419            }
420    
421            public void setPersistence(UserTrackerPathPersistence persistence) {
422                    _persistence = persistence;
423            }
424    
425            private static UserTrackerPathPersistence _persistence;
426    }