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  
26  /**
27   * <a href="UserTrackerPathUtil.java.html"><b><i>View Source</i></b></a>
28   *
29   * <p>
30   * ServiceBuilder generated this class. Modifications in this class will be
31   * overwritten the next time is generated.
32   * </p>
33   *
34   * @author    Brian Wing Shun Chan
35   * @see       UserTrackerPathPersistence
36   * @see       UserTrackerPathPersistenceImpl
37   * @generated
38   */
39  public class UserTrackerPathUtil {
40      public static void cacheResult(
41          com.liferay.portal.model.UserTrackerPath userTrackerPath) {
42          getPersistence().cacheResult(userTrackerPath);
43      }
44  
45      public static void cacheResult(
46          java.util.List<com.liferay.portal.model.UserTrackerPath> userTrackerPaths) {
47          getPersistence().cacheResult(userTrackerPaths);
48      }
49  
50      public static void clearCache() {
51          getPersistence().clearCache();
52      }
53  
54      public static com.liferay.portal.model.UserTrackerPath create(
55          long userTrackerPathId) {
56          return getPersistence().create(userTrackerPathId);
57      }
58  
59      public static com.liferay.portal.model.UserTrackerPath remove(
60          long userTrackerPathId)
61          throws com.liferay.portal.NoSuchUserTrackerPathException,
62              com.liferay.portal.SystemException {
63          return getPersistence().remove(userTrackerPathId);
64      }
65  
66      public static com.liferay.portal.model.UserTrackerPath remove(
67          com.liferay.portal.model.UserTrackerPath userTrackerPath)
68          throws com.liferay.portal.SystemException {
69          return getPersistence().remove(userTrackerPath);
70      }
71  
72      /**
73       * @deprecated Use {@link #update(UserTrackerPath, boolean merge)}.
74       */
75      public static com.liferay.portal.model.UserTrackerPath update(
76          com.liferay.portal.model.UserTrackerPath userTrackerPath)
77          throws com.liferay.portal.SystemException {
78          return getPersistence().update(userTrackerPath);
79      }
80  
81      /**
82       * Add, update, or merge, the entity. This method also calls the model
83       * listeners to trigger the proper events associated with adding, deleting,
84       * or updating an entity.
85       *
86       * @param  userTrackerPath the entity to add, update, or merge
87       * @param  merge boolean value for whether to merge the entity. The default
88       *         value is false. Setting merge to true is more expensive and
89       *         should only be true when userTrackerPath is transient. See
90       *         LEP-5473 for a detailed discussion of this method.
91       * @return the entity that was added, updated, or merged
92       */
93      public static com.liferay.portal.model.UserTrackerPath update(
94          com.liferay.portal.model.UserTrackerPath userTrackerPath, boolean merge)
95          throws com.liferay.portal.SystemException {
96          return getPersistence().update(userTrackerPath, merge);
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.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.SystemException {
109         return getPersistence().findByPrimaryKey(userTrackerPathId);
110     }
111 
112     public static com.liferay.portal.model.UserTrackerPath fetchByPrimaryKey(
113         long userTrackerPathId) throws com.liferay.portal.SystemException {
114         return getPersistence().fetchByPrimaryKey(userTrackerPathId);
115     }
116 
117     public static java.util.List<com.liferay.portal.model.UserTrackerPath> findByUserTrackerId(
118         long userTrackerId) throws com.liferay.portal.SystemException {
119         return getPersistence().findByUserTrackerId(userTrackerId);
120     }
121 
122     public static java.util.List<com.liferay.portal.model.UserTrackerPath> findByUserTrackerId(
123         long userTrackerId, int start, int end)
124         throws com.liferay.portal.SystemException {
125         return getPersistence().findByUserTrackerId(userTrackerId, start, end);
126     }
127 
128     public static java.util.List<com.liferay.portal.model.UserTrackerPath> findByUserTrackerId(
129         long userTrackerId, int start, int end,
130         com.liferay.portal.kernel.util.OrderByComparator obc)
131         throws com.liferay.portal.SystemException {
132         return getPersistence()
133                    .findByUserTrackerId(userTrackerId, start, end, obc);
134     }
135 
136     public static com.liferay.portal.model.UserTrackerPath findByUserTrackerId_First(
137         long userTrackerId, com.liferay.portal.kernel.util.OrderByComparator obc)
138         throws com.liferay.portal.NoSuchUserTrackerPathException,
139             com.liferay.portal.SystemException {
140         return getPersistence().findByUserTrackerId_First(userTrackerId, obc);
141     }
142 
143     public static com.liferay.portal.model.UserTrackerPath findByUserTrackerId_Last(
144         long userTrackerId, com.liferay.portal.kernel.util.OrderByComparator obc)
145         throws com.liferay.portal.NoSuchUserTrackerPathException,
146             com.liferay.portal.SystemException {
147         return getPersistence().findByUserTrackerId_Last(userTrackerId, obc);
148     }
149 
150     public static com.liferay.portal.model.UserTrackerPath[] findByUserTrackerId_PrevAndNext(
151         long userTrackerPathId, long userTrackerId,
152         com.liferay.portal.kernel.util.OrderByComparator obc)
153         throws com.liferay.portal.NoSuchUserTrackerPathException,
154             com.liferay.portal.SystemException {
155         return getPersistence()
156                    .findByUserTrackerId_PrevAndNext(userTrackerPathId,
157             userTrackerId, obc);
158     }
159 
160     public static java.util.List<Object> findWithDynamicQuery(
161         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
162         throws com.liferay.portal.SystemException {
163         return getPersistence().findWithDynamicQuery(dynamicQuery);
164     }
165 
166     public static java.util.List<Object> findWithDynamicQuery(
167         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
168         int end) throws com.liferay.portal.SystemException {
169         return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
170     }
171 
172     public static java.util.List<com.liferay.portal.model.UserTrackerPath> findAll()
173         throws com.liferay.portal.SystemException {
174         return getPersistence().findAll();
175     }
176 
177     public static java.util.List<com.liferay.portal.model.UserTrackerPath> findAll(
178         int start, int end) throws com.liferay.portal.SystemException {
179         return getPersistence().findAll(start, end);
180     }
181 
182     public static java.util.List<com.liferay.portal.model.UserTrackerPath> findAll(
183         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
184         throws com.liferay.portal.SystemException {
185         return getPersistence().findAll(start, end, obc);
186     }
187 
188     public static void removeByUserTrackerId(long userTrackerId)
189         throws com.liferay.portal.SystemException {
190         getPersistence().removeByUserTrackerId(userTrackerId);
191     }
192 
193     public static void removeAll() throws com.liferay.portal.SystemException {
194         getPersistence().removeAll();
195     }
196 
197     public static int countByUserTrackerId(long userTrackerId)
198         throws com.liferay.portal.SystemException {
199         return getPersistence().countByUserTrackerId(userTrackerId);
200     }
201 
202     public static int countAll() throws com.liferay.portal.SystemException {
203         return getPersistence().countAll();
204     }
205 
206     public static UserTrackerPathPersistence getPersistence() {
207         return _persistence;
208     }
209 
210     public void setPersistence(UserTrackerPathPersistence persistence) {
211         _persistence = persistence;
212     }
213 
214     private static UserTrackerPathPersistence _persistence;
215 }