001
014
015 package com.liferay.portal.service.persistence;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
019 import com.liferay.portal.kernel.exception.SystemException;
020 import com.liferay.portal.kernel.util.OrderByComparator;
021 import com.liferay.portal.model.PasswordTracker;
022 import com.liferay.portal.service.ServiceContext;
023
024 import java.util.List;
025
026
032 public class PasswordTrackerUtil {
033
036 public static void clearCache() {
037 getPersistence().clearCache();
038 }
039
040
043 public static void clearCache(PasswordTracker passwordTracker) {
044 getPersistence().clearCache(passwordTracker);
045 }
046
047
050 public long countWithDynamicQuery(DynamicQuery dynamicQuery)
051 throws SystemException {
052 return getPersistence().countWithDynamicQuery(dynamicQuery);
053 }
054
055
058 public static List<PasswordTracker> findWithDynamicQuery(
059 DynamicQuery dynamicQuery) throws SystemException {
060 return getPersistence().findWithDynamicQuery(dynamicQuery);
061 }
062
063
066 public static List<PasswordTracker> findWithDynamicQuery(
067 DynamicQuery dynamicQuery, int start, int end)
068 throws SystemException {
069 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
070 }
071
072
075 public static List<PasswordTracker> findWithDynamicQuery(
076 DynamicQuery dynamicQuery, int start, int end,
077 OrderByComparator orderByComparator) throws SystemException {
078 return getPersistence()
079 .findWithDynamicQuery(dynamicQuery, start, end,
080 orderByComparator);
081 }
082
083
086 public static PasswordTracker remove(PasswordTracker passwordTracker)
087 throws SystemException {
088 return getPersistence().remove(passwordTracker);
089 }
090
091
094 public static PasswordTracker update(PasswordTracker passwordTracker,
095 boolean merge) throws SystemException {
096 return getPersistence().update(passwordTracker, merge);
097 }
098
099
102 public static PasswordTracker update(PasswordTracker passwordTracker,
103 boolean merge, ServiceContext serviceContext) throws SystemException {
104 return getPersistence().update(passwordTracker, merge, serviceContext);
105 }
106
107 public static void cacheResult(
108 com.liferay.portal.model.PasswordTracker passwordTracker) {
109 getPersistence().cacheResult(passwordTracker);
110 }
111
112 public static void cacheResult(
113 java.util.List<com.liferay.portal.model.PasswordTracker> passwordTrackers) {
114 getPersistence().cacheResult(passwordTrackers);
115 }
116
117 public static com.liferay.portal.model.PasswordTracker create(
118 long passwordTrackerId) {
119 return getPersistence().create(passwordTrackerId);
120 }
121
122 public static com.liferay.portal.model.PasswordTracker remove(
123 long passwordTrackerId)
124 throws com.liferay.portal.NoSuchPasswordTrackerException,
125 com.liferay.portal.kernel.exception.SystemException {
126 return getPersistence().remove(passwordTrackerId);
127 }
128
129 public static com.liferay.portal.model.PasswordTracker updateImpl(
130 com.liferay.portal.model.PasswordTracker passwordTracker, boolean merge)
131 throws com.liferay.portal.kernel.exception.SystemException {
132 return getPersistence().updateImpl(passwordTracker, merge);
133 }
134
135 public static com.liferay.portal.model.PasswordTracker findByPrimaryKey(
136 long passwordTrackerId)
137 throws com.liferay.portal.NoSuchPasswordTrackerException,
138 com.liferay.portal.kernel.exception.SystemException {
139 return getPersistence().findByPrimaryKey(passwordTrackerId);
140 }
141
142 public static com.liferay.portal.model.PasswordTracker fetchByPrimaryKey(
143 long passwordTrackerId)
144 throws com.liferay.portal.kernel.exception.SystemException {
145 return getPersistence().fetchByPrimaryKey(passwordTrackerId);
146 }
147
148 public static java.util.List<com.liferay.portal.model.PasswordTracker> findByUserId(
149 long userId) throws com.liferay.portal.kernel.exception.SystemException {
150 return getPersistence().findByUserId(userId);
151 }
152
153 public static java.util.List<com.liferay.portal.model.PasswordTracker> findByUserId(
154 long userId, int start, int end)
155 throws com.liferay.portal.kernel.exception.SystemException {
156 return getPersistence().findByUserId(userId, start, end);
157 }
158
159 public static java.util.List<com.liferay.portal.model.PasswordTracker> findByUserId(
160 long userId, int start, int end,
161 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
162 throws com.liferay.portal.kernel.exception.SystemException {
163 return getPersistence()
164 .findByUserId(userId, start, end, orderByComparator);
165 }
166
167 public static com.liferay.portal.model.PasswordTracker findByUserId_First(
168 long userId,
169 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
170 throws com.liferay.portal.NoSuchPasswordTrackerException,
171 com.liferay.portal.kernel.exception.SystemException {
172 return getPersistence().findByUserId_First(userId, orderByComparator);
173 }
174
175 public static com.liferay.portal.model.PasswordTracker findByUserId_Last(
176 long userId,
177 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
178 throws com.liferay.portal.NoSuchPasswordTrackerException,
179 com.liferay.portal.kernel.exception.SystemException {
180 return getPersistence().findByUserId_Last(userId, orderByComparator);
181 }
182
183 public static com.liferay.portal.model.PasswordTracker[] findByUserId_PrevAndNext(
184 long passwordTrackerId, long userId,
185 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
186 throws com.liferay.portal.NoSuchPasswordTrackerException,
187 com.liferay.portal.kernel.exception.SystemException {
188 return getPersistence()
189 .findByUserId_PrevAndNext(passwordTrackerId, userId,
190 orderByComparator);
191 }
192
193 public static java.util.List<com.liferay.portal.model.PasswordTracker> findAll()
194 throws com.liferay.portal.kernel.exception.SystemException {
195 return getPersistence().findAll();
196 }
197
198 public static java.util.List<com.liferay.portal.model.PasswordTracker> findAll(
199 int start, int end)
200 throws com.liferay.portal.kernel.exception.SystemException {
201 return getPersistence().findAll(start, end);
202 }
203
204 public static java.util.List<com.liferay.portal.model.PasswordTracker> findAll(
205 int start, int end,
206 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
207 throws com.liferay.portal.kernel.exception.SystemException {
208 return getPersistence().findAll(start, end, orderByComparator);
209 }
210
211 public static void removeByUserId(long userId)
212 throws com.liferay.portal.kernel.exception.SystemException {
213 getPersistence().removeByUserId(userId);
214 }
215
216 public static void removeAll()
217 throws com.liferay.portal.kernel.exception.SystemException {
218 getPersistence().removeAll();
219 }
220
221 public static int countByUserId(long userId)
222 throws com.liferay.portal.kernel.exception.SystemException {
223 return getPersistence().countByUserId(userId);
224 }
225
226 public static int countAll()
227 throws com.liferay.portal.kernel.exception.SystemException {
228 return getPersistence().countAll();
229 }
230
231 public static PasswordTrackerPersistence getPersistence() {
232 if (_persistence == null) {
233 _persistence = (PasswordTrackerPersistence)PortalBeanLocatorUtil.locate(PasswordTrackerPersistence.class.getName());
234 }
235
236 return _persistence;
237 }
238
239 public void setPersistence(PasswordTrackerPersistence persistence) {
240 _persistence = persistence;
241 }
242
243 private static PasswordTrackerPersistence _persistence;
244 }