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 com.liferay.portal.model.UserTrackerPath create(
30          long userTrackerPathId) {
31          return getPersistence().create(userTrackerPathId);
32      }
33  
34      public static com.liferay.portal.model.UserTrackerPath remove(
35          long userTrackerPathId)
36          throws com.liferay.portal.NoSuchUserTrackerPathException,
37              com.liferay.portal.SystemException {
38          return getPersistence().remove(userTrackerPathId);
39      }
40  
41      public static com.liferay.portal.model.UserTrackerPath remove(
42          com.liferay.portal.model.UserTrackerPath userTrackerPath)
43          throws com.liferay.portal.SystemException {
44          return getPersistence().remove(userTrackerPath);
45      }
46  
47      /**
48       * @deprecated Use <code>update(UserTrackerPath userTrackerPath, boolean merge)</code>.
49       */
50      public static com.liferay.portal.model.UserTrackerPath update(
51          com.liferay.portal.model.UserTrackerPath userTrackerPath)
52          throws com.liferay.portal.SystemException {
53          return getPersistence().update(userTrackerPath);
54      }
55  
56      /**
57       * Add, update, or merge, the entity. This method also calls the model
58       * listeners to trigger the proper events associated with adding, deleting,
59       * or updating an entity.
60       *
61       * @param        userTrackerPath the entity to add, update, or merge
62       * @param        merge boolean value for whether to merge the entity. The
63       *                default value is false. Setting merge to true is more
64       *                expensive and should only be true when userTrackerPath is
65       *                transient. See LEP-5473 for a detailed discussion of this
66       *                method.
67       * @return        true if the portlet can be displayed via Ajax
68       */
69      public static com.liferay.portal.model.UserTrackerPath update(
70          com.liferay.portal.model.UserTrackerPath userTrackerPath, boolean merge)
71          throws com.liferay.portal.SystemException {
72          return getPersistence().update(userTrackerPath, merge);
73      }
74  
75      public static com.liferay.portal.model.UserTrackerPath updateImpl(
76          com.liferay.portal.model.UserTrackerPath userTrackerPath, boolean merge)
77          throws com.liferay.portal.SystemException {
78          return getPersistence().updateImpl(userTrackerPath, merge);
79      }
80  
81      public static com.liferay.portal.model.UserTrackerPath findByPrimaryKey(
82          long userTrackerPathId)
83          throws com.liferay.portal.NoSuchUserTrackerPathException,
84              com.liferay.portal.SystemException {
85          return getPersistence().findByPrimaryKey(userTrackerPathId);
86      }
87  
88      public static com.liferay.portal.model.UserTrackerPath fetchByPrimaryKey(
89          long userTrackerPathId) throws com.liferay.portal.SystemException {
90          return getPersistence().fetchByPrimaryKey(userTrackerPathId);
91      }
92  
93      public static java.util.List<com.liferay.portal.model.UserTrackerPath> findByUserTrackerId(
94          long userTrackerId) throws com.liferay.portal.SystemException {
95          return getPersistence().findByUserTrackerId(userTrackerId);
96      }
97  
98      public static java.util.List<com.liferay.portal.model.UserTrackerPath> findByUserTrackerId(
99          long userTrackerId, int start, int end)
100         throws com.liferay.portal.SystemException {
101         return getPersistence().findByUserTrackerId(userTrackerId, start, end);
102     }
103 
104     public static java.util.List<com.liferay.portal.model.UserTrackerPath> findByUserTrackerId(
105         long userTrackerId, int start, int end,
106         com.liferay.portal.kernel.util.OrderByComparator obc)
107         throws com.liferay.portal.SystemException {
108         return getPersistence()
109                    .findByUserTrackerId(userTrackerId, start, end, obc);
110     }
111 
112     public static com.liferay.portal.model.UserTrackerPath findByUserTrackerId_First(
113         long userTrackerId, com.liferay.portal.kernel.util.OrderByComparator obc)
114         throws com.liferay.portal.NoSuchUserTrackerPathException,
115             com.liferay.portal.SystemException {
116         return getPersistence().findByUserTrackerId_First(userTrackerId, obc);
117     }
118 
119     public static com.liferay.portal.model.UserTrackerPath findByUserTrackerId_Last(
120         long userTrackerId, com.liferay.portal.kernel.util.OrderByComparator obc)
121         throws com.liferay.portal.NoSuchUserTrackerPathException,
122             com.liferay.portal.SystemException {
123         return getPersistence().findByUserTrackerId_Last(userTrackerId, obc);
124     }
125 
126     public static com.liferay.portal.model.UserTrackerPath[] findByUserTrackerId_PrevAndNext(
127         long userTrackerPathId, long userTrackerId,
128         com.liferay.portal.kernel.util.OrderByComparator obc)
129         throws com.liferay.portal.NoSuchUserTrackerPathException,
130             com.liferay.portal.SystemException {
131         return getPersistence()
132                    .findByUserTrackerId_PrevAndNext(userTrackerPathId,
133             userTrackerId, obc);
134     }
135 
136     public static java.util.List<Object> findWithDynamicQuery(
137         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
138         throws com.liferay.portal.SystemException {
139         return getPersistence().findWithDynamicQuery(dynamicQuery);
140     }
141 
142     public static java.util.List<Object> findWithDynamicQuery(
143         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
144         int end) throws com.liferay.portal.SystemException {
145         return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
146     }
147 
148     public static java.util.List<com.liferay.portal.model.UserTrackerPath> findAll()
149         throws com.liferay.portal.SystemException {
150         return getPersistence().findAll();
151     }
152 
153     public static java.util.List<com.liferay.portal.model.UserTrackerPath> findAll(
154         int start, int end) throws com.liferay.portal.SystemException {
155         return getPersistence().findAll(start, end);
156     }
157 
158     public static java.util.List<com.liferay.portal.model.UserTrackerPath> findAll(
159         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
160         throws com.liferay.portal.SystemException {
161         return getPersistence().findAll(start, end, obc);
162     }
163 
164     public static void removeByUserTrackerId(long userTrackerId)
165         throws com.liferay.portal.SystemException {
166         getPersistence().removeByUserTrackerId(userTrackerId);
167     }
168 
169     public static void removeAll() throws com.liferay.portal.SystemException {
170         getPersistence().removeAll();
171     }
172 
173     public static int countByUserTrackerId(long userTrackerId)
174         throws com.liferay.portal.SystemException {
175         return getPersistence().countByUserTrackerId(userTrackerId);
176     }
177 
178     public static int countAll() throws com.liferay.portal.SystemException {
179         return getPersistence().countAll();
180     }
181 
182     public static UserTrackerPathPersistence getPersistence() {
183         return _persistence;
184     }
185 
186     public void setPersistence(UserTrackerPathPersistence persistence) {
187         _persistence = persistence;
188     }
189 
190     private static UserTrackerPathPersistence _persistence;
191 }