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#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.kernel.exception.SystemException {
96          return getPersistence().remove(passwordTrackerId);
97      }
98  
99      public static com.liferay.portal.model.PasswordTracker updateImpl(
100         com.liferay.portal.model.PasswordTracker passwordTracker, boolean merge)
101         throws com.liferay.portal.kernel.exception.SystemException {
102         return getPersistence().updateImpl(passwordTracker, merge);
103     }
104 
105     public static com.liferay.portal.model.PasswordTracker findByPrimaryKey(
106         long passwordTrackerId)
107         throws com.liferay.portal.NoSuchPasswordTrackerException,
108             com.liferay.portal.kernel.exception.SystemException {
109         return getPersistence().findByPrimaryKey(passwordTrackerId);
110     }
111 
112     public static com.liferay.portal.model.PasswordTracker fetchByPrimaryKey(
113         long passwordTrackerId)
114         throws com.liferay.portal.kernel.exception.SystemException {
115         return getPersistence().fetchByPrimaryKey(passwordTrackerId);
116     }
117 
118     public static java.util.List<com.liferay.portal.model.PasswordTracker> findByUserId(
119         long userId) throws com.liferay.portal.kernel.exception.SystemException {
120         return getPersistence().findByUserId(userId);
121     }
122 
123     public static java.util.List<com.liferay.portal.model.PasswordTracker> findByUserId(
124         long userId, int start, int end)
125         throws com.liferay.portal.kernel.exception.SystemException {
126         return getPersistence().findByUserId(userId, start, end);
127     }
128 
129     public static java.util.List<com.liferay.portal.model.PasswordTracker> findByUserId(
130         long userId, int start, int end,
131         com.liferay.portal.kernel.util.OrderByComparator obc)
132         throws com.liferay.portal.kernel.exception.SystemException {
133         return getPersistence().findByUserId(userId, start, end, obc);
134     }
135 
136     public static com.liferay.portal.model.PasswordTracker findByUserId_First(
137         long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
138         throws com.liferay.portal.NoSuchPasswordTrackerException,
139             com.liferay.portal.kernel.exception.SystemException {
140         return getPersistence().findByUserId_First(userId, obc);
141     }
142 
143     public static com.liferay.portal.model.PasswordTracker findByUserId_Last(
144         long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
145         throws com.liferay.portal.NoSuchPasswordTrackerException,
146             com.liferay.portal.kernel.exception.SystemException {
147         return getPersistence().findByUserId_Last(userId, obc);
148     }
149 
150     public static com.liferay.portal.model.PasswordTracker[] findByUserId_PrevAndNext(
151         long passwordTrackerId, long userId,
152         com.liferay.portal.kernel.util.OrderByComparator obc)
153         throws com.liferay.portal.NoSuchPasswordTrackerException,
154             com.liferay.portal.kernel.exception.SystemException {
155         return getPersistence()
156                    .findByUserId_PrevAndNext(passwordTrackerId, userId, obc);
157     }
158 
159     public static java.util.List<com.liferay.portal.model.PasswordTracker> findAll()
160         throws com.liferay.portal.kernel.exception.SystemException {
161         return getPersistence().findAll();
162     }
163 
164     public static java.util.List<com.liferay.portal.model.PasswordTracker> findAll(
165         int start, int end)
166         throws com.liferay.portal.kernel.exception.SystemException {
167         return getPersistence().findAll(start, end);
168     }
169 
170     public static java.util.List<com.liferay.portal.model.PasswordTracker> findAll(
171         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
172         throws com.liferay.portal.kernel.exception.SystemException {
173         return getPersistence().findAll(start, end, obc);
174     }
175 
176     public static void removeByUserId(long userId)
177         throws com.liferay.portal.kernel.exception.SystemException {
178         getPersistence().removeByUserId(userId);
179     }
180 
181     public static void removeAll()
182         throws com.liferay.portal.kernel.exception.SystemException {
183         getPersistence().removeAll();
184     }
185 
186     public static int countByUserId(long userId)
187         throws com.liferay.portal.kernel.exception.SystemException {
188         return getPersistence().countByUserId(userId);
189     }
190 
191     public static int countAll()
192         throws com.liferay.portal.kernel.exception.SystemException {
193         return getPersistence().countAll();
194     }
195 
196     public static PasswordTrackerPersistence getPersistence() {
197         if (_persistence == null) {
198             _persistence = (PasswordTrackerPersistence)PortalBeanLocatorUtil.locate(PasswordTrackerPersistence.class.getName());
199         }
200 
201         return _persistence;
202     }
203 
204     public void setPersistence(PasswordTrackerPersistence persistence) {
205         _persistence = persistence;
206     }
207 
208     private static PasswordTrackerPersistence _persistence;
209 }