1
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
37 public class PasswordTrackerUtil {
38
41 public static void clearCache() {
42 getPersistence().clearCache();
43 }
44
45
48 public static void clearCache(PasswordTracker passwordTracker) {
49 getPersistence().clearCache(passwordTracker);
50 }
51
52
55 public long countWithDynamicQuery(DynamicQuery dynamicQuery)
56 throws SystemException {
57 return getPersistence().countWithDynamicQuery(dynamicQuery);
58 }
59
60
63 public static List<PasswordTracker> findWithDynamicQuery(
64 DynamicQuery dynamicQuery) throws SystemException {
65 return getPersistence().findWithDynamicQuery(dynamicQuery);
66 }
67
68
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
80 public static PasswordTracker remove(PasswordTracker passwordTracker)
81 throws SystemException {
82 return getPersistence().remove(passwordTracker);
83 }
84
85
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 }