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.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.kernel.exception.SystemException,
96 com.liferay.portlet.bookmarks.NoSuchFolderException {
97 return getPersistence().remove(folderId);
98 }
99
100 public static com.liferay.portlet.bookmarks.model.BookmarksFolder updateImpl(
101 com.liferay.portlet.bookmarks.model.BookmarksFolder bookmarksFolder,
102 boolean merge)
103 throws com.liferay.portal.kernel.exception.SystemException {
104 return getPersistence().updateImpl(bookmarksFolder, merge);
105 }
106
107 public static com.liferay.portlet.bookmarks.model.BookmarksFolder findByPrimaryKey(
108 long folderId)
109 throws com.liferay.portal.kernel.exception.SystemException,
110 com.liferay.portlet.bookmarks.NoSuchFolderException {
111 return getPersistence().findByPrimaryKey(folderId);
112 }
113
114 public static com.liferay.portlet.bookmarks.model.BookmarksFolder fetchByPrimaryKey(
115 long folderId)
116 throws com.liferay.portal.kernel.exception.SystemException {
117 return getPersistence().fetchByPrimaryKey(folderId);
118 }
119
120 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> 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.BookmarksFolder> 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.BookmarksFolder> findByUuid(
133 java.lang.String uuid, int start, int end,
134 com.liferay.portal.kernel.util.OrderByComparator obc)
135 throws com.liferay.portal.kernel.exception.SystemException {
136 return getPersistence().findByUuid(uuid, start, end, obc);
137 }
138
139 public static com.liferay.portlet.bookmarks.model.BookmarksFolder findByUuid_First(
140 java.lang.String uuid,
141 com.liferay.portal.kernel.util.OrderByComparator obc)
142 throws com.liferay.portal.kernel.exception.SystemException,
143 com.liferay.portlet.bookmarks.NoSuchFolderException {
144 return getPersistence().findByUuid_First(uuid, obc);
145 }
146
147 public static com.liferay.portlet.bookmarks.model.BookmarksFolder findByUuid_Last(
148 java.lang.String uuid,
149 com.liferay.portal.kernel.util.OrderByComparator obc)
150 throws com.liferay.portal.kernel.exception.SystemException,
151 com.liferay.portlet.bookmarks.NoSuchFolderException {
152 return getPersistence().findByUuid_Last(uuid, obc);
153 }
154
155 public static com.liferay.portlet.bookmarks.model.BookmarksFolder[] findByUuid_PrevAndNext(
156 long folderId, java.lang.String uuid,
157 com.liferay.portal.kernel.util.OrderByComparator obc)
158 throws com.liferay.portal.kernel.exception.SystemException,
159 com.liferay.portlet.bookmarks.NoSuchFolderException {
160 return getPersistence().findByUuid_PrevAndNext(folderId, uuid, obc);
161 }
162
163 public static com.liferay.portlet.bookmarks.model.BookmarksFolder findByUUID_G(
164 java.lang.String uuid, long groupId)
165 throws com.liferay.portal.kernel.exception.SystemException,
166 com.liferay.portlet.bookmarks.NoSuchFolderException {
167 return getPersistence().findByUUID_G(uuid, groupId);
168 }
169
170 public static com.liferay.portlet.bookmarks.model.BookmarksFolder fetchByUUID_G(
171 java.lang.String uuid, long groupId)
172 throws com.liferay.portal.kernel.exception.SystemException {
173 return getPersistence().fetchByUUID_G(uuid, groupId);
174 }
175
176 public static com.liferay.portlet.bookmarks.model.BookmarksFolder fetchByUUID_G(
177 java.lang.String uuid, long groupId, boolean retrieveFromCache)
178 throws com.liferay.portal.kernel.exception.SystemException {
179 return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
180 }
181
182 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findByGroupId(
183 long groupId)
184 throws com.liferay.portal.kernel.exception.SystemException {
185 return getPersistence().findByGroupId(groupId);
186 }
187
188 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findByGroupId(
189 long groupId, int start, int end)
190 throws com.liferay.portal.kernel.exception.SystemException {
191 return getPersistence().findByGroupId(groupId, start, end);
192 }
193
194 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findByGroupId(
195 long groupId, int start, int end,
196 com.liferay.portal.kernel.util.OrderByComparator obc)
197 throws com.liferay.portal.kernel.exception.SystemException {
198 return getPersistence().findByGroupId(groupId, start, end, obc);
199 }
200
201 public static com.liferay.portlet.bookmarks.model.BookmarksFolder findByGroupId_First(
202 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
203 throws com.liferay.portal.kernel.exception.SystemException,
204 com.liferay.portlet.bookmarks.NoSuchFolderException {
205 return getPersistence().findByGroupId_First(groupId, obc);
206 }
207
208 public static com.liferay.portlet.bookmarks.model.BookmarksFolder findByGroupId_Last(
209 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
210 throws com.liferay.portal.kernel.exception.SystemException,
211 com.liferay.portlet.bookmarks.NoSuchFolderException {
212 return getPersistence().findByGroupId_Last(groupId, obc);
213 }
214
215 public static com.liferay.portlet.bookmarks.model.BookmarksFolder[] findByGroupId_PrevAndNext(
216 long folderId, long groupId,
217 com.liferay.portal.kernel.util.OrderByComparator obc)
218 throws com.liferay.portal.kernel.exception.SystemException,
219 com.liferay.portlet.bookmarks.NoSuchFolderException {
220 return getPersistence().findByGroupId_PrevAndNext(folderId, groupId, obc);
221 }
222
223 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findByCompanyId(
224 long companyId)
225 throws com.liferay.portal.kernel.exception.SystemException {
226 return getPersistence().findByCompanyId(companyId);
227 }
228
229 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findByCompanyId(
230 long companyId, int start, int end)
231 throws com.liferay.portal.kernel.exception.SystemException {
232 return getPersistence().findByCompanyId(companyId, start, end);
233 }
234
235 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findByCompanyId(
236 long companyId, int start, int end,
237 com.liferay.portal.kernel.util.OrderByComparator obc)
238 throws com.liferay.portal.kernel.exception.SystemException {
239 return getPersistence().findByCompanyId(companyId, start, end, obc);
240 }
241
242 public static com.liferay.portlet.bookmarks.model.BookmarksFolder findByCompanyId_First(
243 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
244 throws com.liferay.portal.kernel.exception.SystemException,
245 com.liferay.portlet.bookmarks.NoSuchFolderException {
246 return getPersistence().findByCompanyId_First(companyId, obc);
247 }
248
249 public static com.liferay.portlet.bookmarks.model.BookmarksFolder findByCompanyId_Last(
250 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
251 throws com.liferay.portal.kernel.exception.SystemException,
252 com.liferay.portlet.bookmarks.NoSuchFolderException {
253 return getPersistence().findByCompanyId_Last(companyId, obc);
254 }
255
256 public static com.liferay.portlet.bookmarks.model.BookmarksFolder[] findByCompanyId_PrevAndNext(
257 long folderId, long companyId,
258 com.liferay.portal.kernel.util.OrderByComparator obc)
259 throws com.liferay.portal.kernel.exception.SystemException,
260 com.liferay.portlet.bookmarks.NoSuchFolderException {
261 return getPersistence()
262 .findByCompanyId_PrevAndNext(folderId, companyId, obc);
263 }
264
265 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findByG_P(
266 long groupId, long parentFolderId)
267 throws com.liferay.portal.kernel.exception.SystemException {
268 return getPersistence().findByG_P(groupId, parentFolderId);
269 }
270
271 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findByG_P(
272 long groupId, long parentFolderId, int start, int end)
273 throws com.liferay.portal.kernel.exception.SystemException {
274 return getPersistence().findByG_P(groupId, parentFolderId, start, end);
275 }
276
277 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findByG_P(
278 long groupId, long parentFolderId, int start, int end,
279 com.liferay.portal.kernel.util.OrderByComparator obc)
280 throws com.liferay.portal.kernel.exception.SystemException {
281 return getPersistence()
282 .findByG_P(groupId, parentFolderId, start, end, obc);
283 }
284
285 public static com.liferay.portlet.bookmarks.model.BookmarksFolder findByG_P_First(
286 long groupId, long parentFolderId,
287 com.liferay.portal.kernel.util.OrderByComparator obc)
288 throws com.liferay.portal.kernel.exception.SystemException,
289 com.liferay.portlet.bookmarks.NoSuchFolderException {
290 return getPersistence().findByG_P_First(groupId, parentFolderId, obc);
291 }
292
293 public static com.liferay.portlet.bookmarks.model.BookmarksFolder findByG_P_Last(
294 long groupId, long parentFolderId,
295 com.liferay.portal.kernel.util.OrderByComparator obc)
296 throws com.liferay.portal.kernel.exception.SystemException,
297 com.liferay.portlet.bookmarks.NoSuchFolderException {
298 return getPersistence().findByG_P_Last(groupId, parentFolderId, obc);
299 }
300
301 public static com.liferay.portlet.bookmarks.model.BookmarksFolder[] findByG_P_PrevAndNext(
302 long folderId, long groupId, long parentFolderId,
303 com.liferay.portal.kernel.util.OrderByComparator obc)
304 throws com.liferay.portal.kernel.exception.SystemException,
305 com.liferay.portlet.bookmarks.NoSuchFolderException {
306 return getPersistence()
307 .findByG_P_PrevAndNext(folderId, groupId, parentFolderId, obc);
308 }
309
310 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findAll()
311 throws com.liferay.portal.kernel.exception.SystemException {
312 return getPersistence().findAll();
313 }
314
315 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findAll(
316 int start, int end)
317 throws com.liferay.portal.kernel.exception.SystemException {
318 return getPersistence().findAll(start, end);
319 }
320
321 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findAll(
322 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
323 throws com.liferay.portal.kernel.exception.SystemException {
324 return getPersistence().findAll(start, end, obc);
325 }
326
327 public static void removeByUuid(java.lang.String uuid)
328 throws com.liferay.portal.kernel.exception.SystemException {
329 getPersistence().removeByUuid(uuid);
330 }
331
332 public static void removeByUUID_G(java.lang.String uuid, long groupId)
333 throws com.liferay.portal.kernel.exception.SystemException,
334 com.liferay.portlet.bookmarks.NoSuchFolderException {
335 getPersistence().removeByUUID_G(uuid, groupId);
336 }
337
338 public static void removeByGroupId(long groupId)
339 throws com.liferay.portal.kernel.exception.SystemException {
340 getPersistence().removeByGroupId(groupId);
341 }
342
343 public static void removeByCompanyId(long companyId)
344 throws com.liferay.portal.kernel.exception.SystemException {
345 getPersistence().removeByCompanyId(companyId);
346 }
347
348 public static void removeByG_P(long groupId, long parentFolderId)
349 throws com.liferay.portal.kernel.exception.SystemException {
350 getPersistence().removeByG_P(groupId, parentFolderId);
351 }
352
353 public static void removeAll()
354 throws com.liferay.portal.kernel.exception.SystemException {
355 getPersistence().removeAll();
356 }
357
358 public static int countByUuid(java.lang.String uuid)
359 throws com.liferay.portal.kernel.exception.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.kernel.exception.SystemException {
365 return getPersistence().countByUUID_G(uuid, groupId);
366 }
367
368 public static int countByGroupId(long groupId)
369 throws com.liferay.portal.kernel.exception.SystemException {
370 return getPersistence().countByGroupId(groupId);
371 }
372
373 public static int countByCompanyId(long companyId)
374 throws com.liferay.portal.kernel.exception.SystemException {
375 return getPersistence().countByCompanyId(companyId);
376 }
377
378 public static int countByG_P(long groupId, long parentFolderId)
379 throws com.liferay.portal.kernel.exception.SystemException {
380 return getPersistence().countByG_P(groupId, parentFolderId);
381 }
382
383 public static int countAll()
384 throws com.liferay.portal.kernel.exception.SystemException {
385 return getPersistence().countAll();
386 }
387
388 public static BookmarksFolderPersistence getPersistence() {
389 if (_persistence == null) {
390 _persistence = (BookmarksFolderPersistence)PortalBeanLocatorUtil.locate(BookmarksFolderPersistence.class.getName());
391 }
392
393 return _persistence;
394 }
395
396 public void setPersistence(BookmarksFolderPersistence persistence) {
397 _persistence = persistence;
398 }
399
400 private static BookmarksFolderPersistence _persistence;
401 }