1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portal.service.persistence;
16  
17  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18  import com.liferay.portal.kernel.dao.orm.DynamicQuery;
19  import com.liferay.portal.kernel.exception.SystemException;
20  import com.liferay.portal.model.UserTrackerPath;
21  
22  import java.util.List;
23  
24  /**
25   * <a href="UserTrackerPathUtil.java.html"><b><i>View Source</i></b></a>
26   *
27   * <p>
28   * ServiceBuilder generated this class. Modifications in this class will be
29   * overwritten the next time is generated.
30   * </p>
31   *
32   * @author    Brian Wing Shun Chan
33   * @see       UserTrackerPathPersistence
34   * @see       UserTrackerPathPersistenceImpl
35   * @generated
36   */
37  public class UserTrackerPathUtil {
38      /**
39       * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
40       */
41      public static void clearCache() {
42          getPersistence().clearCache();
43      }
44  
45      /**
46       * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(UserTrackerPath)
47       */
48      public static void clearCache(UserTrackerPath userTrackerPath) {
49          getPersistence().clearCache(userTrackerPath);
50      }
51  
52      /**
53       * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
54       */
55      public long countWithDynamicQuery(DynamicQuery dynamicQuery)
56          throws SystemException {
57          return getPersistence().countWithDynamicQuery(dynamicQuery);
58      }
59  
60      /**
61       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
62       */
63      public static List<UserTrackerPath> findWithDynamicQuery(
64          DynamicQuery dynamicQuery) throws SystemException {
65          return getPersistence().findWithDynamicQuery(dynamicQuery);
66      }
67  
68      /**
69       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
70       */
71      public static List<UserTrackerPath> findWithDynamicQuery(
72          DynamicQuery dynamicQuery, int start, int end)
73          throws SystemException {
74          return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
75      }
76  
77      /**
78       * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
79       */
80      public static UserTrackerPath remove(UserTrackerPath userTrackerPath)
81          throws SystemException {
82          return getPersistence().remove(userTrackerPath);
83      }
84  
85      /**
86       * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
87       */
88      public static UserTrackerPath update(UserTrackerPath userTrackerPath,
89          boolean merge) throws SystemException {
90          return getPersistence().update(userTrackerPath, merge);
91      }
92  
93      public static void cacheResult(
94          com.liferay.portal.model.UserTrackerPath userTrackerPath) {
95          getPersistence().cacheResult(userTrackerPath);
96      }
97  
98      public static void cacheResult(
99          java.util.List<com.liferay.portal.model.UserTrackerPath> userTrackerPaths) {
100         getPersistence().cacheResult(userTrackerPaths);
101     }
102 
103     public static com.liferay.portal.model.UserTrackerPath create(
104         long userTrackerPathId) {
105         return getPersistence().create(userTrackerPathId);
106     }
107 
108     public static com.liferay.portal.model.UserTrackerPath remove(
109         long userTrackerPathId)
110         throws com.liferay.portal.NoSuchUserTrackerPathException,
111             com.liferay.portal.kernel.exception.SystemException {
112         return getPersistence().remove(userTrackerPathId);
113     }
114 
115     public static com.liferay.portal.model.UserTrackerPath updateImpl(
116         com.liferay.portal.model.UserTrackerPath userTrackerPath, boolean merge)
117         throws com.liferay.portal.kernel.exception.SystemException {
118         return getPersistence().updateImpl(userTrackerPath, merge);
119     }
120 
121     public static com.liferay.portal.model.UserTrackerPath findByPrimaryKey(
122         long userTrackerPathId)
123         throws com.liferay.portal.NoSuchUserTrackerPathException,
124             com.liferay.portal.kernel.exception.SystemException {
125         return getPersistence().findByPrimaryKey(userTrackerPathId);
126     }
127 
128     public static com.liferay.portal.model.UserTrackerPath fetchByPrimaryKey(
129         long userTrackerPathId)
130         throws com.liferay.portal.kernel.exception.SystemException {
131         return getPersistence().fetchByPrimaryKey(userTrackerPathId);
132     }
133 
134     public static java.util.List<com.liferay.portal.model.UserTrackerPath> findByUserTrackerId(
135         long userTrackerId)
136         throws com.liferay.portal.kernel.exception.SystemException {
137         return getPersistence().findByUserTrackerId(userTrackerId);
138     }
139 
140     public static java.util.List<com.liferay.portal.model.UserTrackerPath> findByUserTrackerId(
141         long userTrackerId, int start, int end)
142         throws com.liferay.portal.kernel.exception.SystemException {
143         return getPersistence().findByUserTrackerId(userTrackerId, start, end);
144     }
145 
146     public static java.util.List<com.liferay.portal.model.UserTrackerPath> findByUserTrackerId(
147         long userTrackerId, int start, int end,
148         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
149         throws com.liferay.portal.kernel.exception.SystemException {
150         return getPersistence()
151                    .findByUserTrackerId(userTrackerId, start, end,
152             orderByComparator);
153     }
154 
155     public static com.liferay.portal.model.UserTrackerPath findByUserTrackerId_First(
156         long userTrackerId,
157         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
158         throws com.liferay.portal.NoSuchUserTrackerPathException,
159             com.liferay.portal.kernel.exception.SystemException {
160         return getPersistence()
161                    .findByUserTrackerId_First(userTrackerId, orderByComparator);
162     }
163 
164     public static com.liferay.portal.model.UserTrackerPath findByUserTrackerId_Last(
165         long userTrackerId,
166         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
167         throws com.liferay.portal.NoSuchUserTrackerPathException,
168             com.liferay.portal.kernel.exception.SystemException {
169         return getPersistence()
170                    .findByUserTrackerId_Last(userTrackerId, orderByComparator);
171     }
172 
173     public static com.liferay.portal.model.UserTrackerPath[] findByUserTrackerId_PrevAndNext(
174         long userTrackerPathId, long userTrackerId,
175         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
176         throws com.liferay.portal.NoSuchUserTrackerPathException,
177             com.liferay.portal.kernel.exception.SystemException {
178         return getPersistence()
179                    .findByUserTrackerId_PrevAndNext(userTrackerPathId,
180             userTrackerId, orderByComparator);
181     }
182 
183     public static java.util.List<com.liferay.portal.model.UserTrackerPath> findAll()
184         throws com.liferay.portal.kernel.exception.SystemException {
185         return getPersistence().findAll();
186     }
187 
188     public static java.util.List<com.liferay.portal.model.UserTrackerPath> findAll(
189         int start, int end)
190         throws com.liferay.portal.kernel.exception.SystemException {
191         return getPersistence().findAll(start, end);
192     }
193 
194     public static java.util.List<com.liferay.portal.model.UserTrackerPath> findAll(
195         int start, int end,
196         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
197         throws com.liferay.portal.kernel.exception.SystemException {
198         return getPersistence().findAll(start, end, orderByComparator);
199     }
200 
201     public static void removeByUserTrackerId(long userTrackerId)
202         throws com.liferay.portal.kernel.exception.SystemException {
203         getPersistence().removeByUserTrackerId(userTrackerId);
204     }
205 
206     public static void removeAll()
207         throws com.liferay.portal.kernel.exception.SystemException {
208         getPersistence().removeAll();
209     }
210 
211     public static int countByUserTrackerId(long userTrackerId)
212         throws com.liferay.portal.kernel.exception.SystemException {
213         return getPersistence().countByUserTrackerId(userTrackerId);
214     }
215 
216     public static int countAll()
217         throws com.liferay.portal.kernel.exception.SystemException {
218         return getPersistence().countAll();
219     }
220 
221     public static UserTrackerPathPersistence getPersistence() {
222         if (_persistence == null) {
223             _persistence = (UserTrackerPathPersistence)PortalBeanLocatorUtil.locate(UserTrackerPathPersistence.class.getName());
224         }
225 
226         return _persistence;
227     }
228 
229     public void setPersistence(UserTrackerPathPersistence persistence) {
230         _persistence = persistence;
231     }
232 
233     private static UserTrackerPathPersistence _persistence;
234 }