1
14
15 package com.liferay.portlet.announcements.service.persistence;
16
17 import com.liferay.portal.SystemException;
18 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
19 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
20
21 import com.liferay.portlet.announcements.model.AnnouncementsEntry;
22
23 import java.util.List;
24
25
38 public class AnnouncementsEntryUtil {
39
42 public static void clearCache() {
43 getPersistence().clearCache();
44 }
45
46
49 public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
50 throws SystemException {
51 return getPersistence().findWithDynamicQuery(dynamicQuery);
52 }
53
54
57 public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
58 int start, int end) throws SystemException {
59 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
60 }
61
62
65 public static AnnouncementsEntry remove(
66 AnnouncementsEntry announcementsEntry) throws SystemException {
67 return getPersistence().remove(announcementsEntry);
68 }
69
70
73 public static AnnouncementsEntry update(
74 AnnouncementsEntry announcementsEntry, boolean merge)
75 throws SystemException {
76 return getPersistence().update(announcementsEntry, merge);
77 }
78
79 public static void cacheResult(
80 com.liferay.portlet.announcements.model.AnnouncementsEntry announcementsEntry) {
81 getPersistence().cacheResult(announcementsEntry);
82 }
83
84 public static void cacheResult(
85 java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> announcementsEntries) {
86 getPersistence().cacheResult(announcementsEntries);
87 }
88
89 public static com.liferay.portlet.announcements.model.AnnouncementsEntry create(
90 long entryId) {
91 return getPersistence().create(entryId);
92 }
93
94 public static com.liferay.portlet.announcements.model.AnnouncementsEntry remove(
95 long entryId)
96 throws com.liferay.portal.SystemException,
97 com.liferay.portlet.announcements.NoSuchEntryException {
98 return getPersistence().remove(entryId);
99 }
100
101
104 public static com.liferay.portlet.announcements.model.AnnouncementsEntry update(
105 com.liferay.portlet.announcements.model.AnnouncementsEntry announcementsEntry)
106 throws com.liferay.portal.SystemException {
107 return getPersistence().update(announcementsEntry);
108 }
109
110 public static com.liferay.portlet.announcements.model.AnnouncementsEntry updateImpl(
111 com.liferay.portlet.announcements.model.AnnouncementsEntry announcementsEntry,
112 boolean merge) throws com.liferay.portal.SystemException {
113 return getPersistence().updateImpl(announcementsEntry, merge);
114 }
115
116 public static com.liferay.portlet.announcements.model.AnnouncementsEntry findByPrimaryKey(
117 long entryId)
118 throws com.liferay.portal.SystemException,
119 com.liferay.portlet.announcements.NoSuchEntryException {
120 return getPersistence().findByPrimaryKey(entryId);
121 }
122
123 public static com.liferay.portlet.announcements.model.AnnouncementsEntry fetchByPrimaryKey(
124 long entryId) throws com.liferay.portal.SystemException {
125 return getPersistence().fetchByPrimaryKey(entryId);
126 }
127
128 public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByUuid(
129 java.lang.String uuid) throws com.liferay.portal.SystemException {
130 return getPersistence().findByUuid(uuid);
131 }
132
133 public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByUuid(
134 java.lang.String uuid, int start, int end)
135 throws com.liferay.portal.SystemException {
136 return getPersistence().findByUuid(uuid, start, end);
137 }
138
139 public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByUuid(
140 java.lang.String uuid, int start, int end,
141 com.liferay.portal.kernel.util.OrderByComparator obc)
142 throws com.liferay.portal.SystemException {
143 return getPersistence().findByUuid(uuid, start, end, obc);
144 }
145
146 public static com.liferay.portlet.announcements.model.AnnouncementsEntry findByUuid_First(
147 java.lang.String uuid,
148 com.liferay.portal.kernel.util.OrderByComparator obc)
149 throws com.liferay.portal.SystemException,
150 com.liferay.portlet.announcements.NoSuchEntryException {
151 return getPersistence().findByUuid_First(uuid, obc);
152 }
153
154 public static com.liferay.portlet.announcements.model.AnnouncementsEntry findByUuid_Last(
155 java.lang.String uuid,
156 com.liferay.portal.kernel.util.OrderByComparator obc)
157 throws com.liferay.portal.SystemException,
158 com.liferay.portlet.announcements.NoSuchEntryException {
159 return getPersistence().findByUuid_Last(uuid, obc);
160 }
161
162 public static com.liferay.portlet.announcements.model.AnnouncementsEntry[] findByUuid_PrevAndNext(
163 long entryId, java.lang.String uuid,
164 com.liferay.portal.kernel.util.OrderByComparator obc)
165 throws com.liferay.portal.SystemException,
166 com.liferay.portlet.announcements.NoSuchEntryException {
167 return getPersistence().findByUuid_PrevAndNext(entryId, uuid, obc);
168 }
169
170 public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByUserId(
171 long userId) throws com.liferay.portal.SystemException {
172 return getPersistence().findByUserId(userId);
173 }
174
175 public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByUserId(
176 long userId, int start, int end)
177 throws com.liferay.portal.SystemException {
178 return getPersistence().findByUserId(userId, start, end);
179 }
180
181 public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByUserId(
182 long userId, int start, int end,
183 com.liferay.portal.kernel.util.OrderByComparator obc)
184 throws com.liferay.portal.SystemException {
185 return getPersistence().findByUserId(userId, start, end, obc);
186 }
187
188 public static com.liferay.portlet.announcements.model.AnnouncementsEntry findByUserId_First(
189 long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
190 throws com.liferay.portal.SystemException,
191 com.liferay.portlet.announcements.NoSuchEntryException {
192 return getPersistence().findByUserId_First(userId, obc);
193 }
194
195 public static com.liferay.portlet.announcements.model.AnnouncementsEntry findByUserId_Last(
196 long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
197 throws com.liferay.portal.SystemException,
198 com.liferay.portlet.announcements.NoSuchEntryException {
199 return getPersistence().findByUserId_Last(userId, obc);
200 }
201
202 public static com.liferay.portlet.announcements.model.AnnouncementsEntry[] findByUserId_PrevAndNext(
203 long entryId, long userId,
204 com.liferay.portal.kernel.util.OrderByComparator obc)
205 throws com.liferay.portal.SystemException,
206 com.liferay.portlet.announcements.NoSuchEntryException {
207 return getPersistence().findByUserId_PrevAndNext(entryId, userId, obc);
208 }
209
210 public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByC_C(
211 long classNameId, long classPK)
212 throws com.liferay.portal.SystemException {
213 return getPersistence().findByC_C(classNameId, classPK);
214 }
215
216 public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByC_C(
217 long classNameId, long classPK, int start, int end)
218 throws com.liferay.portal.SystemException {
219 return getPersistence().findByC_C(classNameId, classPK, start, end);
220 }
221
222 public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByC_C(
223 long classNameId, long classPK, int start, int end,
224 com.liferay.portal.kernel.util.OrderByComparator obc)
225 throws com.liferay.portal.SystemException {
226 return getPersistence().findByC_C(classNameId, classPK, start, end, obc);
227 }
228
229 public static com.liferay.portlet.announcements.model.AnnouncementsEntry findByC_C_First(
230 long classNameId, long classPK,
231 com.liferay.portal.kernel.util.OrderByComparator obc)
232 throws com.liferay.portal.SystemException,
233 com.liferay.portlet.announcements.NoSuchEntryException {
234 return getPersistence().findByC_C_First(classNameId, classPK, obc);
235 }
236
237 public static com.liferay.portlet.announcements.model.AnnouncementsEntry findByC_C_Last(
238 long classNameId, long classPK,
239 com.liferay.portal.kernel.util.OrderByComparator obc)
240 throws com.liferay.portal.SystemException,
241 com.liferay.portlet.announcements.NoSuchEntryException {
242 return getPersistence().findByC_C_Last(classNameId, classPK, obc);
243 }
244
245 public static com.liferay.portlet.announcements.model.AnnouncementsEntry[] findByC_C_PrevAndNext(
246 long entryId, long classNameId, long classPK,
247 com.liferay.portal.kernel.util.OrderByComparator obc)
248 throws com.liferay.portal.SystemException,
249 com.liferay.portlet.announcements.NoSuchEntryException {
250 return getPersistence()
251 .findByC_C_PrevAndNext(entryId, classNameId, classPK, obc);
252 }
253
254 public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByC_C_A(
255 long classNameId, long classPK, boolean alert)
256 throws com.liferay.portal.SystemException {
257 return getPersistence().findByC_C_A(classNameId, classPK, alert);
258 }
259
260 public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByC_C_A(
261 long classNameId, long classPK, boolean alert, int start, int end)
262 throws com.liferay.portal.SystemException {
263 return getPersistence()
264 .findByC_C_A(classNameId, classPK, alert, start, end);
265 }
266
267 public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByC_C_A(
268 long classNameId, long classPK, boolean alert, int start, int end,
269 com.liferay.portal.kernel.util.OrderByComparator obc)
270 throws com.liferay.portal.SystemException {
271 return getPersistence()
272 .findByC_C_A(classNameId, classPK, alert, start, end, obc);
273 }
274
275 public static com.liferay.portlet.announcements.model.AnnouncementsEntry findByC_C_A_First(
276 long classNameId, long classPK, boolean alert,
277 com.liferay.portal.kernel.util.OrderByComparator obc)
278 throws com.liferay.portal.SystemException,
279 com.liferay.portlet.announcements.NoSuchEntryException {
280 return getPersistence()
281 .findByC_C_A_First(classNameId, classPK, alert, obc);
282 }
283
284 public static com.liferay.portlet.announcements.model.AnnouncementsEntry findByC_C_A_Last(
285 long classNameId, long classPK, boolean alert,
286 com.liferay.portal.kernel.util.OrderByComparator obc)
287 throws com.liferay.portal.SystemException,
288 com.liferay.portlet.announcements.NoSuchEntryException {
289 return getPersistence()
290 .findByC_C_A_Last(classNameId, classPK, alert, obc);
291 }
292
293 public static com.liferay.portlet.announcements.model.AnnouncementsEntry[] findByC_C_A_PrevAndNext(
294 long entryId, long classNameId, long classPK, boolean alert,
295 com.liferay.portal.kernel.util.OrderByComparator obc)
296 throws com.liferay.portal.SystemException,
297 com.liferay.portlet.announcements.NoSuchEntryException {
298 return getPersistence()
299 .findByC_C_A_PrevAndNext(entryId, classNameId, classPK,
300 alert, obc);
301 }
302
303 public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findAll()
304 throws com.liferay.portal.SystemException {
305 return getPersistence().findAll();
306 }
307
308 public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findAll(
309 int start, int end) throws com.liferay.portal.SystemException {
310 return getPersistence().findAll(start, end);
311 }
312
313 public static java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findAll(
314 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
315 throws com.liferay.portal.SystemException {
316 return getPersistence().findAll(start, end, obc);
317 }
318
319 public static void removeByUuid(java.lang.String uuid)
320 throws com.liferay.portal.SystemException {
321 getPersistence().removeByUuid(uuid);
322 }
323
324 public static void removeByUserId(long userId)
325 throws com.liferay.portal.SystemException {
326 getPersistence().removeByUserId(userId);
327 }
328
329 public static void removeByC_C(long classNameId, long classPK)
330 throws com.liferay.portal.SystemException {
331 getPersistence().removeByC_C(classNameId, classPK);
332 }
333
334 public static void removeByC_C_A(long classNameId, long classPK,
335 boolean alert) throws com.liferay.portal.SystemException {
336 getPersistence().removeByC_C_A(classNameId, classPK, alert);
337 }
338
339 public static void removeAll() throws com.liferay.portal.SystemException {
340 getPersistence().removeAll();
341 }
342
343 public static int countByUuid(java.lang.String uuid)
344 throws com.liferay.portal.SystemException {
345 return getPersistence().countByUuid(uuid);
346 }
347
348 public static int countByUserId(long userId)
349 throws com.liferay.portal.SystemException {
350 return getPersistence().countByUserId(userId);
351 }
352
353 public static int countByC_C(long classNameId, long classPK)
354 throws com.liferay.portal.SystemException {
355 return getPersistence().countByC_C(classNameId, classPK);
356 }
357
358 public static int countByC_C_A(long classNameId, long classPK, boolean alert)
359 throws com.liferay.portal.SystemException {
360 return getPersistence().countByC_C_A(classNameId, classPK, alert);
361 }
362
363 public static int countAll() throws com.liferay.portal.SystemException {
364 return getPersistence().countAll();
365 }
366
367 public static AnnouncementsEntryPersistence getPersistence() {
368 if (_persistence == null) {
369 _persistence = (AnnouncementsEntryPersistence)PortalBeanLocatorUtil.locate(AnnouncementsEntryPersistence.class.getName());
370 }
371
372 return _persistence;
373 }
374
375 public void setPersistence(AnnouncementsEntryPersistence persistence) {
376 _persistence = persistence;
377 }
378
379 private static AnnouncementsEntryPersistence _persistence;
380 }