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.wiki.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.wiki.model.WikiPageResource;
024    
025    import java.util.List;
026    
027    /**
028     * @author    Brian Wing Shun Chan
029     * @see       WikiPageResourcePersistence
030     * @see       WikiPageResourcePersistenceImpl
031     * @generated
032     */
033    public class WikiPageResourceUtil {
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(WikiPageResource wikiPageResource) {
045                    getPersistence().clearCache(wikiPageResource);
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<WikiPageResource> 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<WikiPageResource> 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<WikiPageResource> 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 WikiPageResource remove(WikiPageResource wikiPageResource)
088                    throws SystemException {
089                    return getPersistence().remove(wikiPageResource);
090            }
091    
092            /**
093             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
094             */
095            public static WikiPageResource update(WikiPageResource wikiPageResource,
096                    boolean merge) throws SystemException {
097                    return getPersistence().update(wikiPageResource, merge);
098            }
099    
100            /**
101             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)
102             */
103            public static WikiPageResource update(WikiPageResource wikiPageResource,
104                    boolean merge, ServiceContext serviceContext) throws SystemException {
105                    return getPersistence().update(wikiPageResource, merge, serviceContext);
106            }
107    
108            public static void cacheResult(
109                    com.liferay.portlet.wiki.model.WikiPageResource wikiPageResource) {
110                    getPersistence().cacheResult(wikiPageResource);
111            }
112    
113            public static void cacheResult(
114                    java.util.List<com.liferay.portlet.wiki.model.WikiPageResource> wikiPageResources) {
115                    getPersistence().cacheResult(wikiPageResources);
116            }
117    
118            public static com.liferay.portlet.wiki.model.WikiPageResource create(
119                    long resourcePrimKey) {
120                    return getPersistence().create(resourcePrimKey);
121            }
122    
123            public static com.liferay.portlet.wiki.model.WikiPageResource remove(
124                    long resourcePrimKey)
125                    throws com.liferay.portal.kernel.exception.SystemException,
126                            com.liferay.portlet.wiki.NoSuchPageResourceException {
127                    return getPersistence().remove(resourcePrimKey);
128            }
129    
130            public static com.liferay.portlet.wiki.model.WikiPageResource updateImpl(
131                    com.liferay.portlet.wiki.model.WikiPageResource wikiPageResource,
132                    boolean merge)
133                    throws com.liferay.portal.kernel.exception.SystemException {
134                    return getPersistence().updateImpl(wikiPageResource, merge);
135            }
136    
137            public static com.liferay.portlet.wiki.model.WikiPageResource findByPrimaryKey(
138                    long resourcePrimKey)
139                    throws com.liferay.portal.kernel.exception.SystemException,
140                            com.liferay.portlet.wiki.NoSuchPageResourceException {
141                    return getPersistence().findByPrimaryKey(resourcePrimKey);
142            }
143    
144            public static com.liferay.portlet.wiki.model.WikiPageResource fetchByPrimaryKey(
145                    long resourcePrimKey)
146                    throws com.liferay.portal.kernel.exception.SystemException {
147                    return getPersistence().fetchByPrimaryKey(resourcePrimKey);
148            }
149    
150            public static java.util.List<com.liferay.portlet.wiki.model.WikiPageResource> findByUuid(
151                    java.lang.String uuid)
152                    throws com.liferay.portal.kernel.exception.SystemException {
153                    return getPersistence().findByUuid(uuid);
154            }
155    
156            public static java.util.List<com.liferay.portlet.wiki.model.WikiPageResource> findByUuid(
157                    java.lang.String uuid, int start, int end)
158                    throws com.liferay.portal.kernel.exception.SystemException {
159                    return getPersistence().findByUuid(uuid, start, end);
160            }
161    
162            public static java.util.List<com.liferay.portlet.wiki.model.WikiPageResource> findByUuid(
163                    java.lang.String uuid, int start, int end,
164                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
165                    throws com.liferay.portal.kernel.exception.SystemException {
166                    return getPersistence().findByUuid(uuid, start, end, orderByComparator);
167            }
168    
169            public static com.liferay.portlet.wiki.model.WikiPageResource findByUuid_First(
170                    java.lang.String uuid,
171                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
172                    throws com.liferay.portal.kernel.exception.SystemException,
173                            com.liferay.portlet.wiki.NoSuchPageResourceException {
174                    return getPersistence().findByUuid_First(uuid, orderByComparator);
175            }
176    
177            public static com.liferay.portlet.wiki.model.WikiPageResource findByUuid_Last(
178                    java.lang.String uuid,
179                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
180                    throws com.liferay.portal.kernel.exception.SystemException,
181                            com.liferay.portlet.wiki.NoSuchPageResourceException {
182                    return getPersistence().findByUuid_Last(uuid, orderByComparator);
183            }
184    
185            public static com.liferay.portlet.wiki.model.WikiPageResource[] findByUuid_PrevAndNext(
186                    long resourcePrimKey, java.lang.String uuid,
187                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
188                    throws com.liferay.portal.kernel.exception.SystemException,
189                            com.liferay.portlet.wiki.NoSuchPageResourceException {
190                    return getPersistence()
191                                       .findByUuid_PrevAndNext(resourcePrimKey, uuid,
192                            orderByComparator);
193            }
194    
195            public static com.liferay.portlet.wiki.model.WikiPageResource findByN_T(
196                    long nodeId, java.lang.String title)
197                    throws com.liferay.portal.kernel.exception.SystemException,
198                            com.liferay.portlet.wiki.NoSuchPageResourceException {
199                    return getPersistence().findByN_T(nodeId, title);
200            }
201    
202            public static com.liferay.portlet.wiki.model.WikiPageResource fetchByN_T(
203                    long nodeId, java.lang.String title)
204                    throws com.liferay.portal.kernel.exception.SystemException {
205                    return getPersistence().fetchByN_T(nodeId, title);
206            }
207    
208            public static com.liferay.portlet.wiki.model.WikiPageResource fetchByN_T(
209                    long nodeId, java.lang.String title, boolean retrieveFromCache)
210                    throws com.liferay.portal.kernel.exception.SystemException {
211                    return getPersistence().fetchByN_T(nodeId, title, retrieveFromCache);
212            }
213    
214            public static java.util.List<com.liferay.portlet.wiki.model.WikiPageResource> findAll()
215                    throws com.liferay.portal.kernel.exception.SystemException {
216                    return getPersistence().findAll();
217            }
218    
219            public static java.util.List<com.liferay.portlet.wiki.model.WikiPageResource> findAll(
220                    int start, int end)
221                    throws com.liferay.portal.kernel.exception.SystemException {
222                    return getPersistence().findAll(start, end);
223            }
224    
225            public static java.util.List<com.liferay.portlet.wiki.model.WikiPageResource> findAll(
226                    int start, int end,
227                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
228                    throws com.liferay.portal.kernel.exception.SystemException {
229                    return getPersistence().findAll(start, end, orderByComparator);
230            }
231    
232            public static void removeByUuid(java.lang.String uuid)
233                    throws com.liferay.portal.kernel.exception.SystemException {
234                    getPersistence().removeByUuid(uuid);
235            }
236    
237            public static void removeByN_T(long nodeId, java.lang.String title)
238                    throws com.liferay.portal.kernel.exception.SystemException,
239                            com.liferay.portlet.wiki.NoSuchPageResourceException {
240                    getPersistence().removeByN_T(nodeId, title);
241            }
242    
243            public static void removeAll()
244                    throws com.liferay.portal.kernel.exception.SystemException {
245                    getPersistence().removeAll();
246            }
247    
248            public static int countByUuid(java.lang.String uuid)
249                    throws com.liferay.portal.kernel.exception.SystemException {
250                    return getPersistence().countByUuid(uuid);
251            }
252    
253            public static int countByN_T(long nodeId, java.lang.String title)
254                    throws com.liferay.portal.kernel.exception.SystemException {
255                    return getPersistence().countByN_T(nodeId, title);
256            }
257    
258            public static int countAll()
259                    throws com.liferay.portal.kernel.exception.SystemException {
260                    return getPersistence().countAll();
261            }
262    
263            public static WikiPageResourcePersistence getPersistence() {
264                    if (_persistence == null) {
265                            _persistence = (WikiPageResourcePersistence)PortalBeanLocatorUtil.locate(WikiPageResourcePersistence.class.getName());
266                    }
267    
268                    return _persistence;
269            }
270    
271            public void setPersistence(WikiPageResourcePersistence persistence) {
272                    _persistence = persistence;
273            }
274    
275            private static WikiPageResourcePersistence _persistence;
276    }