001: /**
002: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003: *
004: * Permission is hereby granted, free of charge, to any person obtaining a copy
005: * of this software and associated documentation files (the "Software"), to deal
006: * in the Software without restriction, including without limitation the rights
007: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008: * copies of the Software, and to permit persons to whom the Software is
009: * furnished to do so, subject to the following conditions:
010: *
011: * The above copyright notice and this permission notice shall be included in
012: * all copies or substantial portions of the Software.
013: *
014: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020: * SOFTWARE.
021: */package com.liferay.portlet.bookmarks.service.persistence;
022:
023: /**
024: * <a href="BookmarksFolderUtil.java.html"><b><i>View Source</i></b></a>
025: *
026: * @author Brian Wing Shun Chan
027: *
028: */
029: public class BookmarksFolderUtil {
030: public static com.liferay.portlet.bookmarks.model.BookmarksFolder create(
031: long folderId) {
032: return getPersistence().create(folderId);
033: }
034:
035: public static com.liferay.portlet.bookmarks.model.BookmarksFolder remove(
036: long folderId) throws com.liferay.portal.SystemException,
037: com.liferay.portlet.bookmarks.NoSuchFolderException {
038: return getPersistence().remove(folderId);
039: }
040:
041: public static com.liferay.portlet.bookmarks.model.BookmarksFolder remove(
042: com.liferay.portlet.bookmarks.model.BookmarksFolder bookmarksFolder)
043: throws com.liferay.portal.SystemException {
044: return getPersistence().remove(bookmarksFolder);
045: }
046:
047: public static com.liferay.portlet.bookmarks.model.BookmarksFolder update(
048: com.liferay.portlet.bookmarks.model.BookmarksFolder bookmarksFolder)
049: throws com.liferay.portal.SystemException {
050: return getPersistence().update(bookmarksFolder);
051: }
052:
053: public static com.liferay.portlet.bookmarks.model.BookmarksFolder update(
054: com.liferay.portlet.bookmarks.model.BookmarksFolder bookmarksFolder,
055: boolean merge) throws com.liferay.portal.SystemException {
056: return getPersistence().update(bookmarksFolder, merge);
057: }
058:
059: public static com.liferay.portlet.bookmarks.model.BookmarksFolder updateImpl(
060: com.liferay.portlet.bookmarks.model.BookmarksFolder bookmarksFolder,
061: boolean merge) throws com.liferay.portal.SystemException {
062: return getPersistence().updateImpl(bookmarksFolder, merge);
063: }
064:
065: public static com.liferay.portlet.bookmarks.model.BookmarksFolder findByPrimaryKey(
066: long folderId) throws com.liferay.portal.SystemException,
067: com.liferay.portlet.bookmarks.NoSuchFolderException {
068: return getPersistence().findByPrimaryKey(folderId);
069: }
070:
071: public static com.liferay.portlet.bookmarks.model.BookmarksFolder fetchByPrimaryKey(
072: long folderId) throws com.liferay.portal.SystemException {
073: return getPersistence().fetchByPrimaryKey(folderId);
074: }
075:
076: public static java.util.List findByUuid(java.lang.String uuid)
077: throws com.liferay.portal.SystemException {
078: return getPersistence().findByUuid(uuid);
079: }
080:
081: public static java.util.List findByUuid(java.lang.String uuid,
082: int begin, int end)
083: throws com.liferay.portal.SystemException {
084: return getPersistence().findByUuid(uuid, begin, end);
085: }
086:
087: public static java.util.List findByUuid(java.lang.String uuid,
088: int begin, int end,
089: com.liferay.portal.kernel.util.OrderByComparator obc)
090: throws com.liferay.portal.SystemException {
091: return getPersistence().findByUuid(uuid, begin, end, obc);
092: }
093:
094: public static com.liferay.portlet.bookmarks.model.BookmarksFolder findByUuid_First(
095: java.lang.String uuid,
096: com.liferay.portal.kernel.util.OrderByComparator obc)
097: throws com.liferay.portal.SystemException,
098: com.liferay.portlet.bookmarks.NoSuchFolderException {
099: return getPersistence().findByUuid_First(uuid, obc);
100: }
101:
102: public static com.liferay.portlet.bookmarks.model.BookmarksFolder findByUuid_Last(
103: java.lang.String uuid,
104: com.liferay.portal.kernel.util.OrderByComparator obc)
105: throws com.liferay.portal.SystemException,
106: com.liferay.portlet.bookmarks.NoSuchFolderException {
107: return getPersistence().findByUuid_Last(uuid, obc);
108: }
109:
110: public static com.liferay.portlet.bookmarks.model.BookmarksFolder[] findByUuid_PrevAndNext(
111: long folderId, java.lang.String uuid,
112: com.liferay.portal.kernel.util.OrderByComparator obc)
113: throws com.liferay.portal.SystemException,
114: com.liferay.portlet.bookmarks.NoSuchFolderException {
115: return getPersistence().findByUuid_PrevAndNext(folderId, uuid,
116: obc);
117: }
118:
119: public static com.liferay.portlet.bookmarks.model.BookmarksFolder findByUUID_G(
120: java.lang.String uuid, long groupId)
121: throws com.liferay.portal.SystemException,
122: com.liferay.portlet.bookmarks.NoSuchFolderException {
123: return getPersistence().findByUUID_G(uuid, groupId);
124: }
125:
126: public static com.liferay.portlet.bookmarks.model.BookmarksFolder fetchByUUID_G(
127: java.lang.String uuid, long groupId)
128: throws com.liferay.portal.SystemException {
129: return getPersistence().fetchByUUID_G(uuid, groupId);
130: }
131:
132: public static java.util.List findByGroupId(long groupId)
133: throws com.liferay.portal.SystemException {
134: return getPersistence().findByGroupId(groupId);
135: }
136:
137: public static java.util.List findByGroupId(long groupId, int begin,
138: int end) throws com.liferay.portal.SystemException {
139: return getPersistence().findByGroupId(groupId, begin, end);
140: }
141:
142: public static java.util.List findByGroupId(long groupId, int begin,
143: int end,
144: com.liferay.portal.kernel.util.OrderByComparator obc)
145: throws com.liferay.portal.SystemException {
146: return getPersistence().findByGroupId(groupId, begin, end, obc);
147: }
148:
149: public static com.liferay.portlet.bookmarks.model.BookmarksFolder findByGroupId_First(
150: long groupId,
151: com.liferay.portal.kernel.util.OrderByComparator obc)
152: throws com.liferay.portal.SystemException,
153: com.liferay.portlet.bookmarks.NoSuchFolderException {
154: return getPersistence().findByGroupId_First(groupId, obc);
155: }
156:
157: public static com.liferay.portlet.bookmarks.model.BookmarksFolder findByGroupId_Last(
158: long groupId,
159: com.liferay.portal.kernel.util.OrderByComparator obc)
160: throws com.liferay.portal.SystemException,
161: com.liferay.portlet.bookmarks.NoSuchFolderException {
162: return getPersistence().findByGroupId_Last(groupId, obc);
163: }
164:
165: public static com.liferay.portlet.bookmarks.model.BookmarksFolder[] findByGroupId_PrevAndNext(
166: long folderId, long groupId,
167: com.liferay.portal.kernel.util.OrderByComparator obc)
168: throws com.liferay.portal.SystemException,
169: com.liferay.portlet.bookmarks.NoSuchFolderException {
170: return getPersistence().findByGroupId_PrevAndNext(folderId,
171: groupId, obc);
172: }
173:
174: public static java.util.List findByCompanyId(long companyId)
175: throws com.liferay.portal.SystemException {
176: return getPersistence().findByCompanyId(companyId);
177: }
178:
179: public static java.util.List findByCompanyId(long companyId,
180: int begin, int end)
181: throws com.liferay.portal.SystemException {
182: return getPersistence().findByCompanyId(companyId, begin, end);
183: }
184:
185: public static java.util.List findByCompanyId(long companyId,
186: int begin, int end,
187: com.liferay.portal.kernel.util.OrderByComparator obc)
188: throws com.liferay.portal.SystemException {
189: return getPersistence().findByCompanyId(companyId, begin, end,
190: obc);
191: }
192:
193: public static com.liferay.portlet.bookmarks.model.BookmarksFolder findByCompanyId_First(
194: long companyId,
195: com.liferay.portal.kernel.util.OrderByComparator obc)
196: throws com.liferay.portal.SystemException,
197: com.liferay.portlet.bookmarks.NoSuchFolderException {
198: return getPersistence().findByCompanyId_First(companyId, obc);
199: }
200:
201: public static com.liferay.portlet.bookmarks.model.BookmarksFolder findByCompanyId_Last(
202: long companyId,
203: com.liferay.portal.kernel.util.OrderByComparator obc)
204: throws com.liferay.portal.SystemException,
205: com.liferay.portlet.bookmarks.NoSuchFolderException {
206: return getPersistence().findByCompanyId_Last(companyId, obc);
207: }
208:
209: public static com.liferay.portlet.bookmarks.model.BookmarksFolder[] findByCompanyId_PrevAndNext(
210: long folderId, long companyId,
211: com.liferay.portal.kernel.util.OrderByComparator obc)
212: throws com.liferay.portal.SystemException,
213: com.liferay.portlet.bookmarks.NoSuchFolderException {
214: return getPersistence().findByCompanyId_PrevAndNext(folderId,
215: companyId, obc);
216: }
217:
218: public static java.util.List findByG_P(long groupId,
219: long parentFolderId)
220: throws com.liferay.portal.SystemException {
221: return getPersistence().findByG_P(groupId, parentFolderId);
222: }
223:
224: public static java.util.List findByG_P(long groupId,
225: long parentFolderId, int begin, int end)
226: throws com.liferay.portal.SystemException {
227: return getPersistence().findByG_P(groupId, parentFolderId,
228: begin, end);
229: }
230:
231: public static java.util.List findByG_P(long groupId,
232: long parentFolderId, int begin, int end,
233: com.liferay.portal.kernel.util.OrderByComparator obc)
234: throws com.liferay.portal.SystemException {
235: return getPersistence().findByG_P(groupId, parentFolderId,
236: begin, end, obc);
237: }
238:
239: public static com.liferay.portlet.bookmarks.model.BookmarksFolder findByG_P_First(
240: long groupId, long parentFolderId,
241: com.liferay.portal.kernel.util.OrderByComparator obc)
242: throws com.liferay.portal.SystemException,
243: com.liferay.portlet.bookmarks.NoSuchFolderException {
244: return getPersistence().findByG_P_First(groupId,
245: parentFolderId, obc);
246: }
247:
248: public static com.liferay.portlet.bookmarks.model.BookmarksFolder findByG_P_Last(
249: long groupId, long parentFolderId,
250: com.liferay.portal.kernel.util.OrderByComparator obc)
251: throws com.liferay.portal.SystemException,
252: com.liferay.portlet.bookmarks.NoSuchFolderException {
253: return getPersistence().findByG_P_Last(groupId, parentFolderId,
254: obc);
255: }
256:
257: public static com.liferay.portlet.bookmarks.model.BookmarksFolder[] findByG_P_PrevAndNext(
258: long folderId, long groupId, long parentFolderId,
259: com.liferay.portal.kernel.util.OrderByComparator obc)
260: throws com.liferay.portal.SystemException,
261: com.liferay.portlet.bookmarks.NoSuchFolderException {
262: return getPersistence().findByG_P_PrevAndNext(folderId,
263: groupId, parentFolderId, obc);
264: }
265:
266: public static java.util.List findWithDynamicQuery(
267: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
268: throws com.liferay.portal.SystemException {
269: return getPersistence().findWithDynamicQuery(queryInitializer);
270: }
271:
272: public static java.util.List findWithDynamicQuery(
273: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
274: int begin, int end)
275: throws com.liferay.portal.SystemException {
276: return getPersistence().findWithDynamicQuery(queryInitializer,
277: begin, end);
278: }
279:
280: public static java.util.List findAll()
281: throws com.liferay.portal.SystemException {
282: return getPersistence().findAll();
283: }
284:
285: public static java.util.List findAll(int begin, int end)
286: throws com.liferay.portal.SystemException {
287: return getPersistence().findAll(begin, end);
288: }
289:
290: public static java.util.List findAll(int begin, int end,
291: com.liferay.portal.kernel.util.OrderByComparator obc)
292: throws com.liferay.portal.SystemException {
293: return getPersistence().findAll(begin, end, obc);
294: }
295:
296: public static void removeByUuid(java.lang.String uuid)
297: throws com.liferay.portal.SystemException {
298: getPersistence().removeByUuid(uuid);
299: }
300:
301: public static void removeByUUID_G(java.lang.String uuid,
302: long groupId) throws com.liferay.portal.SystemException,
303: com.liferay.portlet.bookmarks.NoSuchFolderException {
304: getPersistence().removeByUUID_G(uuid, groupId);
305: }
306:
307: public static void removeByGroupId(long groupId)
308: throws com.liferay.portal.SystemException {
309: getPersistence().removeByGroupId(groupId);
310: }
311:
312: public static void removeByCompanyId(long companyId)
313: throws com.liferay.portal.SystemException {
314: getPersistence().removeByCompanyId(companyId);
315: }
316:
317: public static void removeByG_P(long groupId, long parentFolderId)
318: throws com.liferay.portal.SystemException {
319: getPersistence().removeByG_P(groupId, parentFolderId);
320: }
321:
322: public static void removeAll()
323: throws com.liferay.portal.SystemException {
324: getPersistence().removeAll();
325: }
326:
327: public static int countByUuid(java.lang.String uuid)
328: throws com.liferay.portal.SystemException {
329: return getPersistence().countByUuid(uuid);
330: }
331:
332: public static int countByUUID_G(java.lang.String uuid, long groupId)
333: throws com.liferay.portal.SystemException {
334: return getPersistence().countByUUID_G(uuid, groupId);
335: }
336:
337: public static int countByGroupId(long groupId)
338: throws com.liferay.portal.SystemException {
339: return getPersistence().countByGroupId(groupId);
340: }
341:
342: public static int countByCompanyId(long companyId)
343: throws com.liferay.portal.SystemException {
344: return getPersistence().countByCompanyId(companyId);
345: }
346:
347: public static int countByG_P(long groupId, long parentFolderId)
348: throws com.liferay.portal.SystemException {
349: return getPersistence().countByG_P(groupId, parentFolderId);
350: }
351:
352: public static int countAll()
353: throws com.liferay.portal.SystemException {
354: return getPersistence().countAll();
355: }
356:
357: public static BookmarksFolderPersistence getPersistence() {
358: return _getUtil()._persistence;
359: }
360:
361: public void setPersistence(BookmarksFolderPersistence persistence) {
362: _persistence = persistence;
363: }
364:
365: private static BookmarksFolderUtil _getUtil() {
366: if (_util == null) {
367: _util = (BookmarksFolderUtil) com.liferay.portal.kernel.bean.BeanLocatorUtil
368: .locate(_UTIL);
369: }
370:
371: return _util;
372: }
373:
374: private static final String _UTIL = BookmarksFolderUtil.class
375: .getName();
376: private static BookmarksFolderUtil _util;
377: private BookmarksFolderPersistence _persistence;
378: }
|