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 obc)
133         throws com.liferay.portal.kernel.exception.SystemException {
134         return getPersistence()
135                    .findByUserTrackerId(userTrackerId, start, end, obc);
136     }
137 
138     public static com.liferay.portal.model.UserTrackerPath findByUserTrackerId_First(
139         long userTrackerId, com.liferay.portal.kernel.util.OrderByComparator obc)
140         throws com.liferay.portal.NoSuchUserTrackerPathException,
141             com.liferay.portal.kernel.exception.SystemException {
142         return getPersistence().findByUserTrackerId_First(userTrackerId, obc);
143     }
144 
145     public static com.liferay.portal.model.UserTrackerPath findByUserTrackerId_Last(
146         long userTrackerId, com.liferay.portal.kernel.util.OrderByComparator obc)
147         throws com.liferay.portal.NoSuchUserTrackerPathException,
148             com.liferay.portal.kernel.exception.SystemException {
149         return getPersistence().findByUserTrackerId_Last(userTrackerId, obc);
150     }
151 
152     public static com.liferay.portal.model.UserTrackerPath[] findByUserTrackerId_PrevAndNext(
153         long userTrackerPathId, long userTrackerId,
154         com.liferay.portal.kernel.util.OrderByComparator obc)
155         throws com.liferay.portal.NoSuchUserTrackerPathException,
156             com.liferay.portal.kernel.exception.SystemException {
157         return getPersistence()
158                    .findByUserTrackerId_PrevAndNext(userTrackerPathId,
159             userTrackerId, obc);
160     }
161 
162     public static java.util.List<com.liferay.portal.model.UserTrackerPath> findAll()
163         throws com.liferay.portal.kernel.exception.SystemException {
164         return getPersistence().findAll();
165     }
166 
167     public static java.util.List<com.liferay.portal.model.UserTrackerPath> findAll(
168         int start, int end)
169         throws com.liferay.portal.kernel.exception.SystemException {
170         return getPersistence().findAll(start, end);
171     }
172 
173     public static java.util.List<com.liferay.portal.model.UserTrackerPath> findAll(
174         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
175         throws com.liferay.portal.kernel.exception.SystemException {
176         return getPersistence().findAll(start, end, obc);
177     }
178 
179     public static void removeByUserTrackerId(long userTrackerId)
180         throws com.liferay.portal.kernel.exception.SystemException {
181         getPersistence().removeByUserTrackerId(userTrackerId);
182     }
183 
184     public static void removeAll()
185         throws com.liferay.portal.kernel.exception.SystemException {
186         getPersistence().removeAll();
187     }
188 
189     public static int countByUserTrackerId(long userTrackerId)
190         throws com.liferay.portal.kernel.exception.SystemException {
191         return getPersistence().countByUserTrackerId(userTrackerId);
192     }
193 
194     public static int countAll()
195         throws com.liferay.portal.kernel.exception.SystemException {
196         return getPersistence().countAll();
197     }
198 
199     public static UserTrackerPathPersistence getPersistence() {
200         if (_persistence == null) {
201             _persistence = (UserTrackerPathPersistence)PortalBeanLocatorUtil.locate(UserTrackerPathPersistence.class.getName());
202         }
203 
204         return _persistence;
205     }
206 
207     public void setPersistence(UserTrackerPathPersistence persistence) {
208         _persistence = persistence;
209     }
210 
211     private static UserTrackerPathPersistence _persistence;
212 }