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