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