1   /**
2    * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions 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   * <a href="UserTrackerPathUtil.java.html"><b><i>View Source</i></b></a>
27   *
28   * @author Brian Wing Shun Chan
29   *
30   */
31  public class UserTrackerPathUtil {
32      public static com.liferay.portal.model.UserTrackerPath create(
33          long userTrackerPathId) {
34          return getPersistence().create(userTrackerPathId);
35      }
36  
37      public static com.liferay.portal.model.UserTrackerPath remove(
38          long userTrackerPathId)
39          throws com.liferay.portal.SystemException, 
40              com.liferay.portal.NoSuchUserTrackerPathException {
41          return getPersistence().remove(userTrackerPathId);
42      }
43  
44      public static com.liferay.portal.model.UserTrackerPath remove(
45          com.liferay.portal.model.UserTrackerPath userTrackerPath)
46          throws com.liferay.portal.SystemException {
47          return getPersistence().remove(userTrackerPath);
48      }
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      public static com.liferay.portal.model.UserTrackerPath update(
57          com.liferay.portal.model.UserTrackerPath userTrackerPath, boolean merge)
58          throws com.liferay.portal.SystemException {
59          return getPersistence().update(userTrackerPath, merge);
60      }
61  
62      public static com.liferay.portal.model.UserTrackerPath updateImpl(
63          com.liferay.portal.model.UserTrackerPath userTrackerPath, boolean merge)
64          throws com.liferay.portal.SystemException {
65          return getPersistence().updateImpl(userTrackerPath, merge);
66      }
67  
68      public static com.liferay.portal.model.UserTrackerPath findByPrimaryKey(
69          long userTrackerPathId)
70          throws com.liferay.portal.SystemException, 
71              com.liferay.portal.NoSuchUserTrackerPathException {
72          return getPersistence().findByPrimaryKey(userTrackerPathId);
73      }
74  
75      public static com.liferay.portal.model.UserTrackerPath fetchByPrimaryKey(
76          long userTrackerPathId) throws com.liferay.portal.SystemException {
77          return getPersistence().fetchByPrimaryKey(userTrackerPathId);
78      }
79  
80      public static java.util.List findByUserTrackerId(long userTrackerId)
81          throws com.liferay.portal.SystemException {
82          return getPersistence().findByUserTrackerId(userTrackerId);
83      }
84  
85      public static java.util.List findByUserTrackerId(long userTrackerId,
86          int begin, int end) throws com.liferay.portal.SystemException {
87          return getPersistence().findByUserTrackerId(userTrackerId, begin, end);
88      }
89  
90      public static java.util.List findByUserTrackerId(long userTrackerId,
91          int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
92          throws com.liferay.portal.SystemException {
93          return getPersistence().findByUserTrackerId(userTrackerId, begin, end,
94              obc);
95      }
96  
97      public static com.liferay.portal.model.UserTrackerPath findByUserTrackerId_First(
98          long userTrackerId, com.liferay.portal.kernel.util.OrderByComparator obc)
99          throws com.liferay.portal.SystemException, 
100             com.liferay.portal.NoSuchUserTrackerPathException {
101         return getPersistence().findByUserTrackerId_First(userTrackerId, obc);
102     }
103 
104     public static com.liferay.portal.model.UserTrackerPath findByUserTrackerId_Last(
105         long userTrackerId, com.liferay.portal.kernel.util.OrderByComparator obc)
106         throws com.liferay.portal.SystemException, 
107             com.liferay.portal.NoSuchUserTrackerPathException {
108         return getPersistence().findByUserTrackerId_Last(userTrackerId, obc);
109     }
110 
111     public static com.liferay.portal.model.UserTrackerPath[] findByUserTrackerId_PrevAndNext(
112         long userTrackerPathId, long userTrackerId,
113         com.liferay.portal.kernel.util.OrderByComparator obc)
114         throws com.liferay.portal.SystemException, 
115             com.liferay.portal.NoSuchUserTrackerPathException {
116         return getPersistence().findByUserTrackerId_PrevAndNext(userTrackerPathId,
117             userTrackerId, obc);
118     }
119 
120     public static java.util.List findWithDynamicQuery(
121         com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
122         throws com.liferay.portal.SystemException {
123         return getPersistence().findWithDynamicQuery(queryInitializer);
124     }
125 
126     public static java.util.List findWithDynamicQuery(
127         com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
128         int begin, int end) throws com.liferay.portal.SystemException {
129         return getPersistence().findWithDynamicQuery(queryInitializer, begin,
130             end);
131     }
132 
133     public static java.util.List findAll()
134         throws com.liferay.portal.SystemException {
135         return getPersistence().findAll();
136     }
137 
138     public static java.util.List findAll(int begin, int end)
139         throws com.liferay.portal.SystemException {
140         return getPersistence().findAll(begin, end);
141     }
142 
143     public static java.util.List findAll(int begin, int end,
144         com.liferay.portal.kernel.util.OrderByComparator obc)
145         throws com.liferay.portal.SystemException {
146         return getPersistence().findAll(begin, end, obc);
147     }
148 
149     public static void removeByUserTrackerId(long userTrackerId)
150         throws com.liferay.portal.SystemException {
151         getPersistence().removeByUserTrackerId(userTrackerId);
152     }
153 
154     public static void removeAll() throws com.liferay.portal.SystemException {
155         getPersistence().removeAll();
156     }
157 
158     public static int countByUserTrackerId(long userTrackerId)
159         throws com.liferay.portal.SystemException {
160         return getPersistence().countByUserTrackerId(userTrackerId);
161     }
162 
163     public static int countAll() throws com.liferay.portal.SystemException {
164         return getPersistence().countAll();
165     }
166 
167     public static UserTrackerPathPersistence getPersistence() {
168         return _getUtil()._persistence;
169     }
170 
171     public void setPersistence(UserTrackerPathPersistence persistence) {
172         _persistence = persistence;
173     }
174 
175     private static UserTrackerPathUtil _getUtil() {
176         if (_util == null) {
177             _util = (UserTrackerPathUtil)com.liferay.portal.kernel.bean.BeanLocatorUtil.locate(_UTIL);
178         }
179 
180         return _util;
181     }
182 
183     private static final String _UTIL = UserTrackerPathUtil.class.getName();
184     private static UserTrackerPathUtil _util;
185     private UserTrackerPathPersistence _persistence;
186 }