1   /**
2    * Copyright (c) 2000-2009 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   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
12   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
13   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
14   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
15   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
16   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
17   * SOFTWARE.
18   */
19  
20  package com.liferay.portal.service.persistence;
21  
22  /**
23   * <a href="UserTrackerPathUtil.java.html"><b><i>View Source</i></b></a>
24   *
25   * @author Brian Wing Shun Chan
26   *
27   */
28  public class UserTrackerPathUtil {
29      public static void cacheResult(
30          com.liferay.portal.model.UserTrackerPath userTrackerPath) {
31          getPersistence().cacheResult(userTrackerPath);
32      }
33  
34      public static void cacheResult(
35          java.util.List<com.liferay.portal.model.UserTrackerPath> userTrackerPaths) {
36          getPersistence().cacheResult(userTrackerPaths);
37      }
38  
39      public static void clearCache() {
40          getPersistence().clearCache();
41      }
42  
43      public static com.liferay.portal.model.UserTrackerPath create(
44          long userTrackerPathId) {
45          return getPersistence().create(userTrackerPathId);
46      }
47  
48      public static com.liferay.portal.model.UserTrackerPath remove(
49          long userTrackerPathId)
50          throws com.liferay.portal.NoSuchUserTrackerPathException,
51              com.liferay.portal.SystemException {
52          return getPersistence().remove(userTrackerPathId);
53      }
54  
55      public static com.liferay.portal.model.UserTrackerPath remove(
56          com.liferay.portal.model.UserTrackerPath userTrackerPath)
57          throws com.liferay.portal.SystemException {
58          return getPersistence().remove(userTrackerPath);
59      }
60  
61      /**
62       * @deprecated Use <code>update(UserTrackerPath userTrackerPath, boolean merge)</code>.
63       */
64      public static com.liferay.portal.model.UserTrackerPath update(
65          com.liferay.portal.model.UserTrackerPath userTrackerPath)
66          throws com.liferay.portal.SystemException {
67          return getPersistence().update(userTrackerPath);
68      }
69  
70      /**
71       * Add, update, or merge, the entity. This method also calls the model
72       * listeners to trigger the proper events associated with adding, deleting,
73       * or updating an entity.
74       *
75       * @param        userTrackerPath the entity to add, update, or merge
76       * @param        merge boolean value for whether to merge the entity. The
77       *                default value is false. Setting merge to true is more
78       *                expensive and should only be true when userTrackerPath is
79       *                transient. See LEP-5473 for a detailed discussion of this
80       *                method.
81       * @return        true if the portlet can be displayed via Ajax
82       */
83      public static com.liferay.portal.model.UserTrackerPath update(
84          com.liferay.portal.model.UserTrackerPath userTrackerPath, boolean merge)
85          throws com.liferay.portal.SystemException {
86          return getPersistence().update(userTrackerPath, merge);
87      }
88  
89      public static com.liferay.portal.model.UserTrackerPath updateImpl(
90          com.liferay.portal.model.UserTrackerPath userTrackerPath, boolean merge)
91          throws com.liferay.portal.SystemException {
92          return getPersistence().updateImpl(userTrackerPath, merge);
93      }
94  
95      public static com.liferay.portal.model.UserTrackerPath findByPrimaryKey(
96          long userTrackerPathId)
97          throws com.liferay.portal.NoSuchUserTrackerPathException,
98              com.liferay.portal.SystemException {
99          return getPersistence().findByPrimaryKey(userTrackerPathId);
100     }
101 
102     public static com.liferay.portal.model.UserTrackerPath fetchByPrimaryKey(
103         long userTrackerPathId) throws com.liferay.portal.SystemException {
104         return getPersistence().fetchByPrimaryKey(userTrackerPathId);
105     }
106 
107     public static java.util.List<com.liferay.portal.model.UserTrackerPath> findByUserTrackerId(
108         long userTrackerId) throws com.liferay.portal.SystemException {
109         return getPersistence().findByUserTrackerId(userTrackerId);
110     }
111 
112     public static java.util.List<com.liferay.portal.model.UserTrackerPath> findByUserTrackerId(
113         long userTrackerId, int start, int end)
114         throws com.liferay.portal.SystemException {
115         return getPersistence().findByUserTrackerId(userTrackerId, start, end);
116     }
117 
118     public static java.util.List<com.liferay.portal.model.UserTrackerPath> findByUserTrackerId(
119         long userTrackerId, int start, int end,
120         com.liferay.portal.kernel.util.OrderByComparator obc)
121         throws com.liferay.portal.SystemException {
122         return getPersistence()
123                    .findByUserTrackerId(userTrackerId, start, end, obc);
124     }
125 
126     public static com.liferay.portal.model.UserTrackerPath findByUserTrackerId_First(
127         long userTrackerId, com.liferay.portal.kernel.util.OrderByComparator obc)
128         throws com.liferay.portal.NoSuchUserTrackerPathException,
129             com.liferay.portal.SystemException {
130         return getPersistence().findByUserTrackerId_First(userTrackerId, obc);
131     }
132 
133     public static com.liferay.portal.model.UserTrackerPath findByUserTrackerId_Last(
134         long userTrackerId, com.liferay.portal.kernel.util.OrderByComparator obc)
135         throws com.liferay.portal.NoSuchUserTrackerPathException,
136             com.liferay.portal.SystemException {
137         return getPersistence().findByUserTrackerId_Last(userTrackerId, obc);
138     }
139 
140     public static com.liferay.portal.model.UserTrackerPath[] findByUserTrackerId_PrevAndNext(
141         long userTrackerPathId, long userTrackerId,
142         com.liferay.portal.kernel.util.OrderByComparator obc)
143         throws com.liferay.portal.NoSuchUserTrackerPathException,
144             com.liferay.portal.SystemException {
145         return getPersistence()
146                    .findByUserTrackerId_PrevAndNext(userTrackerPathId,
147             userTrackerId, obc);
148     }
149 
150     public static java.util.List<Object> findWithDynamicQuery(
151         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
152         throws com.liferay.portal.SystemException {
153         return getPersistence().findWithDynamicQuery(dynamicQuery);
154     }
155 
156     public static java.util.List<Object> findWithDynamicQuery(
157         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
158         int end) throws com.liferay.portal.SystemException {
159         return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
160     }
161 
162     public static java.util.List<com.liferay.portal.model.UserTrackerPath> findAll()
163         throws com.liferay.portal.SystemException {
164         return getPersistence().findAll();
165     }
166 
167     public static java.util.List<com.liferay.portal.model.UserTrackerPath> findAll(
168         int start, int end) throws com.liferay.portal.SystemException {
169         return getPersistence().findAll(start, end);
170     }
171 
172     public static java.util.List<com.liferay.portal.model.UserTrackerPath> findAll(
173         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
174         throws com.liferay.portal.SystemException {
175         return getPersistence().findAll(start, end, obc);
176     }
177 
178     public static void removeByUserTrackerId(long userTrackerId)
179         throws com.liferay.portal.SystemException {
180         getPersistence().removeByUserTrackerId(userTrackerId);
181     }
182 
183     public static void removeAll() throws com.liferay.portal.SystemException {
184         getPersistence().removeAll();
185     }
186 
187     public static int countByUserTrackerId(long userTrackerId)
188         throws com.liferay.portal.SystemException {
189         return getPersistence().countByUserTrackerId(userTrackerId);
190     }
191 
192     public static int countAll() throws com.liferay.portal.SystemException {
193         return getPersistence().countAll();
194     }
195 
196     public static UserTrackerPathPersistence getPersistence() {
197         return _persistence;
198     }
199 
200     public void setPersistence(UserTrackerPathPersistence persistence) {
201         _persistence = persistence;
202     }
203 
204     private static UserTrackerPathPersistence _persistence;
205 }