1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   *
13   */
14  
15  package com.liferay.portal.service.persistence;
16  
17  import com.liferay.portal.SystemException;
18  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
19  import com.liferay.portal.kernel.dao.orm.DynamicQuery;
20  import com.liferay.portal.kernel.util.ReferenceRegistry;
21  import com.liferay.portal.model.UserTrackerPath;
22  
23  import java.util.List;
24  
25  /**
26   * <a href="UserTrackerPathUtil.java.html"><b><i>View Source</i></b></a>
27   *
28   * <p>
29   * ServiceBuilder generated this class. Modifications in this class will be
30   * overwritten the next time is generated.
31   * </p>
32   *
33   * @author    Brian Wing Shun Chan
34   * @see       UserTrackerPathPersistence
35   * @see       UserTrackerPathPersistenceImpl
36   * @generated
37   */
38  public class UserTrackerPathUtil {
39      /**
40       * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
41       */
42      public static void clearCache() {
43          getPersistence().clearCache();
44      }
45  
46      /**
47       * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(UserTrackerPath)
48       */
49      public static void clearCache(UserTrackerPath userTrackerPath) {
50          getPersistence().clearCache(userTrackerPath);
51      }
52  
53      /**
54       * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
55       */
56      public int countWithDynamicQuery(DynamicQuery dynamicQuery)
57          throws SystemException {
58          return getPersistence().countWithDynamicQuery(dynamicQuery);
59      }
60  
61      /**
62       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
63       */
64      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
65          throws SystemException {
66          return getPersistence().findWithDynamicQuery(dynamicQuery);
67      }
68  
69      /**
70       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
71       */
72      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
73          int start, int end) 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.SystemException {
112         return getPersistence().remove(userTrackerPathId);
113     }
114 
115     /**
116      * @deprecated Use {@link com.liferay.portal.service.persistence.BasePersistence.#update(com.liferay.portal.model.BaseModel, boolean)}.
117      */
118     public static com.liferay.portal.model.UserTrackerPath update(
119         com.liferay.portal.model.UserTrackerPath userTrackerPath)
120         throws com.liferay.portal.SystemException {
121         return getPersistence().update(userTrackerPath);
122     }
123 
124     public static com.liferay.portal.model.UserTrackerPath updateImpl(
125         com.liferay.portal.model.UserTrackerPath userTrackerPath, boolean merge)
126         throws com.liferay.portal.SystemException {
127         return getPersistence().updateImpl(userTrackerPath, merge);
128     }
129 
130     public static com.liferay.portal.model.UserTrackerPath findByPrimaryKey(
131         long userTrackerPathId)
132         throws com.liferay.portal.NoSuchUserTrackerPathException,
133             com.liferay.portal.SystemException {
134         return getPersistence().findByPrimaryKey(userTrackerPathId);
135     }
136 
137     public static com.liferay.portal.model.UserTrackerPath fetchByPrimaryKey(
138         long userTrackerPathId) throws com.liferay.portal.SystemException {
139         return getPersistence().fetchByPrimaryKey(userTrackerPathId);
140     }
141 
142     public static java.util.List<com.liferay.portal.model.UserTrackerPath> findByUserTrackerId(
143         long userTrackerId) throws com.liferay.portal.SystemException {
144         return getPersistence().findByUserTrackerId(userTrackerId);
145     }
146 
147     public static java.util.List<com.liferay.portal.model.UserTrackerPath> findByUserTrackerId(
148         long userTrackerId, int start, int end)
149         throws com.liferay.portal.SystemException {
150         return getPersistence().findByUserTrackerId(userTrackerId, start, end);
151     }
152 
153     public static java.util.List<com.liferay.portal.model.UserTrackerPath> findByUserTrackerId(
154         long userTrackerId, int start, int end,
155         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
156         throws com.liferay.portal.SystemException {
157         return getPersistence()
158                    .findByUserTrackerId(userTrackerId, start, end,
159             orderByComparator);
160     }
161 
162     public static com.liferay.portal.model.UserTrackerPath findByUserTrackerId_First(
163         long userTrackerId,
164         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
165         throws com.liferay.portal.NoSuchUserTrackerPathException,
166             com.liferay.portal.SystemException {
167         return getPersistence()
168                    .findByUserTrackerId_First(userTrackerId, orderByComparator);
169     }
170 
171     public static com.liferay.portal.model.UserTrackerPath findByUserTrackerId_Last(
172         long userTrackerId,
173         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
174         throws com.liferay.portal.NoSuchUserTrackerPathException,
175             com.liferay.portal.SystemException {
176         return getPersistence()
177                    .findByUserTrackerId_Last(userTrackerId, orderByComparator);
178     }
179 
180     public static com.liferay.portal.model.UserTrackerPath[] findByUserTrackerId_PrevAndNext(
181         long userTrackerPathId, long userTrackerId,
182         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
183         throws com.liferay.portal.NoSuchUserTrackerPathException,
184             com.liferay.portal.SystemException {
185         return getPersistence()
186                    .findByUserTrackerId_PrevAndNext(userTrackerPathId,
187             userTrackerId, orderByComparator);
188     }
189 
190     public static java.util.List<com.liferay.portal.model.UserTrackerPath> findAll()
191         throws com.liferay.portal.SystemException {
192         return getPersistence().findAll();
193     }
194 
195     public static java.util.List<com.liferay.portal.model.UserTrackerPath> findAll(
196         int start, int end) throws com.liferay.portal.SystemException {
197         return getPersistence().findAll(start, end);
198     }
199 
200     public static java.util.List<com.liferay.portal.model.UserTrackerPath> findAll(
201         int start, int end,
202         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
203         throws com.liferay.portal.SystemException {
204         return getPersistence().findAll(start, end, orderByComparator);
205     }
206 
207     public static void removeByUserTrackerId(long userTrackerId)
208         throws com.liferay.portal.SystemException {
209         getPersistence().removeByUserTrackerId(userTrackerId);
210     }
211 
212     public static void removeAll() throws com.liferay.portal.SystemException {
213         getPersistence().removeAll();
214     }
215 
216     public static int countByUserTrackerId(long userTrackerId)
217         throws com.liferay.portal.SystemException {
218         return getPersistence().countByUserTrackerId(userTrackerId);
219     }
220 
221     public static int countAll() throws com.liferay.portal.SystemException {
222         return getPersistence().countAll();
223     }
224 
225     public static UserTrackerPathPersistence getPersistence() {
226         if (_persistence == null) {
227             _persistence = (UserTrackerPathPersistence)PortalBeanLocatorUtil.locate(UserTrackerPathPersistence.class.getName());
228 
229             ReferenceRegistry.registerReference(UserTrackerPathUtil.class,
230                 "_persistence");
231         }
232 
233         return _persistence;
234     }
235 
236     public void setPersistence(UserTrackerPathPersistence persistence) {
237         _persistence = persistence;
238 
239         ReferenceRegistry.registerReference(UserTrackerPathUtil.class,
240             "_persistence");
241     }
242 
243     private static UserTrackerPathPersistence _persistence;
244 }