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.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#findWithDynamicQuery(DynamicQuery)
47       */
48      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
49          throws SystemException {
50          return getPersistence().findWithDynamicQuery(dynamicQuery);
51      }
52  
53      /**
54       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
55       */
56      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
57          int start, int end) throws SystemException {
58          return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
59      }
60  
61      /**
62       * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
63       */
64      public static UserTrackerPath remove(UserTrackerPath userTrackerPath)
65          throws SystemException {
66          return getPersistence().remove(userTrackerPath);
67      }
68  
69      /**
70       * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
71       */
72      public static UserTrackerPath update(UserTrackerPath userTrackerPath,
73          boolean merge) throws SystemException {
74          return getPersistence().update(userTrackerPath, merge);
75      }
76  
77      public static void cacheResult(
78          com.liferay.portal.model.UserTrackerPath userTrackerPath) {
79          getPersistence().cacheResult(userTrackerPath);
80      }
81  
82      public static void cacheResult(
83          java.util.List<com.liferay.portal.model.UserTrackerPath> userTrackerPaths) {
84          getPersistence().cacheResult(userTrackerPaths);
85      }
86  
87      public static com.liferay.portal.model.UserTrackerPath create(
88          long userTrackerPathId) {
89          return getPersistence().create(userTrackerPathId);
90      }
91  
92      public static com.liferay.portal.model.UserTrackerPath remove(
93          long userTrackerPathId)
94          throws com.liferay.portal.NoSuchUserTrackerPathException,
95              com.liferay.portal.SystemException {
96          return getPersistence().remove(userTrackerPathId);
97      }
98  
99      /**
100      * @deprecated Use {@link com.liferay.portal.service.persistence.BasePersistence.#update(com.liferay.portal.model.BaseModel, boolean)}.
101      */
102     public static com.liferay.portal.model.UserTrackerPath update(
103         com.liferay.portal.model.UserTrackerPath userTrackerPath)
104         throws com.liferay.portal.SystemException {
105         return getPersistence().update(userTrackerPath);
106     }
107 
108     public static com.liferay.portal.model.UserTrackerPath updateImpl(
109         com.liferay.portal.model.UserTrackerPath userTrackerPath, boolean merge)
110         throws com.liferay.portal.SystemException {
111         return getPersistence().updateImpl(userTrackerPath, merge);
112     }
113 
114     public static com.liferay.portal.model.UserTrackerPath findByPrimaryKey(
115         long userTrackerPathId)
116         throws com.liferay.portal.NoSuchUserTrackerPathException,
117             com.liferay.portal.SystemException {
118         return getPersistence().findByPrimaryKey(userTrackerPathId);
119     }
120 
121     public static com.liferay.portal.model.UserTrackerPath fetchByPrimaryKey(
122         long userTrackerPathId) throws com.liferay.portal.SystemException {
123         return getPersistence().fetchByPrimaryKey(userTrackerPathId);
124     }
125 
126     public static java.util.List<com.liferay.portal.model.UserTrackerPath> findByUserTrackerId(
127         long userTrackerId) throws com.liferay.portal.SystemException {
128         return getPersistence().findByUserTrackerId(userTrackerId);
129     }
130 
131     public static java.util.List<com.liferay.portal.model.UserTrackerPath> findByUserTrackerId(
132         long userTrackerId, int start, int end)
133         throws com.liferay.portal.SystemException {
134         return getPersistence().findByUserTrackerId(userTrackerId, start, end);
135     }
136 
137     public static java.util.List<com.liferay.portal.model.UserTrackerPath> findByUserTrackerId(
138         long userTrackerId, int start, int end,
139         com.liferay.portal.kernel.util.OrderByComparator obc)
140         throws com.liferay.portal.SystemException {
141         return getPersistence()
142                    .findByUserTrackerId(userTrackerId, start, end, obc);
143     }
144 
145     public static com.liferay.portal.model.UserTrackerPath findByUserTrackerId_First(
146         long userTrackerId, com.liferay.portal.kernel.util.OrderByComparator obc)
147         throws com.liferay.portal.NoSuchUserTrackerPathException,
148             com.liferay.portal.SystemException {
149         return getPersistence().findByUserTrackerId_First(userTrackerId, obc);
150     }
151 
152     public static com.liferay.portal.model.UserTrackerPath findByUserTrackerId_Last(
153         long userTrackerId, com.liferay.portal.kernel.util.OrderByComparator obc)
154         throws com.liferay.portal.NoSuchUserTrackerPathException,
155             com.liferay.portal.SystemException {
156         return getPersistence().findByUserTrackerId_Last(userTrackerId, obc);
157     }
158 
159     public static com.liferay.portal.model.UserTrackerPath[] findByUserTrackerId_PrevAndNext(
160         long userTrackerPathId, long userTrackerId,
161         com.liferay.portal.kernel.util.OrderByComparator obc)
162         throws com.liferay.portal.NoSuchUserTrackerPathException,
163             com.liferay.portal.SystemException {
164         return getPersistence()
165                    .findByUserTrackerId_PrevAndNext(userTrackerPathId,
166             userTrackerId, obc);
167     }
168 
169     public static java.util.List<com.liferay.portal.model.UserTrackerPath> findAll()
170         throws com.liferay.portal.SystemException {
171         return getPersistence().findAll();
172     }
173 
174     public static java.util.List<com.liferay.portal.model.UserTrackerPath> findAll(
175         int start, int end) throws com.liferay.portal.SystemException {
176         return getPersistence().findAll(start, end);
177     }
178 
179     public static java.util.List<com.liferay.portal.model.UserTrackerPath> findAll(
180         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
181         throws com.liferay.portal.SystemException {
182         return getPersistence().findAll(start, end, obc);
183     }
184 
185     public static void removeByUserTrackerId(long userTrackerId)
186         throws com.liferay.portal.SystemException {
187         getPersistence().removeByUserTrackerId(userTrackerId);
188     }
189 
190     public static void removeAll() throws com.liferay.portal.SystemException {
191         getPersistence().removeAll();
192     }
193 
194     public static int countByUserTrackerId(long userTrackerId)
195         throws com.liferay.portal.SystemException {
196         return getPersistence().countByUserTrackerId(userTrackerId);
197     }
198 
199     public static int countAll() throws com.liferay.portal.SystemException {
200         return getPersistence().countAll();
201     }
202 
203     public static UserTrackerPathPersistence getPersistence() {
204         if (_persistence == null) {
205             _persistence = (UserTrackerPathPersistence)PortalBeanLocatorUtil.locate(UserTrackerPathPersistence.class.getName());
206         }
207 
208         return _persistence;
209     }
210 
211     public void setPersistence(UserTrackerPathPersistence persistence) {
212         _persistence = persistence;
213     }
214 
215     private static UserTrackerPathPersistence _persistence;
216 }