1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    *
5    *
6    *
7    * The contents of this file are subject to the terms of the Liferay Enterprise
8    * Subscription License ("License"). You may not use this file except in
9    * compliance with the License. You can obtain a copy of the License by
10   * contacting Liferay, Inc. See the License for the specific language governing
11   * permissions and limitations under the License, including but not limited to
12   * distribution rights of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portal.service.persistence;
24  
25  import com.liferay.portal.SystemException;
26  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
27  import com.liferay.portal.kernel.dao.orm.DynamicQuery;
28  import com.liferay.portal.model.UserTrackerPath;
29  
30  import java.util.List;
31  
32  /**
33   * <a href="UserTrackerPathUtil.java.html"><b><i>View Source</i></b></a>
34   *
35   * <p>
36   * ServiceBuilder generated this class. Modifications in this class will be
37   * overwritten the next time is generated.
38   * </p>
39   *
40   * @author    Brian Wing Shun Chan
41   * @see       UserTrackerPathPersistence
42   * @see       UserTrackerPathPersistenceImpl
43   * @generated
44   */
45  public class UserTrackerPathUtil {
46      /**
47       * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
48       */
49      public static void clearCache() {
50          getPersistence().clearCache();
51      }
52  
53      /**
54       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
55       */
56      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
57          throws SystemException {
58          return getPersistence().findWithDynamicQuery(dynamicQuery);
59      }
60  
61      /**
62       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
63       */
64      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
65          int start, int end) throws SystemException {
66          return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
67      }
68  
69      /**
70       * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
71       */
72      public static UserTrackerPath remove(UserTrackerPath userTrackerPath)
73          throws SystemException {
74          return getPersistence().remove(userTrackerPath);
75      }
76  
77      /**
78       * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
79       */
80      public static UserTrackerPath update(UserTrackerPath userTrackerPath,
81          boolean merge) throws SystemException {
82          return getPersistence().update(userTrackerPath, merge);
83      }
84  
85      public static void cacheResult(
86          com.liferay.portal.model.UserTrackerPath userTrackerPath) {
87          getPersistence().cacheResult(userTrackerPath);
88      }
89  
90      public static void cacheResult(
91          java.util.List<com.liferay.portal.model.UserTrackerPath> userTrackerPaths) {
92          getPersistence().cacheResult(userTrackerPaths);
93      }
94  
95      public static com.liferay.portal.model.UserTrackerPath create(
96          long userTrackerPathId) {
97          return getPersistence().create(userTrackerPathId);
98      }
99  
100     public static com.liferay.portal.model.UserTrackerPath remove(
101         long userTrackerPathId)
102         throws com.liferay.portal.NoSuchUserTrackerPathException,
103             com.liferay.portal.SystemException {
104         return getPersistence().remove(userTrackerPathId);
105     }
106 
107     /**
108      * @deprecated Use {@link com.liferay.portal.service.persistence.BasePersistence.#update(com.liferay.portal.model.BaseModel, boolean)}.
109      */
110     public static com.liferay.portal.model.UserTrackerPath update(
111         com.liferay.portal.model.UserTrackerPath userTrackerPath)
112         throws com.liferay.portal.SystemException {
113         return getPersistence().update(userTrackerPath);
114     }
115 
116     public static com.liferay.portal.model.UserTrackerPath updateImpl(
117         com.liferay.portal.model.UserTrackerPath userTrackerPath, boolean merge)
118         throws com.liferay.portal.SystemException {
119         return getPersistence().updateImpl(userTrackerPath, merge);
120     }
121 
122     public static com.liferay.portal.model.UserTrackerPath findByPrimaryKey(
123         long userTrackerPathId)
124         throws com.liferay.portal.NoSuchUserTrackerPathException,
125             com.liferay.portal.SystemException {
126         return getPersistence().findByPrimaryKey(userTrackerPathId);
127     }
128 
129     public static com.liferay.portal.model.UserTrackerPath fetchByPrimaryKey(
130         long userTrackerPathId) throws com.liferay.portal.SystemException {
131         return getPersistence().fetchByPrimaryKey(userTrackerPathId);
132     }
133 
134     public static java.util.List<com.liferay.portal.model.UserTrackerPath> findByUserTrackerId(
135         long userTrackerId) throws com.liferay.portal.SystemException {
136         return getPersistence().findByUserTrackerId(userTrackerId);
137     }
138 
139     public static java.util.List<com.liferay.portal.model.UserTrackerPath> findByUserTrackerId(
140         long userTrackerId, int start, int end)
141         throws com.liferay.portal.SystemException {
142         return getPersistence().findByUserTrackerId(userTrackerId, start, end);
143     }
144 
145     public static java.util.List<com.liferay.portal.model.UserTrackerPath> findByUserTrackerId(
146         long userTrackerId, int start, int end,
147         com.liferay.portal.kernel.util.OrderByComparator obc)
148         throws com.liferay.portal.SystemException {
149         return getPersistence()
150                    .findByUserTrackerId(userTrackerId, start, end, obc);
151     }
152 
153     public static com.liferay.portal.model.UserTrackerPath findByUserTrackerId_First(
154         long userTrackerId, com.liferay.portal.kernel.util.OrderByComparator obc)
155         throws com.liferay.portal.NoSuchUserTrackerPathException,
156             com.liferay.portal.SystemException {
157         return getPersistence().findByUserTrackerId_First(userTrackerId, obc);
158     }
159 
160     public static com.liferay.portal.model.UserTrackerPath findByUserTrackerId_Last(
161         long userTrackerId, com.liferay.portal.kernel.util.OrderByComparator obc)
162         throws com.liferay.portal.NoSuchUserTrackerPathException,
163             com.liferay.portal.SystemException {
164         return getPersistence().findByUserTrackerId_Last(userTrackerId, obc);
165     }
166 
167     public static com.liferay.portal.model.UserTrackerPath[] findByUserTrackerId_PrevAndNext(
168         long userTrackerPathId, long userTrackerId,
169         com.liferay.portal.kernel.util.OrderByComparator obc)
170         throws com.liferay.portal.NoSuchUserTrackerPathException,
171             com.liferay.portal.SystemException {
172         return getPersistence()
173                    .findByUserTrackerId_PrevAndNext(userTrackerPathId,
174             userTrackerId, obc);
175     }
176 
177     public static java.util.List<com.liferay.portal.model.UserTrackerPath> findAll()
178         throws com.liferay.portal.SystemException {
179         return getPersistence().findAll();
180     }
181 
182     public static java.util.List<com.liferay.portal.model.UserTrackerPath> findAll(
183         int start, int end) throws com.liferay.portal.SystemException {
184         return getPersistence().findAll(start, end);
185     }
186 
187     public static java.util.List<com.liferay.portal.model.UserTrackerPath> findAll(
188         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
189         throws com.liferay.portal.SystemException {
190         return getPersistence().findAll(start, end, obc);
191     }
192 
193     public static void removeByUserTrackerId(long userTrackerId)
194         throws com.liferay.portal.SystemException {
195         getPersistence().removeByUserTrackerId(userTrackerId);
196     }
197 
198     public static void removeAll() throws com.liferay.portal.SystemException {
199         getPersistence().removeAll();
200     }
201 
202     public static int countByUserTrackerId(long userTrackerId)
203         throws com.liferay.portal.SystemException {
204         return getPersistence().countByUserTrackerId(userTrackerId);
205     }
206 
207     public static int countAll() throws com.liferay.portal.SystemException {
208         return getPersistence().countAll();
209     }
210 
211     public static UserTrackerPathPersistence getPersistence() {
212         if (_persistence == null) {
213             _persistence = (UserTrackerPathPersistence)PortalBeanLocatorUtil.locate(UserTrackerPathPersistence.class.getName());
214         }
215 
216         return _persistence;
217     }
218 
219     public void setPersistence(UserTrackerPathPersistence persistence) {
220         _persistence = persistence;
221     }
222 
223     private static UserTrackerPathPersistence _persistence;
224 }