1
14
15 package com.liferay.portlet.bookmarks.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
21 import com.liferay.portlet.bookmarks.model.BookmarksEntry;
22
23 import java.util.List;
24
25
38 public class BookmarksEntryUtil {
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 BookmarksEntry remove(BookmarksEntry bookmarksEntry)
66 throws SystemException {
67 return getPersistence().remove(bookmarksEntry);
68 }
69
70
73 public static BookmarksEntry update(BookmarksEntry bookmarksEntry,
74 boolean merge) throws SystemException {
75 return getPersistence().update(bookmarksEntry, merge);
76 }
77
78 public static void cacheResult(
79 com.liferay.portlet.bookmarks.model.BookmarksEntry bookmarksEntry) {
80 getPersistence().cacheResult(bookmarksEntry);
81 }
82
83 public static void cacheResult(
84 java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> bookmarksEntries) {
85 getPersistence().cacheResult(bookmarksEntries);
86 }
87
88 public static com.liferay.portlet.bookmarks.model.BookmarksEntry create(
89 long entryId) {
90 return getPersistence().create(entryId);
91 }
92
93 public static com.liferay.portlet.bookmarks.model.BookmarksEntry remove(
94 long entryId)
95 throws com.liferay.portal.kernel.exception.SystemException,
96 com.liferay.portlet.bookmarks.NoSuchEntryException {
97 return getPersistence().remove(entryId);
98 }
99
100 public static com.liferay.portlet.bookmarks.model.BookmarksEntry updateImpl(
101 com.liferay.portlet.bookmarks.model.BookmarksEntry bookmarksEntry,
102 boolean merge)
103 throws com.liferay.portal.kernel.exception.SystemException {
104 return getPersistence().updateImpl(bookmarksEntry, merge);
105 }
106
107 public static com.liferay.portlet.bookmarks.model.BookmarksEntry findByPrimaryKey(
108 long entryId)
109 throws com.liferay.portal.kernel.exception.SystemException,
110 com.liferay.portlet.bookmarks.NoSuchEntryException {
111 return getPersistence().findByPrimaryKey(entryId);
112 }
113
114 public static com.liferay.portlet.bookmarks.model.BookmarksEntry fetchByPrimaryKey(
115 long entryId)
116 throws com.liferay.portal.kernel.exception.SystemException {
117 return getPersistence().fetchByPrimaryKey(entryId);
118 }
119
120 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findByUuid(
121 java.lang.String uuid)
122 throws com.liferay.portal.kernel.exception.SystemException {
123 return getPersistence().findByUuid(uuid);
124 }
125
126 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findByUuid(
127 java.lang.String uuid, int start, int end)
128 throws com.liferay.portal.kernel.exception.SystemException {
129 return getPersistence().findByUuid(uuid, start, end);
130 }
131
132 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findByUuid(
133 java.lang.String uuid, int start, int end,
134 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
135 throws com.liferay.portal.kernel.exception.SystemException {
136 return getPersistence().findByUuid(uuid, start, end, orderByComparator);
137 }
138
139 public static com.liferay.portlet.bookmarks.model.BookmarksEntry findByUuid_First(
140 java.lang.String uuid,
141 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
142 throws com.liferay.portal.kernel.exception.SystemException,
143 com.liferay.portlet.bookmarks.NoSuchEntryException {
144 return getPersistence().findByUuid_First(uuid, orderByComparator);
145 }
146
147 public static com.liferay.portlet.bookmarks.model.BookmarksEntry findByUuid_Last(
148 java.lang.String uuid,
149 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
150 throws com.liferay.portal.kernel.exception.SystemException,
151 com.liferay.portlet.bookmarks.NoSuchEntryException {
152 return getPersistence().findByUuid_Last(uuid, orderByComparator);
153 }
154
155 public static com.liferay.portlet.bookmarks.model.BookmarksEntry[] findByUuid_PrevAndNext(
156 long entryId, java.lang.String uuid,
157 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
158 throws com.liferay.portal.kernel.exception.SystemException,
159 com.liferay.portlet.bookmarks.NoSuchEntryException {
160 return getPersistence()
161 .findByUuid_PrevAndNext(entryId, uuid, orderByComparator);
162 }
163
164 public static com.liferay.portlet.bookmarks.model.BookmarksEntry findByUUID_G(
165 java.lang.String uuid, long groupId)
166 throws com.liferay.portal.kernel.exception.SystemException,
167 com.liferay.portlet.bookmarks.NoSuchEntryException {
168 return getPersistence().findByUUID_G(uuid, groupId);
169 }
170
171 public static com.liferay.portlet.bookmarks.model.BookmarksEntry fetchByUUID_G(
172 java.lang.String uuid, long groupId)
173 throws com.liferay.portal.kernel.exception.SystemException {
174 return getPersistence().fetchByUUID_G(uuid, groupId);
175 }
176
177 public static com.liferay.portlet.bookmarks.model.BookmarksEntry fetchByUUID_G(
178 java.lang.String uuid, long groupId, boolean retrieveFromCache)
179 throws com.liferay.portal.kernel.exception.SystemException {
180 return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
181 }
182
183 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findByGroupId(
184 long groupId)
185 throws com.liferay.portal.kernel.exception.SystemException {
186 return getPersistence().findByGroupId(groupId);
187 }
188
189 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findByGroupId(
190 long groupId, int start, int end)
191 throws com.liferay.portal.kernel.exception.SystemException {
192 return getPersistence().findByGroupId(groupId, start, end);
193 }
194
195 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findByGroupId(
196 long groupId, int start, int end,
197 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
198 throws com.liferay.portal.kernel.exception.SystemException {
199 return getPersistence()
200 .findByGroupId(groupId, start, end, orderByComparator);
201 }
202
203 public static com.liferay.portlet.bookmarks.model.BookmarksEntry findByGroupId_First(
204 long groupId,
205 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
206 throws com.liferay.portal.kernel.exception.SystemException,
207 com.liferay.portlet.bookmarks.NoSuchEntryException {
208 return getPersistence().findByGroupId_First(groupId, orderByComparator);
209 }
210
211 public static com.liferay.portlet.bookmarks.model.BookmarksEntry findByGroupId_Last(
212 long groupId,
213 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
214 throws com.liferay.portal.kernel.exception.SystemException,
215 com.liferay.portlet.bookmarks.NoSuchEntryException {
216 return getPersistence().findByGroupId_Last(groupId, orderByComparator);
217 }
218
219 public static com.liferay.portlet.bookmarks.model.BookmarksEntry[] findByGroupId_PrevAndNext(
220 long entryId, long groupId,
221 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
222 throws com.liferay.portal.kernel.exception.SystemException,
223 com.liferay.portlet.bookmarks.NoSuchEntryException {
224 return getPersistence()
225 .findByGroupId_PrevAndNext(entryId, groupId,
226 orderByComparator);
227 }
228
229 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findByG_U(
230 long groupId, long userId)
231 throws com.liferay.portal.kernel.exception.SystemException {
232 return getPersistence().findByG_U(groupId, userId);
233 }
234
235 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findByG_U(
236 long groupId, long userId, int start, int end)
237 throws com.liferay.portal.kernel.exception.SystemException {
238 return getPersistence().findByG_U(groupId, userId, start, end);
239 }
240
241 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findByG_U(
242 long groupId, long userId, int start, int end,
243 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
244 throws com.liferay.portal.kernel.exception.SystemException {
245 return getPersistence()
246 .findByG_U(groupId, userId, start, end, orderByComparator);
247 }
248
249 public static com.liferay.portlet.bookmarks.model.BookmarksEntry findByG_U_First(
250 long groupId, long userId,
251 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
252 throws com.liferay.portal.kernel.exception.SystemException,
253 com.liferay.portlet.bookmarks.NoSuchEntryException {
254 return getPersistence()
255 .findByG_U_First(groupId, userId, orderByComparator);
256 }
257
258 public static com.liferay.portlet.bookmarks.model.BookmarksEntry findByG_U_Last(
259 long groupId, long userId,
260 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
261 throws com.liferay.portal.kernel.exception.SystemException,
262 com.liferay.portlet.bookmarks.NoSuchEntryException {
263 return getPersistence()
264 .findByG_U_Last(groupId, userId, orderByComparator);
265 }
266
267 public static com.liferay.portlet.bookmarks.model.BookmarksEntry[] findByG_U_PrevAndNext(
268 long entryId, long groupId, long userId,
269 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
270 throws com.liferay.portal.kernel.exception.SystemException,
271 com.liferay.portlet.bookmarks.NoSuchEntryException {
272 return getPersistence()
273 .findByG_U_PrevAndNext(entryId, groupId, userId,
274 orderByComparator);
275 }
276
277 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findByG_F(
278 long groupId, long folderId)
279 throws com.liferay.portal.kernel.exception.SystemException {
280 return getPersistence().findByG_F(groupId, folderId);
281 }
282
283 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findByG_F(
284 long groupId, long folderId, int start, int end)
285 throws com.liferay.portal.kernel.exception.SystemException {
286 return getPersistence().findByG_F(groupId, folderId, start, end);
287 }
288
289 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findByG_F(
290 long groupId, long folderId, int start, int end,
291 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
292 throws com.liferay.portal.kernel.exception.SystemException {
293 return getPersistence()
294 .findByG_F(groupId, folderId, start, end, orderByComparator);
295 }
296
297 public static com.liferay.portlet.bookmarks.model.BookmarksEntry findByG_F_First(
298 long groupId, long folderId,
299 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
300 throws com.liferay.portal.kernel.exception.SystemException,
301 com.liferay.portlet.bookmarks.NoSuchEntryException {
302 return getPersistence()
303 .findByG_F_First(groupId, folderId, orderByComparator);
304 }
305
306 public static com.liferay.portlet.bookmarks.model.BookmarksEntry findByG_F_Last(
307 long groupId, long folderId,
308 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
309 throws com.liferay.portal.kernel.exception.SystemException,
310 com.liferay.portlet.bookmarks.NoSuchEntryException {
311 return getPersistence()
312 .findByG_F_Last(groupId, folderId, orderByComparator);
313 }
314
315 public static com.liferay.portlet.bookmarks.model.BookmarksEntry[] findByG_F_PrevAndNext(
316 long entryId, long groupId, long folderId,
317 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
318 throws com.liferay.portal.kernel.exception.SystemException,
319 com.liferay.portlet.bookmarks.NoSuchEntryException {
320 return getPersistence()
321 .findByG_F_PrevAndNext(entryId, groupId, folderId,
322 orderByComparator);
323 }
324
325 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findAll()
326 throws com.liferay.portal.kernel.exception.SystemException {
327 return getPersistence().findAll();
328 }
329
330 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findAll(
331 int start, int end)
332 throws com.liferay.portal.kernel.exception.SystemException {
333 return getPersistence().findAll(start, end);
334 }
335
336 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findAll(
337 int start, int end,
338 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
339 throws com.liferay.portal.kernel.exception.SystemException {
340 return getPersistence().findAll(start, end, orderByComparator);
341 }
342
343 public static void removeByUuid(java.lang.String uuid)
344 throws com.liferay.portal.kernel.exception.SystemException {
345 getPersistence().removeByUuid(uuid);
346 }
347
348 public static void removeByUUID_G(java.lang.String uuid, long groupId)
349 throws com.liferay.portal.kernel.exception.SystemException,
350 com.liferay.portlet.bookmarks.NoSuchEntryException {
351 getPersistence().removeByUUID_G(uuid, groupId);
352 }
353
354 public static void removeByGroupId(long groupId)
355 throws com.liferay.portal.kernel.exception.SystemException {
356 getPersistence().removeByGroupId(groupId);
357 }
358
359 public static void removeByG_U(long groupId, long userId)
360 throws com.liferay.portal.kernel.exception.SystemException {
361 getPersistence().removeByG_U(groupId, userId);
362 }
363
364 public static void removeByG_F(long groupId, long folderId)
365 throws com.liferay.portal.kernel.exception.SystemException {
366 getPersistence().removeByG_F(groupId, folderId);
367 }
368
369 public static void removeAll()
370 throws com.liferay.portal.kernel.exception.SystemException {
371 getPersistence().removeAll();
372 }
373
374 public static int countByUuid(java.lang.String uuid)
375 throws com.liferay.portal.kernel.exception.SystemException {
376 return getPersistence().countByUuid(uuid);
377 }
378
379 public static int countByUUID_G(java.lang.String uuid, long groupId)
380 throws com.liferay.portal.kernel.exception.SystemException {
381 return getPersistence().countByUUID_G(uuid, groupId);
382 }
383
384 public static int countByGroupId(long groupId)
385 throws com.liferay.portal.kernel.exception.SystemException {
386 return getPersistence().countByGroupId(groupId);
387 }
388
389 public static int countByG_U(long groupId, long userId)
390 throws com.liferay.portal.kernel.exception.SystemException {
391 return getPersistence().countByG_U(groupId, userId);
392 }
393
394 public static int countByG_F(long groupId, long folderId)
395 throws com.liferay.portal.kernel.exception.SystemException {
396 return getPersistence().countByG_F(groupId, folderId);
397 }
398
399 public static int countAll()
400 throws com.liferay.portal.kernel.exception.SystemException {
401 return getPersistence().countAll();
402 }
403
404 public static BookmarksEntryPersistence getPersistence() {
405 if (_persistence == null) {
406 _persistence = (BookmarksEntryPersistence)PortalBeanLocatorUtil.locate(BookmarksEntryPersistence.class.getName());
407 }
408
409 return _persistence;
410 }
411
412 public void setPersistence(BookmarksEntryPersistence persistence) {
413 _persistence = persistence;
414 }
415
416 private static BookmarksEntryPersistence _persistence;
417 }