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