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 obc)
141 throws com.liferay.portal.SystemException {
142 return getPersistence().findByUuid(uuid, start, end, obc);
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 obc)
148 throws com.liferay.portal.SystemException,
149 com.liferay.portlet.bookmarks.NoSuchEntryException {
150 return getPersistence().findByUuid_First(uuid, obc);
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 obc)
156 throws com.liferay.portal.SystemException,
157 com.liferay.portlet.bookmarks.NoSuchEntryException {
158 return getPersistence().findByUuid_Last(uuid, obc);
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 obc)
164 throws com.liferay.portal.SystemException,
165 com.liferay.portlet.bookmarks.NoSuchEntryException {
166 return getPersistence().findByUuid_PrevAndNext(entryId, uuid, obc);
167 }
168
169 public static com.liferay.portlet.bookmarks.model.BookmarksEntry findByUUID_G(
170 java.lang.String uuid, long groupId)
171 throws com.liferay.portal.SystemException,
172 com.liferay.portlet.bookmarks.NoSuchEntryException {
173 return getPersistence().findByUUID_G(uuid, groupId);
174 }
175
176 public static com.liferay.portlet.bookmarks.model.BookmarksEntry fetchByUUID_G(
177 java.lang.String uuid, long groupId)
178 throws com.liferay.portal.SystemException {
179 return getPersistence().fetchByUUID_G(uuid, groupId);
180 }
181
182 public static com.liferay.portlet.bookmarks.model.BookmarksEntry fetchByUUID_G(
183 java.lang.String uuid, long groupId, boolean retrieveFromCache)
184 throws com.liferay.portal.SystemException {
185 return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
186 }
187
188 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findByGroupId(
189 long groupId) throws com.liferay.portal.SystemException {
190 return getPersistence().findByGroupId(groupId);
191 }
192
193 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findByGroupId(
194 long groupId, int start, int end)
195 throws com.liferay.portal.SystemException {
196 return getPersistence().findByGroupId(groupId, start, end);
197 }
198
199 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findByGroupId(
200 long groupId, int start, int end,
201 com.liferay.portal.kernel.util.OrderByComparator obc)
202 throws com.liferay.portal.SystemException {
203 return getPersistence().findByGroupId(groupId, start, end, obc);
204 }
205
206 public static com.liferay.portlet.bookmarks.model.BookmarksEntry findByGroupId_First(
207 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
208 throws com.liferay.portal.SystemException,
209 com.liferay.portlet.bookmarks.NoSuchEntryException {
210 return getPersistence().findByGroupId_First(groupId, obc);
211 }
212
213 public static com.liferay.portlet.bookmarks.model.BookmarksEntry findByGroupId_Last(
214 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
215 throws com.liferay.portal.SystemException,
216 com.liferay.portlet.bookmarks.NoSuchEntryException {
217 return getPersistence().findByGroupId_Last(groupId, obc);
218 }
219
220 public static com.liferay.portlet.bookmarks.model.BookmarksEntry[] findByGroupId_PrevAndNext(
221 long entryId, long groupId,
222 com.liferay.portal.kernel.util.OrderByComparator obc)
223 throws com.liferay.portal.SystemException,
224 com.liferay.portlet.bookmarks.NoSuchEntryException {
225 return getPersistence().findByGroupId_PrevAndNext(entryId, groupId, obc);
226 }
227
228 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findByFolderId(
229 long folderId) throws com.liferay.portal.SystemException {
230 return getPersistence().findByFolderId(folderId);
231 }
232
233 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findByFolderId(
234 long folderId, int start, int end)
235 throws com.liferay.portal.SystemException {
236 return getPersistence().findByFolderId(folderId, start, end);
237 }
238
239 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findByFolderId(
240 long folderId, int start, int end,
241 com.liferay.portal.kernel.util.OrderByComparator obc)
242 throws com.liferay.portal.SystemException {
243 return getPersistence().findByFolderId(folderId, start, end, obc);
244 }
245
246 public static com.liferay.portlet.bookmarks.model.BookmarksEntry findByFolderId_First(
247 long folderId, com.liferay.portal.kernel.util.OrderByComparator obc)
248 throws com.liferay.portal.SystemException,
249 com.liferay.portlet.bookmarks.NoSuchEntryException {
250 return getPersistence().findByFolderId_First(folderId, obc);
251 }
252
253 public static com.liferay.portlet.bookmarks.model.BookmarksEntry findByFolderId_Last(
254 long folderId, com.liferay.portal.kernel.util.OrderByComparator obc)
255 throws com.liferay.portal.SystemException,
256 com.liferay.portlet.bookmarks.NoSuchEntryException {
257 return getPersistence().findByFolderId_Last(folderId, obc);
258 }
259
260 public static com.liferay.portlet.bookmarks.model.BookmarksEntry[] findByFolderId_PrevAndNext(
261 long entryId, long folderId,
262 com.liferay.portal.kernel.util.OrderByComparator obc)
263 throws com.liferay.portal.SystemException,
264 com.liferay.portlet.bookmarks.NoSuchEntryException {
265 return getPersistence()
266 .findByFolderId_PrevAndNext(entryId, folderId, obc);
267 }
268
269 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findByG_U(
270 long groupId, long userId) throws com.liferay.portal.SystemException {
271 return getPersistence().findByG_U(groupId, userId);
272 }
273
274 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findByG_U(
275 long groupId, long userId, int start, int end)
276 throws com.liferay.portal.SystemException {
277 return getPersistence().findByG_U(groupId, userId, start, end);
278 }
279
280 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findByG_U(
281 long groupId, long userId, int start, int end,
282 com.liferay.portal.kernel.util.OrderByComparator obc)
283 throws com.liferay.portal.SystemException {
284 return getPersistence().findByG_U(groupId, userId, start, end, obc);
285 }
286
287 public static com.liferay.portlet.bookmarks.model.BookmarksEntry findByG_U_First(
288 long groupId, long userId,
289 com.liferay.portal.kernel.util.OrderByComparator obc)
290 throws com.liferay.portal.SystemException,
291 com.liferay.portlet.bookmarks.NoSuchEntryException {
292 return getPersistence().findByG_U_First(groupId, userId, obc);
293 }
294
295 public static com.liferay.portlet.bookmarks.model.BookmarksEntry findByG_U_Last(
296 long groupId, long userId,
297 com.liferay.portal.kernel.util.OrderByComparator obc)
298 throws com.liferay.portal.SystemException,
299 com.liferay.portlet.bookmarks.NoSuchEntryException {
300 return getPersistence().findByG_U_Last(groupId, userId, obc);
301 }
302
303 public static com.liferay.portlet.bookmarks.model.BookmarksEntry[] findByG_U_PrevAndNext(
304 long entryId, long groupId, long userId,
305 com.liferay.portal.kernel.util.OrderByComparator obc)
306 throws com.liferay.portal.SystemException,
307 com.liferay.portlet.bookmarks.NoSuchEntryException {
308 return getPersistence()
309 .findByG_U_PrevAndNext(entryId, groupId, userId, obc);
310 }
311
312 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findAll()
313 throws com.liferay.portal.SystemException {
314 return getPersistence().findAll();
315 }
316
317 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findAll(
318 int start, int end) throws com.liferay.portal.SystemException {
319 return getPersistence().findAll(start, end);
320 }
321
322 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findAll(
323 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
324 throws com.liferay.portal.SystemException {
325 return getPersistence().findAll(start, end, obc);
326 }
327
328 public static void removeByUuid(java.lang.String uuid)
329 throws com.liferay.portal.SystemException {
330 getPersistence().removeByUuid(uuid);
331 }
332
333 public static void removeByUUID_G(java.lang.String uuid, long groupId)
334 throws com.liferay.portal.SystemException,
335 com.liferay.portlet.bookmarks.NoSuchEntryException {
336 getPersistence().removeByUUID_G(uuid, groupId);
337 }
338
339 public static void removeByGroupId(long groupId)
340 throws com.liferay.portal.SystemException {
341 getPersistence().removeByGroupId(groupId);
342 }
343
344 public static void removeByFolderId(long folderId)
345 throws com.liferay.portal.SystemException {
346 getPersistence().removeByFolderId(folderId);
347 }
348
349 public static void removeByG_U(long groupId, long userId)
350 throws com.liferay.portal.SystemException {
351 getPersistence().removeByG_U(groupId, userId);
352 }
353
354 public static void removeAll() throws com.liferay.portal.SystemException {
355 getPersistence().removeAll();
356 }
357
358 public static int countByUuid(java.lang.String uuid)
359 throws com.liferay.portal.SystemException {
360 return getPersistence().countByUuid(uuid);
361 }
362
363 public static int countByUUID_G(java.lang.String uuid, long groupId)
364 throws com.liferay.portal.SystemException {
365 return getPersistence().countByUUID_G(uuid, groupId);
366 }
367
368 public static int countByGroupId(long groupId)
369 throws com.liferay.portal.SystemException {
370 return getPersistence().countByGroupId(groupId);
371 }
372
373 public static int countByFolderId(long folderId)
374 throws com.liferay.portal.SystemException {
375 return getPersistence().countByFolderId(folderId);
376 }
377
378 public static int countByG_U(long groupId, long userId)
379 throws com.liferay.portal.SystemException {
380 return getPersistence().countByG_U(groupId, userId);
381 }
382
383 public static int countAll() throws com.liferay.portal.SystemException {
384 return getPersistence().countAll();
385 }
386
387 public static BookmarksEntryPersistence getPersistence() {
388 if (_persistence == null) {
389 _persistence = (BookmarksEntryPersistence)PortalBeanLocatorUtil.locate(BookmarksEntryPersistence.class.getName());
390 }
391
392 return _persistence;
393 }
394
395 public void setPersistence(BookmarksEntryPersistence persistence) {
396 _persistence = persistence;
397 }
398
399 private static BookmarksEntryPersistence _persistence;
400 }