1
22
23 package com.liferay.portal.service.persistence;
24
25 import com.liferay.portal.SystemException;
26 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
27 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
28 import com.liferay.portal.model.PasswordTracker;
29
30 import java.util.List;
31
32
45 public class PasswordTrackerUtil {
46
49 public static void clearCache() {
50 getPersistence().clearCache();
51 }
52
53
56 public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
57 throws SystemException {
58 return getPersistence().findWithDynamicQuery(dynamicQuery);
59 }
60
61
64 public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
65 int start, int end) throws SystemException {
66 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
67 }
68
69
72 public static PasswordTracker remove(PasswordTracker passwordTracker)
73 throws SystemException {
74 return getPersistence().remove(passwordTracker);
75 }
76
77
80 public static PasswordTracker update(PasswordTracker passwordTracker,
81 boolean merge) throws SystemException {
82 return getPersistence().update(passwordTracker, merge);
83 }
84
85 public static void cacheResult(
86 com.liferay.portal.model.PasswordTracker passwordTracker) {
87 getPersistence().cacheResult(passwordTracker);
88 }
89
90 public static void cacheResult(
91 java.util.List<com.liferay.portal.model.PasswordTracker> passwordTrackers) {
92 getPersistence().cacheResult(passwordTrackers);
93 }
94
95 public static com.liferay.portal.model.PasswordTracker create(
96 long passwordTrackerId) {
97 return getPersistence().create(passwordTrackerId);
98 }
99
100 public static com.liferay.portal.model.PasswordTracker remove(
101 long passwordTrackerId)
102 throws com.liferay.portal.NoSuchPasswordTrackerException,
103 com.liferay.portal.SystemException {
104 return getPersistence().remove(passwordTrackerId);
105 }
106
107
110 public static com.liferay.portal.model.PasswordTracker update(
111 com.liferay.portal.model.PasswordTracker passwordTracker)
112 throws com.liferay.portal.SystemException {
113 return getPersistence().update(passwordTracker);
114 }
115
116 public static com.liferay.portal.model.PasswordTracker updateImpl(
117 com.liferay.portal.model.PasswordTracker passwordTracker, boolean merge)
118 throws com.liferay.portal.SystemException {
119 return getPersistence().updateImpl(passwordTracker, merge);
120 }
121
122 public static com.liferay.portal.model.PasswordTracker findByPrimaryKey(
123 long passwordTrackerId)
124 throws com.liferay.portal.NoSuchPasswordTrackerException,
125 com.liferay.portal.SystemException {
126 return getPersistence().findByPrimaryKey(passwordTrackerId);
127 }
128
129 public static com.liferay.portal.model.PasswordTracker fetchByPrimaryKey(
130 long passwordTrackerId) throws com.liferay.portal.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.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.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 obc)
148 throws com.liferay.portal.SystemException {
149 return getPersistence().findByUserId(userId, start, end, obc);
150 }
151
152 public static com.liferay.portal.model.PasswordTracker findByUserId_First(
153 long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
154 throws com.liferay.portal.NoSuchPasswordTrackerException,
155 com.liferay.portal.SystemException {
156 return getPersistence().findByUserId_First(userId, obc);
157 }
158
159 public static com.liferay.portal.model.PasswordTracker findByUserId_Last(
160 long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
161 throws com.liferay.portal.NoSuchPasswordTrackerException,
162 com.liferay.portal.SystemException {
163 return getPersistence().findByUserId_Last(userId, obc);
164 }
165
166 public static com.liferay.portal.model.PasswordTracker[] findByUserId_PrevAndNext(
167 long passwordTrackerId, long userId,
168 com.liferay.portal.kernel.util.OrderByComparator obc)
169 throws com.liferay.portal.NoSuchPasswordTrackerException,
170 com.liferay.portal.SystemException {
171 return getPersistence()
172 .findByUserId_PrevAndNext(passwordTrackerId, userId, obc);
173 }
174
175 public static java.util.List<com.liferay.portal.model.PasswordTracker> findAll()
176 throws com.liferay.portal.SystemException {
177 return getPersistence().findAll();
178 }
179
180 public static java.util.List<com.liferay.portal.model.PasswordTracker> findAll(
181 int start, int end) throws com.liferay.portal.SystemException {
182 return getPersistence().findAll(start, end);
183 }
184
185 public static java.util.List<com.liferay.portal.model.PasswordTracker> findAll(
186 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
187 throws com.liferay.portal.SystemException {
188 return getPersistence().findAll(start, end, obc);
189 }
190
191 public static void removeByUserId(long userId)
192 throws com.liferay.portal.SystemException {
193 getPersistence().removeByUserId(userId);
194 }
195
196 public static void removeAll() throws com.liferay.portal.SystemException {
197 getPersistence().removeAll();
198 }
199
200 public static int countByUserId(long userId)
201 throws com.liferay.portal.SystemException {
202 return getPersistence().countByUserId(userId);
203 }
204
205 public static int countAll() throws com.liferay.portal.SystemException {
206 return getPersistence().countAll();
207 }
208
209 public static PasswordTrackerPersistence getPersistence() {
210 if (_persistence == null) {
211 _persistence = (PasswordTrackerPersistence)PortalBeanLocatorUtil.locate(PasswordTrackerPersistence.class.getName());
212 }
213
214 return _persistence;
215 }
216
217 public void setPersistence(PasswordTrackerPersistence persistence) {
218 _persistence = persistence;
219 }
220
221 private static PasswordTrackerPersistence _persistence;
222 }