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  import com.liferay.portal.SystemException;
26  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
27  import com.liferay.portal.kernel.dao.orm.DynamicQuery;
28  import com.liferay.portal.model.PasswordTracker;
29  
30  import java.util.List;
31  
32  /**
33   * <a href="PasswordTrackerUtil.java.html"><b><i>View Source</i></b></a>
34   *
35   * <p>
36   * ServiceBuilder generated this class. Modifications in this class will be
37   * overwritten the next time is generated.
38   * </p>
39   *
40   * @author    Brian Wing Shun Chan
41   * @see       PasswordTrackerPersistence
42   * @see       PasswordTrackerPersistenceImpl
43   * @generated
44   */
45  public class PasswordTrackerUtil {
46      /**
47       * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
48       */
49      public static void clearCache() {
50          getPersistence().clearCache();
51      }
52  
53      /**
54       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
55       */
56      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
57          throws SystemException {
58          return getPersistence().findWithDynamicQuery(dynamicQuery);
59      }
60  
61      /**
62       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
63       */
64      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
65          int start, int end) throws SystemException {
66          return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
67      }
68  
69      /**
70       * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
71       */
72      public static PasswordTracker remove(PasswordTracker passwordTracker)
73          throws SystemException {
74          return getPersistence().remove(passwordTracker);
75      }
76  
77      /**
78       * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
79       */
80      public static PasswordTracker update(PasswordTracker passwordTracker,
81          boolean merge) throws SystemException {
82          return getPersistence().update(passwordTracker, merge);
83      }
84  
85      public static void cacheResult(
86          com.liferay.portal.model.PasswordTracker passwordTracker) {
87          getPersistence().cacheResult(passwordTracker);
88      }
89  
90      public static void cacheResult(
91          java.util.List<com.liferay.portal.model.PasswordTracker> passwordTrackers) {
92          getPersistence().cacheResult(passwordTrackers);
93      }
94  
95      public static com.liferay.portal.model.PasswordTracker create(
96          long passwordTrackerId) {
97          return getPersistence().create(passwordTrackerId);
98      }
99  
100     public static com.liferay.portal.model.PasswordTracker remove(
101         long passwordTrackerId)
102         throws com.liferay.portal.NoSuchPasswordTrackerException,
103             com.liferay.portal.SystemException {
104         return getPersistence().remove(passwordTrackerId);
105     }
106 
107     /**
108      * @deprecated Use {@link com.liferay.portal.service.persistence.BasePersistence.#update(com.liferay.portal.model.BaseModel, boolean)}.
109      */
110     public static com.liferay.portal.model.PasswordTracker update(
111         com.liferay.portal.model.PasswordTracker passwordTracker)
112         throws com.liferay.portal.SystemException {
113         return getPersistence().update(passwordTracker);
114     }
115 
116     public static com.liferay.portal.model.PasswordTracker updateImpl(
117         com.liferay.portal.model.PasswordTracker passwordTracker, boolean merge)
118         throws com.liferay.portal.SystemException {
119         return getPersistence().updateImpl(passwordTracker, merge);
120     }
121 
122     public static com.liferay.portal.model.PasswordTracker findByPrimaryKey(
123         long passwordTrackerId)
124         throws com.liferay.portal.NoSuchPasswordTrackerException,
125             com.liferay.portal.SystemException {
126         return getPersistence().findByPrimaryKey(passwordTrackerId);
127     }
128 
129     public static com.liferay.portal.model.PasswordTracker fetchByPrimaryKey(
130         long passwordTrackerId) throws com.liferay.portal.SystemException {
131         return getPersistence().fetchByPrimaryKey(passwordTrackerId);
132     }
133 
134     public static java.util.List<com.liferay.portal.model.PasswordTracker> findByUserId(
135         long userId) throws com.liferay.portal.SystemException {
136         return getPersistence().findByUserId(userId);
137     }
138 
139     public static java.util.List<com.liferay.portal.model.PasswordTracker> findByUserId(
140         long userId, int start, int end)
141         throws com.liferay.portal.SystemException {
142         return getPersistence().findByUserId(userId, start, end);
143     }
144 
145     public static java.util.List<com.liferay.portal.model.PasswordTracker> findByUserId(
146         long userId, int start, int end,
147         com.liferay.portal.kernel.util.OrderByComparator obc)
148         throws com.liferay.portal.SystemException {
149         return getPersistence().findByUserId(userId, start, end, obc);
150     }
151 
152     public static com.liferay.portal.model.PasswordTracker findByUserId_First(
153         long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
154         throws com.liferay.portal.NoSuchPasswordTrackerException,
155             com.liferay.portal.SystemException {
156         return getPersistence().findByUserId_First(userId, obc);
157     }
158 
159     public static com.liferay.portal.model.PasswordTracker findByUserId_Last(
160         long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
161         throws com.liferay.portal.NoSuchPasswordTrackerException,
162             com.liferay.portal.SystemException {
163         return getPersistence().findByUserId_Last(userId, obc);
164     }
165 
166     public static com.liferay.portal.model.PasswordTracker[] findByUserId_PrevAndNext(
167         long passwordTrackerId, long userId,
168         com.liferay.portal.kernel.util.OrderByComparator obc)
169         throws com.liferay.portal.NoSuchPasswordTrackerException,
170             com.liferay.portal.SystemException {
171         return getPersistence()
172                    .findByUserId_PrevAndNext(passwordTrackerId, userId, obc);
173     }
174 
175     public static java.util.List<com.liferay.portal.model.PasswordTracker> findAll()
176         throws com.liferay.portal.SystemException {
177         return getPersistence().findAll();
178     }
179 
180     public static java.util.List<com.liferay.portal.model.PasswordTracker> findAll(
181         int start, int end) throws com.liferay.portal.SystemException {
182         return getPersistence().findAll(start, end);
183     }
184 
185     public static java.util.List<com.liferay.portal.model.PasswordTracker> findAll(
186         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
187         throws com.liferay.portal.SystemException {
188         return getPersistence().findAll(start, end, obc);
189     }
190 
191     public static void removeByUserId(long userId)
192         throws com.liferay.portal.SystemException {
193         getPersistence().removeByUserId(userId);
194     }
195 
196     public static void removeAll() throws com.liferay.portal.SystemException {
197         getPersistence().removeAll();
198     }
199 
200     public static int countByUserId(long userId)
201         throws com.liferay.portal.SystemException {
202         return getPersistence().countByUserId(userId);
203     }
204 
205     public static int countAll() throws com.liferay.portal.SystemException {
206         return getPersistence().countAll();
207     }
208 
209     public static PasswordTrackerPersistence getPersistence() {
210         if (_persistence == null) {
211             _persistence = (PasswordTrackerPersistence)PortalBeanLocatorUtil.locate(PasswordTrackerPersistence.class.getName());
212         }
213 
214         return _persistence;
215     }
216 
217     public void setPersistence(PasswordTrackerPersistence persistence) {
218         _persistence = persistence;
219     }
220 
221     private static PasswordTrackerPersistence _persistence;
222 }