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