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