1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   * 
13   */
14  
15  package com.liferay.portlet.wiki.service.persistence;
16  
17  import com.liferay.portal.SystemException;
18  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
19  import com.liferay.portal.kernel.dao.orm.DynamicQuery;
20  
21  import com.liferay.portlet.wiki.model.WikiPageResource;
22  
23  import java.util.List;
24  
25  /**
26   * <a href="WikiPageResourceUtil.java.html"><b><i>View Source</i></b></a>
27   *
28   * <p>
29   * ServiceBuilder generated this class. Modifications in this class will be
30   * overwritten the next time is generated.
31   * </p>
32   *
33   * @author    Brian Wing Shun Chan
34   * @see       WikiPageResourcePersistence
35   * @see       WikiPageResourcePersistenceImpl
36   * @generated
37   */
38  public class WikiPageResourceUtil {
39      /**
40       * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
41       */
42      public static void clearCache() {
43          getPersistence().clearCache();
44      }
45  
46      /**
47       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
48       */
49      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
50          throws SystemException {
51          return getPersistence().findWithDynamicQuery(dynamicQuery);
52      }
53  
54      /**
55       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
56       */
57      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
58          int start, int end) throws SystemException {
59          return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
60      }
61  
62      /**
63       * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
64       */
65      public static WikiPageResource remove(WikiPageResource wikiPageResource)
66          throws SystemException {
67          return getPersistence().remove(wikiPageResource);
68      }
69  
70      /**
71       * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
72       */
73      public static WikiPageResource update(WikiPageResource wikiPageResource,
74          boolean merge) throws SystemException {
75          return getPersistence().update(wikiPageResource, merge);
76      }
77  
78      public static void cacheResult(
79          com.liferay.portlet.wiki.model.WikiPageResource wikiPageResource) {
80          getPersistence().cacheResult(wikiPageResource);
81      }
82  
83      public static void cacheResult(
84          java.util.List<com.liferay.portlet.wiki.model.WikiPageResource> wikiPageResources) {
85          getPersistence().cacheResult(wikiPageResources);
86      }
87  
88      public static com.liferay.portlet.wiki.model.WikiPageResource create(
89          long resourcePrimKey) {
90          return getPersistence().create(resourcePrimKey);
91      }
92  
93      public static com.liferay.portlet.wiki.model.WikiPageResource remove(
94          long resourcePrimKey)
95          throws com.liferay.portal.SystemException,
96              com.liferay.portlet.wiki.NoSuchPageResourceException {
97          return getPersistence().remove(resourcePrimKey);
98      }
99  
100     /**
101      * @deprecated Use {@link com.liferay.portal.service.persistence.BasePersistence.#update(com.liferay.portal.model.BaseModel, boolean)}.
102      */
103     public static com.liferay.portlet.wiki.model.WikiPageResource update(
104         com.liferay.portlet.wiki.model.WikiPageResource wikiPageResource)
105         throws com.liferay.portal.SystemException {
106         return getPersistence().update(wikiPageResource);
107     }
108 
109     public static com.liferay.portlet.wiki.model.WikiPageResource updateImpl(
110         com.liferay.portlet.wiki.model.WikiPageResource wikiPageResource,
111         boolean merge) throws com.liferay.portal.SystemException {
112         return getPersistence().updateImpl(wikiPageResource, merge);
113     }
114 
115     public static com.liferay.portlet.wiki.model.WikiPageResource findByPrimaryKey(
116         long resourcePrimKey)
117         throws com.liferay.portal.SystemException,
118             com.liferay.portlet.wiki.NoSuchPageResourceException {
119         return getPersistence().findByPrimaryKey(resourcePrimKey);
120     }
121 
122     public static com.liferay.portlet.wiki.model.WikiPageResource fetchByPrimaryKey(
123         long resourcePrimKey) throws com.liferay.portal.SystemException {
124         return getPersistence().fetchByPrimaryKey(resourcePrimKey);
125     }
126 
127     public static com.liferay.portlet.wiki.model.WikiPageResource findByN_T(
128         long nodeId, java.lang.String title)
129         throws com.liferay.portal.SystemException,
130             com.liferay.portlet.wiki.NoSuchPageResourceException {
131         return getPersistence().findByN_T(nodeId, title);
132     }
133 
134     public static com.liferay.portlet.wiki.model.WikiPageResource fetchByN_T(
135         long nodeId, java.lang.String title)
136         throws com.liferay.portal.SystemException {
137         return getPersistence().fetchByN_T(nodeId, title);
138     }
139 
140     public static com.liferay.portlet.wiki.model.WikiPageResource fetchByN_T(
141         long nodeId, java.lang.String title, boolean retrieveFromCache)
142         throws com.liferay.portal.SystemException {
143         return getPersistence().fetchByN_T(nodeId, title, retrieveFromCache);
144     }
145 
146     public static java.util.List<com.liferay.portlet.wiki.model.WikiPageResource> findAll()
147         throws com.liferay.portal.SystemException {
148         return getPersistence().findAll();
149     }
150 
151     public static java.util.List<com.liferay.portlet.wiki.model.WikiPageResource> findAll(
152         int start, int end) throws com.liferay.portal.SystemException {
153         return getPersistence().findAll(start, end);
154     }
155 
156     public static java.util.List<com.liferay.portlet.wiki.model.WikiPageResource> findAll(
157         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
158         throws com.liferay.portal.SystemException {
159         return getPersistence().findAll(start, end, obc);
160     }
161 
162     public static void removeByN_T(long nodeId, java.lang.String title)
163         throws com.liferay.portal.SystemException,
164             com.liferay.portlet.wiki.NoSuchPageResourceException {
165         getPersistence().removeByN_T(nodeId, title);
166     }
167 
168     public static void removeAll() throws com.liferay.portal.SystemException {
169         getPersistence().removeAll();
170     }
171 
172     public static int countByN_T(long nodeId, java.lang.String title)
173         throws com.liferay.portal.SystemException {
174         return getPersistence().countByN_T(nodeId, title);
175     }
176 
177     public static int countAll() throws com.liferay.portal.SystemException {
178         return getPersistence().countAll();
179     }
180 
181     public static WikiPageResourcePersistence getPersistence() {
182         if (_persistence == null) {
183             _persistence = (WikiPageResourcePersistence)PortalBeanLocatorUtil.locate(WikiPageResourcePersistence.class.getName());
184         }
185 
186         return _persistence;
187     }
188 
189     public void setPersistence(WikiPageResourcePersistence persistence) {
190         _persistence = persistence;
191     }
192 
193     private static WikiPageResourcePersistence _persistence;
194 }