1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portal.service.persistence;
16  
17  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18  import com.liferay.portal.kernel.dao.orm.DynamicQuery;
19  import com.liferay.portal.kernel.exception.SystemException;
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#clearCache(PasswordTracker)
47       */
48      public static void clearCache(PasswordTracker passwordTracker) {
49          getPersistence().clearCache(passwordTracker);
50      }
51  
52      /**
53       * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
54       */
55      public long countWithDynamicQuery(DynamicQuery dynamicQuery)
56          throws SystemException {
57          return getPersistence().countWithDynamicQuery(dynamicQuery);
58      }
59  
60      /**
61       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
62       */
63      public static List<PasswordTracker> findWithDynamicQuery(
64          DynamicQuery dynamicQuery) throws SystemException {
65          return getPersistence().findWithDynamicQuery(dynamicQuery);
66      }
67  
68      /**
69       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
70       */
71      public static List<PasswordTracker> findWithDynamicQuery(
72          DynamicQuery dynamicQuery, int start, int end)
73          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.kernel.exception.SystemException {
112         return getPersistence().remove(passwordTrackerId);
113     }
114 
115     public static com.liferay.portal.model.PasswordTracker updateImpl(
116         com.liferay.portal.model.PasswordTracker passwordTracker, boolean merge)
117         throws com.liferay.portal.kernel.exception.SystemException {
118         return getPersistence().updateImpl(passwordTracker, merge);
119     }
120 
121     public static com.liferay.portal.model.PasswordTracker findByPrimaryKey(
122         long passwordTrackerId)
123         throws com.liferay.portal.NoSuchPasswordTrackerException,
124             com.liferay.portal.kernel.exception.SystemException {
125         return getPersistence().findByPrimaryKey(passwordTrackerId);
126     }
127 
128     public static com.liferay.portal.model.PasswordTracker fetchByPrimaryKey(
129         long passwordTrackerId)
130         throws com.liferay.portal.kernel.exception.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.kernel.exception.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.kernel.exception.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 orderByComparator)
148         throws com.liferay.portal.kernel.exception.SystemException {
149         return getPersistence()
150                    .findByUserId(userId, start, end, orderByComparator);
151     }
152 
153     public static com.liferay.portal.model.PasswordTracker findByUserId_First(
154         long userId,
155         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
156         throws com.liferay.portal.NoSuchPasswordTrackerException,
157             com.liferay.portal.kernel.exception.SystemException {
158         return getPersistence().findByUserId_First(userId, orderByComparator);
159     }
160 
161     public static com.liferay.portal.model.PasswordTracker findByUserId_Last(
162         long userId,
163         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
164         throws com.liferay.portal.NoSuchPasswordTrackerException,
165             com.liferay.portal.kernel.exception.SystemException {
166         return getPersistence().findByUserId_Last(userId, orderByComparator);
167     }
168 
169     public static com.liferay.portal.model.PasswordTracker[] findByUserId_PrevAndNext(
170         long passwordTrackerId, long userId,
171         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
172         throws com.liferay.portal.NoSuchPasswordTrackerException,
173             com.liferay.portal.kernel.exception.SystemException {
174         return getPersistence()
175                    .findByUserId_PrevAndNext(passwordTrackerId, userId,
176             orderByComparator);
177     }
178 
179     public static java.util.List<com.liferay.portal.model.PasswordTracker> findAll()
180         throws com.liferay.portal.kernel.exception.SystemException {
181         return getPersistence().findAll();
182     }
183 
184     public static java.util.List<com.liferay.portal.model.PasswordTracker> findAll(
185         int start, int end)
186         throws com.liferay.portal.kernel.exception.SystemException {
187         return getPersistence().findAll(start, end);
188     }
189 
190     public static java.util.List<com.liferay.portal.model.PasswordTracker> findAll(
191         int start, int end,
192         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
193         throws com.liferay.portal.kernel.exception.SystemException {
194         return getPersistence().findAll(start, end, orderByComparator);
195     }
196 
197     public static void removeByUserId(long userId)
198         throws com.liferay.portal.kernel.exception.SystemException {
199         getPersistence().removeByUserId(userId);
200     }
201 
202     public static void removeAll()
203         throws com.liferay.portal.kernel.exception.SystemException {
204         getPersistence().removeAll();
205     }
206 
207     public static int countByUserId(long userId)
208         throws com.liferay.portal.kernel.exception.SystemException {
209         return getPersistence().countByUserId(userId);
210     }
211 
212     public static int countAll()
213         throws com.liferay.portal.kernel.exception.SystemException {
214         return getPersistence().countAll();
215     }
216 
217     public static PasswordTrackerPersistence getPersistence() {
218         if (_persistence == null) {
219             _persistence = (PasswordTrackerPersistence)PortalBeanLocatorUtil.locate(PasswordTrackerPersistence.class.getName());
220         }
221 
222         return _persistence;
223     }
224 
225     public void setPersistence(PasswordTrackerPersistence persistence) {
226         _persistence = persistence;
227     }
228 
229     private static PasswordTrackerPersistence _persistence;
230 }