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.BookmarksFolder;
22
23 import java.util.List;
24
25
38 public class BookmarksFolderUtil {
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 BookmarksFolder remove(BookmarksFolder bookmarksFolder)
66 throws SystemException {
67 return getPersistence().remove(bookmarksFolder);
68 }
69
70
73 public static BookmarksFolder update(BookmarksFolder bookmarksFolder,
74 boolean merge) throws SystemException {
75 return getPersistence().update(bookmarksFolder, merge);
76 }
77
78 public static void cacheResult(
79 com.liferay.portlet.bookmarks.model.BookmarksFolder bookmarksFolder) {
80 getPersistence().cacheResult(bookmarksFolder);
81 }
82
83 public static void cacheResult(
84 java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> bookmarksFolders) {
85 getPersistence().cacheResult(bookmarksFolders);
86 }
87
88 public static com.liferay.portlet.bookmarks.model.BookmarksFolder create(
89 long folderId) {
90 return getPersistence().create(folderId);
91 }
92
93 public static com.liferay.portlet.bookmarks.model.BookmarksFolder remove(
94 long folderId)
95 throws com.liferay.portal.SystemException,
96 com.liferay.portlet.bookmarks.NoSuchFolderException {
97 return getPersistence().remove(folderId);
98 }
99
100
103 public static com.liferay.portlet.bookmarks.model.BookmarksFolder update(
104 com.liferay.portlet.bookmarks.model.BookmarksFolder bookmarksFolder)
105 throws com.liferay.portal.SystemException {
106 return getPersistence().update(bookmarksFolder);
107 }
108
109 public static com.liferay.portlet.bookmarks.model.BookmarksFolder updateImpl(
110 com.liferay.portlet.bookmarks.model.BookmarksFolder bookmarksFolder,
111 boolean merge) throws com.liferay.portal.SystemException {
112 return getPersistence().updateImpl(bookmarksFolder, merge);
113 }
114
115 public static com.liferay.portlet.bookmarks.model.BookmarksFolder findByPrimaryKey(
116 long folderId)
117 throws com.liferay.portal.SystemException,
118 com.liferay.portlet.bookmarks.NoSuchFolderException {
119 return getPersistence().findByPrimaryKey(folderId);
120 }
121
122 public static com.liferay.portlet.bookmarks.model.BookmarksFolder fetchByPrimaryKey(
123 long folderId) throws com.liferay.portal.SystemException {
124 return getPersistence().fetchByPrimaryKey(folderId);
125 }
126
127 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> 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.BookmarksFolder> 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.BookmarksFolder> 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.BookmarksFolder 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.NoSuchFolderException {
150 return getPersistence().findByUuid_First(uuid, orderByComparator);
151 }
152
153 public static com.liferay.portlet.bookmarks.model.BookmarksFolder 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.NoSuchFolderException {
158 return getPersistence().findByUuid_Last(uuid, orderByComparator);
159 }
160
161 public static com.liferay.portlet.bookmarks.model.BookmarksFolder[] findByUuid_PrevAndNext(
162 long folderId, java.lang.String uuid,
163 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
164 throws com.liferay.portal.SystemException,
165 com.liferay.portlet.bookmarks.NoSuchFolderException {
166 return getPersistence()
167 .findByUuid_PrevAndNext(folderId, uuid, orderByComparator);
168 }
169
170 public static com.liferay.portlet.bookmarks.model.BookmarksFolder findByUUID_G(
171 java.lang.String uuid, long groupId)
172 throws com.liferay.portal.SystemException,
173 com.liferay.portlet.bookmarks.NoSuchFolderException {
174 return getPersistence().findByUUID_G(uuid, groupId);
175 }
176
177 public static com.liferay.portlet.bookmarks.model.BookmarksFolder 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.BookmarksFolder 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.BookmarksFolder> 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.BookmarksFolder> 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.BookmarksFolder> 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.BookmarksFolder findByGroupId_First(
209 long groupId,
210 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
211 throws com.liferay.portal.SystemException,
212 com.liferay.portlet.bookmarks.NoSuchFolderException {
213 return getPersistence().findByGroupId_First(groupId, orderByComparator);
214 }
215
216 public static com.liferay.portlet.bookmarks.model.BookmarksFolder findByGroupId_Last(
217 long groupId,
218 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
219 throws com.liferay.portal.SystemException,
220 com.liferay.portlet.bookmarks.NoSuchFolderException {
221 return getPersistence().findByGroupId_Last(groupId, orderByComparator);
222 }
223
224 public static com.liferay.portlet.bookmarks.model.BookmarksFolder[] findByGroupId_PrevAndNext(
225 long folderId, long groupId,
226 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
227 throws com.liferay.portal.SystemException,
228 com.liferay.portlet.bookmarks.NoSuchFolderException {
229 return getPersistence()
230 .findByGroupId_PrevAndNext(folderId, groupId,
231 orderByComparator);
232 }
233
234 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findByCompanyId(
235 long companyId) throws com.liferay.portal.SystemException {
236 return getPersistence().findByCompanyId(companyId);
237 }
238
239 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findByCompanyId(
240 long companyId, int start, int end)
241 throws com.liferay.portal.SystemException {
242 return getPersistence().findByCompanyId(companyId, start, end);
243 }
244
245 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findByCompanyId(
246 long companyId, int start, int end,
247 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
248 throws com.liferay.portal.SystemException {
249 return getPersistence()
250 .findByCompanyId(companyId, start, end, orderByComparator);
251 }
252
253 public static com.liferay.portlet.bookmarks.model.BookmarksFolder findByCompanyId_First(
254 long companyId,
255 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
256 throws com.liferay.portal.SystemException,
257 com.liferay.portlet.bookmarks.NoSuchFolderException {
258 return getPersistence()
259 .findByCompanyId_First(companyId, orderByComparator);
260 }
261
262 public static com.liferay.portlet.bookmarks.model.BookmarksFolder findByCompanyId_Last(
263 long companyId,
264 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
265 throws com.liferay.portal.SystemException,
266 com.liferay.portlet.bookmarks.NoSuchFolderException {
267 return getPersistence()
268 .findByCompanyId_Last(companyId, orderByComparator);
269 }
270
271 public static com.liferay.portlet.bookmarks.model.BookmarksFolder[] findByCompanyId_PrevAndNext(
272 long folderId, long companyId,
273 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
274 throws com.liferay.portal.SystemException,
275 com.liferay.portlet.bookmarks.NoSuchFolderException {
276 return getPersistence()
277 .findByCompanyId_PrevAndNext(folderId, companyId,
278 orderByComparator);
279 }
280
281 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findByG_P(
282 long groupId, long parentFolderId)
283 throws com.liferay.portal.SystemException {
284 return getPersistence().findByG_P(groupId, parentFolderId);
285 }
286
287 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findByG_P(
288 long groupId, long parentFolderId, int start, int end)
289 throws com.liferay.portal.SystemException {
290 return getPersistence().findByG_P(groupId, parentFolderId, start, end);
291 }
292
293 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findByG_P(
294 long groupId, long parentFolderId, int start, int end,
295 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
296 throws com.liferay.portal.SystemException {
297 return getPersistence()
298 .findByG_P(groupId, parentFolderId, start, end,
299 orderByComparator);
300 }
301
302 public static com.liferay.portlet.bookmarks.model.BookmarksFolder findByG_P_First(
303 long groupId, long parentFolderId,
304 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
305 throws com.liferay.portal.SystemException,
306 com.liferay.portlet.bookmarks.NoSuchFolderException {
307 return getPersistence()
308 .findByG_P_First(groupId, parentFolderId, orderByComparator);
309 }
310
311 public static com.liferay.portlet.bookmarks.model.BookmarksFolder findByG_P_Last(
312 long groupId, long parentFolderId,
313 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
314 throws com.liferay.portal.SystemException,
315 com.liferay.portlet.bookmarks.NoSuchFolderException {
316 return getPersistence()
317 .findByG_P_Last(groupId, parentFolderId, orderByComparator);
318 }
319
320 public static com.liferay.portlet.bookmarks.model.BookmarksFolder[] findByG_P_PrevAndNext(
321 long folderId, long groupId, long parentFolderId,
322 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
323 throws com.liferay.portal.SystemException,
324 com.liferay.portlet.bookmarks.NoSuchFolderException {
325 return getPersistence()
326 .findByG_P_PrevAndNext(folderId, groupId, parentFolderId,
327 orderByComparator);
328 }
329
330 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findAll()
331 throws com.liferay.portal.SystemException {
332 return getPersistence().findAll();
333 }
334
335 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findAll(
336 int start, int end) throws com.liferay.portal.SystemException {
337 return getPersistence().findAll(start, end);
338 }
339
340 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findAll(
341 int start, int end,
342 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
343 throws com.liferay.portal.SystemException {
344 return getPersistence().findAll(start, end, orderByComparator);
345 }
346
347 public static void removeByUuid(java.lang.String uuid)
348 throws com.liferay.portal.SystemException {
349 getPersistence().removeByUuid(uuid);
350 }
351
352 public static void removeByUUID_G(java.lang.String uuid, long groupId)
353 throws com.liferay.portal.SystemException,
354 com.liferay.portlet.bookmarks.NoSuchFolderException {
355 getPersistence().removeByUUID_G(uuid, groupId);
356 }
357
358 public static void removeByGroupId(long groupId)
359 throws com.liferay.portal.SystemException {
360 getPersistence().removeByGroupId(groupId);
361 }
362
363 public static void removeByCompanyId(long companyId)
364 throws com.liferay.portal.SystemException {
365 getPersistence().removeByCompanyId(companyId);
366 }
367
368 public static void removeByG_P(long groupId, long parentFolderId)
369 throws com.liferay.portal.SystemException {
370 getPersistence().removeByG_P(groupId, parentFolderId);
371 }
372
373 public static void removeAll() throws com.liferay.portal.SystemException {
374 getPersistence().removeAll();
375 }
376
377 public static int countByUuid(java.lang.String uuid)
378 throws com.liferay.portal.SystemException {
379 return getPersistence().countByUuid(uuid);
380 }
381
382 public static int countByUUID_G(java.lang.String uuid, long groupId)
383 throws com.liferay.portal.SystemException {
384 return getPersistence().countByUUID_G(uuid, groupId);
385 }
386
387 public static int countByGroupId(long groupId)
388 throws com.liferay.portal.SystemException {
389 return getPersistence().countByGroupId(groupId);
390 }
391
392 public static int countByCompanyId(long companyId)
393 throws com.liferay.portal.SystemException {
394 return getPersistence().countByCompanyId(companyId);
395 }
396
397 public static int countByG_P(long groupId, long parentFolderId)
398 throws com.liferay.portal.SystemException {
399 return getPersistence().countByG_P(groupId, parentFolderId);
400 }
401
402 public static int countAll() throws com.liferay.portal.SystemException {
403 return getPersistence().countAll();
404 }
405
406 public static BookmarksFolderPersistence getPersistence() {
407 if (_persistence == null) {
408 _persistence = (BookmarksFolderPersistence)PortalBeanLocatorUtil.locate(BookmarksFolderPersistence.class.getName());
409 }
410
411 return _persistence;
412 }
413
414 public void setPersistence(BookmarksFolderPersistence persistence) {
415 _persistence = persistence;
416 }
417
418 private static BookmarksFolderPersistence _persistence;
419 }