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.journal.service.persistence;
022:
023: /**
024: * <a href="JournalFeedUtil.java.html"><b><i>View Source</i></b></a>
025: *
026: * @author Brian Wing Shun Chan
027: *
028: */
029: public class JournalFeedUtil {
030: public static com.liferay.portlet.journal.model.JournalFeed create(
031: long id) {
032: return getPersistence().create(id);
033: }
034:
035: public static com.liferay.portlet.journal.model.JournalFeed remove(
036: long id) throws com.liferay.portal.SystemException,
037: com.liferay.portlet.journal.NoSuchFeedException {
038: return getPersistence().remove(id);
039: }
040:
041: public static com.liferay.portlet.journal.model.JournalFeed remove(
042: com.liferay.portlet.journal.model.JournalFeed journalFeed)
043: throws com.liferay.portal.SystemException {
044: return getPersistence().remove(journalFeed);
045: }
046:
047: public static com.liferay.portlet.journal.model.JournalFeed update(
048: com.liferay.portlet.journal.model.JournalFeed journalFeed)
049: throws com.liferay.portal.SystemException {
050: return getPersistence().update(journalFeed);
051: }
052:
053: public static com.liferay.portlet.journal.model.JournalFeed update(
054: com.liferay.portlet.journal.model.JournalFeed journalFeed,
055: boolean merge) throws com.liferay.portal.SystemException {
056: return getPersistence().update(journalFeed, merge);
057: }
058:
059: public static com.liferay.portlet.journal.model.JournalFeed updateImpl(
060: com.liferay.portlet.journal.model.JournalFeed journalFeed,
061: boolean merge) throws com.liferay.portal.SystemException {
062: return getPersistence().updateImpl(journalFeed, merge);
063: }
064:
065: public static com.liferay.portlet.journal.model.JournalFeed findByPrimaryKey(
066: long id) throws com.liferay.portal.SystemException,
067: com.liferay.portlet.journal.NoSuchFeedException {
068: return getPersistence().findByPrimaryKey(id);
069: }
070:
071: public static com.liferay.portlet.journal.model.JournalFeed fetchByPrimaryKey(
072: long id) throws com.liferay.portal.SystemException {
073: return getPersistence().fetchByPrimaryKey(id);
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.journal.model.JournalFeed 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.journal.NoSuchFeedException {
099: return getPersistence().findByUuid_First(uuid, obc);
100: }
101:
102: public static com.liferay.portlet.journal.model.JournalFeed 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.journal.NoSuchFeedException {
107: return getPersistence().findByUuid_Last(uuid, obc);
108: }
109:
110: public static com.liferay.portlet.journal.model.JournalFeed[] findByUuid_PrevAndNext(
111: long id, java.lang.String uuid,
112: com.liferay.portal.kernel.util.OrderByComparator obc)
113: throws com.liferay.portal.SystemException,
114: com.liferay.portlet.journal.NoSuchFeedException {
115: return getPersistence().findByUuid_PrevAndNext(id, uuid, obc);
116: }
117:
118: public static com.liferay.portlet.journal.model.JournalFeed findByUUID_G(
119: java.lang.String uuid, long groupId)
120: throws com.liferay.portal.SystemException,
121: com.liferay.portlet.journal.NoSuchFeedException {
122: return getPersistence().findByUUID_G(uuid, groupId);
123: }
124:
125: public static com.liferay.portlet.journal.model.JournalFeed fetchByUUID_G(
126: java.lang.String uuid, long groupId)
127: throws com.liferay.portal.SystemException {
128: return getPersistence().fetchByUUID_G(uuid, groupId);
129: }
130:
131: public static java.util.List findByGroupId(long groupId)
132: throws com.liferay.portal.SystemException {
133: return getPersistence().findByGroupId(groupId);
134: }
135:
136: public static java.util.List findByGroupId(long groupId, int begin,
137: int end) throws com.liferay.portal.SystemException {
138: return getPersistence().findByGroupId(groupId, begin, end);
139: }
140:
141: public static java.util.List findByGroupId(long groupId, int begin,
142: int end,
143: com.liferay.portal.kernel.util.OrderByComparator obc)
144: throws com.liferay.portal.SystemException {
145: return getPersistence().findByGroupId(groupId, begin, end, obc);
146: }
147:
148: public static com.liferay.portlet.journal.model.JournalFeed findByGroupId_First(
149: long groupId,
150: com.liferay.portal.kernel.util.OrderByComparator obc)
151: throws com.liferay.portal.SystemException,
152: com.liferay.portlet.journal.NoSuchFeedException {
153: return getPersistence().findByGroupId_First(groupId, obc);
154: }
155:
156: public static com.liferay.portlet.journal.model.JournalFeed findByGroupId_Last(
157: long groupId,
158: com.liferay.portal.kernel.util.OrderByComparator obc)
159: throws com.liferay.portal.SystemException,
160: com.liferay.portlet.journal.NoSuchFeedException {
161: return getPersistence().findByGroupId_Last(groupId, obc);
162: }
163:
164: public static com.liferay.portlet.journal.model.JournalFeed[] findByGroupId_PrevAndNext(
165: long id, long groupId,
166: com.liferay.portal.kernel.util.OrderByComparator obc)
167: throws com.liferay.portal.SystemException,
168: com.liferay.portlet.journal.NoSuchFeedException {
169: return getPersistence().findByGroupId_PrevAndNext(id, groupId,
170: obc);
171: }
172:
173: public static com.liferay.portlet.journal.model.JournalFeed findByG_F(
174: long groupId, java.lang.String feedId)
175: throws com.liferay.portal.SystemException,
176: com.liferay.portlet.journal.NoSuchFeedException {
177: return getPersistence().findByG_F(groupId, feedId);
178: }
179:
180: public static com.liferay.portlet.journal.model.JournalFeed fetchByG_F(
181: long groupId, java.lang.String feedId)
182: throws com.liferay.portal.SystemException {
183: return getPersistence().fetchByG_F(groupId, feedId);
184: }
185:
186: public static java.util.List findWithDynamicQuery(
187: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
188: throws com.liferay.portal.SystemException {
189: return getPersistence().findWithDynamicQuery(queryInitializer);
190: }
191:
192: public static java.util.List findWithDynamicQuery(
193: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
194: int begin, int end)
195: throws com.liferay.portal.SystemException {
196: return getPersistence().findWithDynamicQuery(queryInitializer,
197: begin, end);
198: }
199:
200: public static java.util.List findAll()
201: throws com.liferay.portal.SystemException {
202: return getPersistence().findAll();
203: }
204:
205: public static java.util.List findAll(int begin, int end)
206: throws com.liferay.portal.SystemException {
207: return getPersistence().findAll(begin, end);
208: }
209:
210: public static java.util.List findAll(int begin, int end,
211: com.liferay.portal.kernel.util.OrderByComparator obc)
212: throws com.liferay.portal.SystemException {
213: return getPersistence().findAll(begin, end, obc);
214: }
215:
216: public static void removeByUuid(java.lang.String uuid)
217: throws com.liferay.portal.SystemException {
218: getPersistence().removeByUuid(uuid);
219: }
220:
221: public static void removeByUUID_G(java.lang.String uuid,
222: long groupId) throws com.liferay.portal.SystemException,
223: com.liferay.portlet.journal.NoSuchFeedException {
224: getPersistence().removeByUUID_G(uuid, groupId);
225: }
226:
227: public static void removeByGroupId(long groupId)
228: throws com.liferay.portal.SystemException {
229: getPersistence().removeByGroupId(groupId);
230: }
231:
232: public static void removeByG_F(long groupId, java.lang.String feedId)
233: throws com.liferay.portal.SystemException,
234: com.liferay.portlet.journal.NoSuchFeedException {
235: getPersistence().removeByG_F(groupId, feedId);
236: }
237:
238: public static void removeAll()
239: throws com.liferay.portal.SystemException {
240: getPersistence().removeAll();
241: }
242:
243: public static int countByUuid(java.lang.String uuid)
244: throws com.liferay.portal.SystemException {
245: return getPersistence().countByUuid(uuid);
246: }
247:
248: public static int countByUUID_G(java.lang.String uuid, long groupId)
249: throws com.liferay.portal.SystemException {
250: return getPersistence().countByUUID_G(uuid, groupId);
251: }
252:
253: public static int countByGroupId(long groupId)
254: throws com.liferay.portal.SystemException {
255: return getPersistence().countByGroupId(groupId);
256: }
257:
258: public static int countByG_F(long groupId, java.lang.String feedId)
259: throws com.liferay.portal.SystemException {
260: return getPersistence().countByG_F(groupId, feedId);
261: }
262:
263: public static int countAll()
264: throws com.liferay.portal.SystemException {
265: return getPersistence().countAll();
266: }
267:
268: public static JournalFeedPersistence getPersistence() {
269: return _getUtil()._persistence;
270: }
271:
272: public void setPersistence(JournalFeedPersistence persistence) {
273: _persistence = persistence;
274: }
275:
276: private static JournalFeedUtil _getUtil() {
277: if (_util == null) {
278: _util = (JournalFeedUtil) com.liferay.portal.kernel.bean.BeanLocatorUtil
279: .locate(_UTIL);
280: }
281:
282: return _util;
283: }
284:
285: private static final String _UTIL = JournalFeedUtil.class.getName();
286: private static JournalFeedUtil _util;
287: private JournalFeedPersistence _persistence;
288: }
|