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#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.kernel.exception.SystemException {
96          return getPersistence().remove(userTrackerPathId);
97      }
98  
99      public static com.liferay.portal.model.UserTrackerPath updateImpl(
100         com.liferay.portal.model.UserTrackerPath userTrackerPath, boolean merge)
101         throws com.liferay.portal.kernel.exception.SystemException {
102         return getPersistence().updateImpl(userTrackerPath, merge);
103     }
104 
105     public static com.liferay.portal.model.UserTrackerPath findByPrimaryKey(
106         long userTrackerPathId)
107         throws com.liferay.portal.NoSuchUserTrackerPathException,
108             com.liferay.portal.kernel.exception.SystemException {
109         return getPersistence().findByPrimaryKey(userTrackerPathId);
110     }
111 
112     public static com.liferay.portal.model.UserTrackerPath fetchByPrimaryKey(
113         long userTrackerPathId)
114         throws com.liferay.portal.kernel.exception.SystemException {
115         return getPersistence().fetchByPrimaryKey(userTrackerPathId);
116     }
117 
118     public static java.util.List<com.liferay.portal.model.UserTrackerPath> findByUserTrackerId(
119         long userTrackerId)
120         throws com.liferay.portal.kernel.exception.SystemException {
121         return getPersistence().findByUserTrackerId(userTrackerId);
122     }
123 
124     public static java.util.List<com.liferay.portal.model.UserTrackerPath> findByUserTrackerId(
125         long userTrackerId, int start, int end)
126         throws com.liferay.portal.kernel.exception.SystemException {
127         return getPersistence().findByUserTrackerId(userTrackerId, start, end);
128     }
129 
130     public static java.util.List<com.liferay.portal.model.UserTrackerPath> findByUserTrackerId(
131         long userTrackerId, int start, int end,
132         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
133         throws com.liferay.portal.kernel.exception.SystemException {
134         return getPersistence()
135                    .findByUserTrackerId(userTrackerId, start, end,
136             orderByComparator);
137     }
138 
139     public static com.liferay.portal.model.UserTrackerPath findByUserTrackerId_First(
140         long userTrackerId,
141         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
142         throws com.liferay.portal.NoSuchUserTrackerPathException,
143             com.liferay.portal.kernel.exception.SystemException {
144         return getPersistence()
145                    .findByUserTrackerId_First(userTrackerId, orderByComparator);
146     }
147 
148     public static com.liferay.portal.model.UserTrackerPath findByUserTrackerId_Last(
149         long userTrackerId,
150         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
151         throws com.liferay.portal.NoSuchUserTrackerPathException,
152             com.liferay.portal.kernel.exception.SystemException {
153         return getPersistence()
154                    .findByUserTrackerId_Last(userTrackerId, orderByComparator);
155     }
156 
157     public static com.liferay.portal.model.UserTrackerPath[] findByUserTrackerId_PrevAndNext(
158         long userTrackerPathId, long userTrackerId,
159         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
160         throws com.liferay.portal.NoSuchUserTrackerPathException,
161             com.liferay.portal.kernel.exception.SystemException {
162         return getPersistence()
163                    .findByUserTrackerId_PrevAndNext(userTrackerPathId,
164             userTrackerId, orderByComparator);
165     }
166 
167     public static java.util.List<com.liferay.portal.model.UserTrackerPath> findAll()
168         throws com.liferay.portal.kernel.exception.SystemException {
169         return getPersistence().findAll();
170     }
171 
172     public static java.util.List<com.liferay.portal.model.UserTrackerPath> findAll(
173         int start, int end)
174         throws com.liferay.portal.kernel.exception.SystemException {
175         return getPersistence().findAll(start, end);
176     }
177 
178     public static java.util.List<com.liferay.portal.model.UserTrackerPath> findAll(
179         int start, int end,
180         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
181         throws com.liferay.portal.kernel.exception.SystemException {
182         return getPersistence().findAll(start, end, orderByComparator);
183     }
184 
185     public static void removeByUserTrackerId(long userTrackerId)
186         throws com.liferay.portal.kernel.exception.SystemException {
187         getPersistence().removeByUserTrackerId(userTrackerId);
188     }
189 
190     public static void removeAll()
191         throws com.liferay.portal.kernel.exception.SystemException {
192         getPersistence().removeAll();
193     }
194 
195     public static int countByUserTrackerId(long userTrackerId)
196         throws com.liferay.portal.kernel.exception.SystemException {
197         return getPersistence().countByUserTrackerId(userTrackerId);
198     }
199 
200     public static int countAll()
201         throws com.liferay.portal.kernel.exception.SystemException {
202         return getPersistence().countAll();
203     }
204 
205     public static UserTrackerPathPersistence getPersistence() {
206         if (_persistence == null) {
207             _persistence = (UserTrackerPathPersistence)PortalBeanLocatorUtil.locate(UserTrackerPathPersistence.class.getName());
208         }
209 
210         return _persistence;
211     }
212 
213     public void setPersistence(UserTrackerPathPersistence persistence) {
214         _persistence = persistence;
215     }
216 
217     private static UserTrackerPathPersistence _persistence;
218 }