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