001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.journal.service.persistence;
016    
017    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
019    import com.liferay.portal.kernel.exception.SystemException;
020    import com.liferay.portal.kernel.util.OrderByComparator;
021    import com.liferay.portal.service.ServiceContext;
022    
023    import com.liferay.portlet.journal.model.JournalFeed;
024    
025    import java.util.List;
026    
027    /**
028     * @author    Brian Wing Shun Chan
029     * @see       JournalFeedPersistence
030     * @see       JournalFeedPersistenceImpl
031     * @generated
032     */
033    public class JournalFeedUtil {
034            /**
035             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
036             */
037            public static void clearCache() {
038                    getPersistence().clearCache();
039            }
040    
041            /**
042             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel)
043             */
044            public static void clearCache(JournalFeed journalFeed) {
045                    getPersistence().clearCache(journalFeed);
046            }
047    
048            /**
049             * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
050             */
051            public long countWithDynamicQuery(DynamicQuery dynamicQuery)
052                    throws SystemException {
053                    return getPersistence().countWithDynamicQuery(dynamicQuery);
054            }
055    
056            /**
057             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
058             */
059            public static List<JournalFeed> findWithDynamicQuery(
060                    DynamicQuery dynamicQuery) throws SystemException {
061                    return getPersistence().findWithDynamicQuery(dynamicQuery);
062            }
063    
064            /**
065             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
066             */
067            public static List<JournalFeed> findWithDynamicQuery(
068                    DynamicQuery dynamicQuery, int start, int end)
069                    throws SystemException {
070                    return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
071            }
072    
073            /**
074             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
075             */
076            public static List<JournalFeed> findWithDynamicQuery(
077                    DynamicQuery dynamicQuery, int start, int end,
078                    OrderByComparator orderByComparator) throws SystemException {
079                    return getPersistence()
080                                       .findWithDynamicQuery(dynamicQuery, start, end,
081                            orderByComparator);
082            }
083    
084            /**
085             * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
086             */
087            public static JournalFeed remove(JournalFeed journalFeed)
088                    throws SystemException {
089                    return getPersistence().remove(journalFeed);
090            }
091    
092            /**
093             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
094             */
095            public static JournalFeed update(JournalFeed journalFeed, boolean merge)
096                    throws SystemException {
097                    return getPersistence().update(journalFeed, merge);
098            }
099    
100            /**
101             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)
102             */
103            public static JournalFeed update(JournalFeed journalFeed, boolean merge,
104                    ServiceContext serviceContext) throws SystemException {
105                    return getPersistence().update(journalFeed, merge, serviceContext);
106            }
107    
108            public static void cacheResult(
109                    com.liferay.portlet.journal.model.JournalFeed journalFeed) {
110                    getPersistence().cacheResult(journalFeed);
111            }
112    
113            public static void cacheResult(
114                    java.util.List<com.liferay.portlet.journal.model.JournalFeed> journalFeeds) {
115                    getPersistence().cacheResult(journalFeeds);
116            }
117    
118            public static com.liferay.portlet.journal.model.JournalFeed create(long id) {
119                    return getPersistence().create(id);
120            }
121    
122            public static com.liferay.portlet.journal.model.JournalFeed remove(long id)
123                    throws com.liferay.portal.kernel.exception.SystemException,
124                            com.liferay.portlet.journal.NoSuchFeedException {
125                    return getPersistence().remove(id);
126            }
127    
128            public static com.liferay.portlet.journal.model.JournalFeed updateImpl(
129                    com.liferay.portlet.journal.model.JournalFeed journalFeed, boolean merge)
130                    throws com.liferay.portal.kernel.exception.SystemException {
131                    return getPersistence().updateImpl(journalFeed, merge);
132            }
133    
134            public static com.liferay.portlet.journal.model.JournalFeed findByPrimaryKey(
135                    long id)
136                    throws com.liferay.portal.kernel.exception.SystemException,
137                            com.liferay.portlet.journal.NoSuchFeedException {
138                    return getPersistence().findByPrimaryKey(id);
139            }
140    
141            public static com.liferay.portlet.journal.model.JournalFeed fetchByPrimaryKey(
142                    long id) throws com.liferay.portal.kernel.exception.SystemException {
143                    return getPersistence().fetchByPrimaryKey(id);
144            }
145    
146            public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findByUuid(
147                    java.lang.String uuid)
148                    throws com.liferay.portal.kernel.exception.SystemException {
149                    return getPersistence().findByUuid(uuid);
150            }
151    
152            public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findByUuid(
153                    java.lang.String uuid, int start, int end)
154                    throws com.liferay.portal.kernel.exception.SystemException {
155                    return getPersistence().findByUuid(uuid, start, end);
156            }
157    
158            public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findByUuid(
159                    java.lang.String uuid, int start, int end,
160                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
161                    throws com.liferay.portal.kernel.exception.SystemException {
162                    return getPersistence().findByUuid(uuid, start, end, orderByComparator);
163            }
164    
165            public static com.liferay.portlet.journal.model.JournalFeed findByUuid_First(
166                    java.lang.String uuid,
167                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
168                    throws com.liferay.portal.kernel.exception.SystemException,
169                            com.liferay.portlet.journal.NoSuchFeedException {
170                    return getPersistence().findByUuid_First(uuid, orderByComparator);
171            }
172    
173            public static com.liferay.portlet.journal.model.JournalFeed findByUuid_Last(
174                    java.lang.String uuid,
175                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
176                    throws com.liferay.portal.kernel.exception.SystemException,
177                            com.liferay.portlet.journal.NoSuchFeedException {
178                    return getPersistence().findByUuid_Last(uuid, orderByComparator);
179            }
180    
181            public static com.liferay.portlet.journal.model.JournalFeed[] findByUuid_PrevAndNext(
182                    long id, java.lang.String uuid,
183                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
184                    throws com.liferay.portal.kernel.exception.SystemException,
185                            com.liferay.portlet.journal.NoSuchFeedException {
186                    return getPersistence()
187                                       .findByUuid_PrevAndNext(id, uuid, orderByComparator);
188            }
189    
190            public static com.liferay.portlet.journal.model.JournalFeed findByUUID_G(
191                    java.lang.String uuid, long groupId)
192                    throws com.liferay.portal.kernel.exception.SystemException,
193                            com.liferay.portlet.journal.NoSuchFeedException {
194                    return getPersistence().findByUUID_G(uuid, groupId);
195            }
196    
197            public static com.liferay.portlet.journal.model.JournalFeed fetchByUUID_G(
198                    java.lang.String uuid, long groupId)
199                    throws com.liferay.portal.kernel.exception.SystemException {
200                    return getPersistence().fetchByUUID_G(uuid, groupId);
201            }
202    
203            public static com.liferay.portlet.journal.model.JournalFeed fetchByUUID_G(
204                    java.lang.String uuid, long groupId, boolean retrieveFromCache)
205                    throws com.liferay.portal.kernel.exception.SystemException {
206                    return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
207            }
208    
209            public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findByGroupId(
210                    long groupId)
211                    throws com.liferay.portal.kernel.exception.SystemException {
212                    return getPersistence().findByGroupId(groupId);
213            }
214    
215            public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findByGroupId(
216                    long groupId, int start, int end)
217                    throws com.liferay.portal.kernel.exception.SystemException {
218                    return getPersistence().findByGroupId(groupId, start, end);
219            }
220    
221            public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findByGroupId(
222                    long groupId, int start, int end,
223                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
224                    throws com.liferay.portal.kernel.exception.SystemException {
225                    return getPersistence()
226                                       .findByGroupId(groupId, start, end, orderByComparator);
227            }
228    
229            public static com.liferay.portlet.journal.model.JournalFeed findByGroupId_First(
230                    long groupId,
231                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
232                    throws com.liferay.portal.kernel.exception.SystemException,
233                            com.liferay.portlet.journal.NoSuchFeedException {
234                    return getPersistence().findByGroupId_First(groupId, orderByComparator);
235            }
236    
237            public static com.liferay.portlet.journal.model.JournalFeed findByGroupId_Last(
238                    long groupId,
239                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
240                    throws com.liferay.portal.kernel.exception.SystemException,
241                            com.liferay.portlet.journal.NoSuchFeedException {
242                    return getPersistence().findByGroupId_Last(groupId, orderByComparator);
243            }
244    
245            public static com.liferay.portlet.journal.model.JournalFeed[] findByGroupId_PrevAndNext(
246                    long id, long groupId,
247                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
248                    throws com.liferay.portal.kernel.exception.SystemException,
249                            com.liferay.portlet.journal.NoSuchFeedException {
250                    return getPersistence()
251                                       .findByGroupId_PrevAndNext(id, groupId, orderByComparator);
252            }
253    
254            public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> filterFindByGroupId(
255                    long groupId)
256                    throws com.liferay.portal.kernel.exception.SystemException {
257                    return getPersistence().filterFindByGroupId(groupId);
258            }
259    
260            public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> filterFindByGroupId(
261                    long groupId, int start, int end)
262                    throws com.liferay.portal.kernel.exception.SystemException {
263                    return getPersistence().filterFindByGroupId(groupId, start, end);
264            }
265    
266            public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> filterFindByGroupId(
267                    long groupId, int start, int end,
268                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
269                    throws com.liferay.portal.kernel.exception.SystemException {
270                    return getPersistence()
271                                       .filterFindByGroupId(groupId, start, end, orderByComparator);
272            }
273    
274            public static com.liferay.portlet.journal.model.JournalFeed findByG_F(
275                    long groupId, java.lang.String feedId)
276                    throws com.liferay.portal.kernel.exception.SystemException,
277                            com.liferay.portlet.journal.NoSuchFeedException {
278                    return getPersistence().findByG_F(groupId, feedId);
279            }
280    
281            public static com.liferay.portlet.journal.model.JournalFeed fetchByG_F(
282                    long groupId, java.lang.String feedId)
283                    throws com.liferay.portal.kernel.exception.SystemException {
284                    return getPersistence().fetchByG_F(groupId, feedId);
285            }
286    
287            public static com.liferay.portlet.journal.model.JournalFeed fetchByG_F(
288                    long groupId, java.lang.String feedId, boolean retrieveFromCache)
289                    throws com.liferay.portal.kernel.exception.SystemException {
290                    return getPersistence().fetchByG_F(groupId, feedId, retrieveFromCache);
291            }
292    
293            public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findAll()
294                    throws com.liferay.portal.kernel.exception.SystemException {
295                    return getPersistence().findAll();
296            }
297    
298            public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findAll(
299                    int start, int end)
300                    throws com.liferay.portal.kernel.exception.SystemException {
301                    return getPersistence().findAll(start, end);
302            }
303    
304            public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findAll(
305                    int start, int end,
306                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
307                    throws com.liferay.portal.kernel.exception.SystemException {
308                    return getPersistence().findAll(start, end, orderByComparator);
309            }
310    
311            public static void removeByUuid(java.lang.String uuid)
312                    throws com.liferay.portal.kernel.exception.SystemException {
313                    getPersistence().removeByUuid(uuid);
314            }
315    
316            public static void removeByUUID_G(java.lang.String uuid, long groupId)
317                    throws com.liferay.portal.kernel.exception.SystemException,
318                            com.liferay.portlet.journal.NoSuchFeedException {
319                    getPersistence().removeByUUID_G(uuid, groupId);
320            }
321    
322            public static void removeByGroupId(long groupId)
323                    throws com.liferay.portal.kernel.exception.SystemException {
324                    getPersistence().removeByGroupId(groupId);
325            }
326    
327            public static void removeByG_F(long groupId, java.lang.String feedId)
328                    throws com.liferay.portal.kernel.exception.SystemException,
329                            com.liferay.portlet.journal.NoSuchFeedException {
330                    getPersistence().removeByG_F(groupId, feedId);
331            }
332    
333            public static void removeAll()
334                    throws com.liferay.portal.kernel.exception.SystemException {
335                    getPersistence().removeAll();
336            }
337    
338            public static int countByUuid(java.lang.String uuid)
339                    throws com.liferay.portal.kernel.exception.SystemException {
340                    return getPersistence().countByUuid(uuid);
341            }
342    
343            public static int countByUUID_G(java.lang.String uuid, long groupId)
344                    throws com.liferay.portal.kernel.exception.SystemException {
345                    return getPersistence().countByUUID_G(uuid, groupId);
346            }
347    
348            public static int countByGroupId(long groupId)
349                    throws com.liferay.portal.kernel.exception.SystemException {
350                    return getPersistence().countByGroupId(groupId);
351            }
352    
353            public static int filterCountByGroupId(long groupId)
354                    throws com.liferay.portal.kernel.exception.SystemException {
355                    return getPersistence().filterCountByGroupId(groupId);
356            }
357    
358            public static int countByG_F(long groupId, java.lang.String feedId)
359                    throws com.liferay.portal.kernel.exception.SystemException {
360                    return getPersistence().countByG_F(groupId, feedId);
361            }
362    
363            public static int filterCountByG_F(long groupId, java.lang.String feedId)
364                    throws com.liferay.portal.kernel.exception.SystemException {
365                    return getPersistence().filterCountByG_F(groupId, feedId);
366            }
367    
368            public static int countAll()
369                    throws com.liferay.portal.kernel.exception.SystemException {
370                    return getPersistence().countAll();
371            }
372    
373            public static JournalFeedPersistence getPersistence() {
374                    if (_persistence == null) {
375                            _persistence = (JournalFeedPersistence)PortalBeanLocatorUtil.locate(JournalFeedPersistence.class.getName());
376                    }
377    
378                    return _persistence;
379            }
380    
381            public void setPersistence(JournalFeedPersistence persistence) {
382                    _persistence = persistence;
383            }
384    
385            private static JournalFeedPersistence _persistence;
386    }