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="BookmarksEntryUtil.java.html"><b><i>View Source</i></b></a>
025: *
026: * @author Brian Wing Shun Chan
027: *
028: */
029: public class BookmarksEntryUtil {
030: public static com.liferay.portlet.bookmarks.model.BookmarksEntry create(
031: long entryId) {
032: return getPersistence().create(entryId);
033: }
034:
035: public static com.liferay.portlet.bookmarks.model.BookmarksEntry remove(
036: long entryId) throws com.liferay.portal.SystemException,
037: com.liferay.portlet.bookmarks.NoSuchEntryException {
038: return getPersistence().remove(entryId);
039: }
040:
041: public static com.liferay.portlet.bookmarks.model.BookmarksEntry remove(
042: com.liferay.portlet.bookmarks.model.BookmarksEntry bookmarksEntry)
043: throws com.liferay.portal.SystemException {
044: return getPersistence().remove(bookmarksEntry);
045: }
046:
047: public static com.liferay.portlet.bookmarks.model.BookmarksEntry update(
048: com.liferay.portlet.bookmarks.model.BookmarksEntry bookmarksEntry)
049: throws com.liferay.portal.SystemException {
050: return getPersistence().update(bookmarksEntry);
051: }
052:
053: public static com.liferay.portlet.bookmarks.model.BookmarksEntry update(
054: com.liferay.portlet.bookmarks.model.BookmarksEntry bookmarksEntry,
055: boolean merge) throws com.liferay.portal.SystemException {
056: return getPersistence().update(bookmarksEntry, merge);
057: }
058:
059: public static com.liferay.portlet.bookmarks.model.BookmarksEntry updateImpl(
060: com.liferay.portlet.bookmarks.model.BookmarksEntry bookmarksEntry,
061: boolean merge) throws com.liferay.portal.SystemException {
062: return getPersistence().updateImpl(bookmarksEntry, merge);
063: }
064:
065: public static com.liferay.portlet.bookmarks.model.BookmarksEntry findByPrimaryKey(
066: long entryId) throws com.liferay.portal.SystemException,
067: com.liferay.portlet.bookmarks.NoSuchEntryException {
068: return getPersistence().findByPrimaryKey(entryId);
069: }
070:
071: public static com.liferay.portlet.bookmarks.model.BookmarksEntry fetchByPrimaryKey(
072: long entryId) throws com.liferay.portal.SystemException {
073: return getPersistence().fetchByPrimaryKey(entryId);
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.BookmarksEntry 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.NoSuchEntryException {
099: return getPersistence().findByUuid_First(uuid, obc);
100: }
101:
102: public static com.liferay.portlet.bookmarks.model.BookmarksEntry 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.NoSuchEntryException {
107: return getPersistence().findByUuid_Last(uuid, obc);
108: }
109:
110: public static com.liferay.portlet.bookmarks.model.BookmarksEntry[] findByUuid_PrevAndNext(
111: long entryId, java.lang.String uuid,
112: com.liferay.portal.kernel.util.OrderByComparator obc)
113: throws com.liferay.portal.SystemException,
114: com.liferay.portlet.bookmarks.NoSuchEntryException {
115: return getPersistence().findByUuid_PrevAndNext(entryId, uuid,
116: obc);
117: }
118:
119: public static java.util.List findByFolderId(long folderId)
120: throws com.liferay.portal.SystemException {
121: return getPersistence().findByFolderId(folderId);
122: }
123:
124: public static java.util.List findByFolderId(long folderId,
125: int begin, int end)
126: throws com.liferay.portal.SystemException {
127: return getPersistence().findByFolderId(folderId, begin, end);
128: }
129:
130: public static java.util.List findByFolderId(long folderId,
131: int begin, int end,
132: com.liferay.portal.kernel.util.OrderByComparator obc)
133: throws com.liferay.portal.SystemException {
134: return getPersistence().findByFolderId(folderId, begin, end,
135: obc);
136: }
137:
138: public static com.liferay.portlet.bookmarks.model.BookmarksEntry findByFolderId_First(
139: long folderId,
140: com.liferay.portal.kernel.util.OrderByComparator obc)
141: throws com.liferay.portal.SystemException,
142: com.liferay.portlet.bookmarks.NoSuchEntryException {
143: return getPersistence().findByFolderId_First(folderId, obc);
144: }
145:
146: public static com.liferay.portlet.bookmarks.model.BookmarksEntry findByFolderId_Last(
147: long folderId,
148: com.liferay.portal.kernel.util.OrderByComparator obc)
149: throws com.liferay.portal.SystemException,
150: com.liferay.portlet.bookmarks.NoSuchEntryException {
151: return getPersistence().findByFolderId_Last(folderId, obc);
152: }
153:
154: public static com.liferay.portlet.bookmarks.model.BookmarksEntry[] findByFolderId_PrevAndNext(
155: long entryId, long folderId,
156: com.liferay.portal.kernel.util.OrderByComparator obc)
157: throws com.liferay.portal.SystemException,
158: com.liferay.portlet.bookmarks.NoSuchEntryException {
159: return getPersistence().findByFolderId_PrevAndNext(entryId,
160: folderId, obc);
161: }
162:
163: public static java.util.List findWithDynamicQuery(
164: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
165: throws com.liferay.portal.SystemException {
166: return getPersistence().findWithDynamicQuery(queryInitializer);
167: }
168:
169: public static java.util.List findWithDynamicQuery(
170: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
171: int begin, int end)
172: throws com.liferay.portal.SystemException {
173: return getPersistence().findWithDynamicQuery(queryInitializer,
174: begin, end);
175: }
176:
177: public static java.util.List findAll()
178: throws com.liferay.portal.SystemException {
179: return getPersistence().findAll();
180: }
181:
182: public static java.util.List findAll(int begin, int end)
183: throws com.liferay.portal.SystemException {
184: return getPersistence().findAll(begin, end);
185: }
186:
187: public static java.util.List findAll(int begin, int end,
188: com.liferay.portal.kernel.util.OrderByComparator obc)
189: throws com.liferay.portal.SystemException {
190: return getPersistence().findAll(begin, end, obc);
191: }
192:
193: public static void removeByUuid(java.lang.String uuid)
194: throws com.liferay.portal.SystemException {
195: getPersistence().removeByUuid(uuid);
196: }
197:
198: public static void removeByFolderId(long folderId)
199: throws com.liferay.portal.SystemException {
200: getPersistence().removeByFolderId(folderId);
201: }
202:
203: public static void removeAll()
204: throws com.liferay.portal.SystemException {
205: getPersistence().removeAll();
206: }
207:
208: public static int countByUuid(java.lang.String uuid)
209: throws com.liferay.portal.SystemException {
210: return getPersistence().countByUuid(uuid);
211: }
212:
213: public static int countByFolderId(long folderId)
214: throws com.liferay.portal.SystemException {
215: return getPersistence().countByFolderId(folderId);
216: }
217:
218: public static int countAll()
219: throws com.liferay.portal.SystemException {
220: return getPersistence().countAll();
221: }
222:
223: public static BookmarksEntryPersistence getPersistence() {
224: return _getUtil()._persistence;
225: }
226:
227: public void setPersistence(BookmarksEntryPersistence persistence) {
228: _persistence = persistence;
229: }
230:
231: private static BookmarksEntryUtil _getUtil() {
232: if (_util == null) {
233: _util = (BookmarksEntryUtil) com.liferay.portal.kernel.bean.BeanLocatorUtil
234: .locate(_UTIL);
235: }
236:
237: return _util;
238: }
239:
240: private static final String _UTIL = BookmarksEntryUtil.class
241: .getName();
242: private static BookmarksEntryUtil _util;
243: private BookmarksEntryPersistence _persistence;
244: }
|