1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    *
5    *
6    *
7    * The contents of this file are subject to the terms of the Liferay Enterprise
8    * Subscription License ("License"). You may not use this file except in
9    * compliance with the License. You can obtain a copy of the License by
10   * contacting Liferay, Inc. See the License for the specific language governing
11   * permissions and limitations under the License, including but not limited to
12   * distribution rights of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.expando.service.persistence;
24  
25  import com.liferay.portal.SystemException;
26  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
27  import com.liferay.portal.kernel.dao.orm.DynamicQuery;
28  
29  import com.liferay.portlet.expando.model.ExpandoTable;
30  
31  import java.util.List;
32  
33  /**
34   * <a href="ExpandoTableUtil.java.html"><b><i>View Source</i></b></a>
35   *
36   * <p>
37   * ServiceBuilder generated this class. Modifications in this class will be
38   * overwritten the next time is generated.
39   * </p>
40   *
41   * @author    Brian Wing Shun Chan
42   * @see       ExpandoTablePersistence
43   * @see       ExpandoTablePersistenceImpl
44   * @generated
45   */
46  public class ExpandoTableUtil {
47      /**
48       * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
49       */
50      public static void clearCache() {
51          getPersistence().clearCache();
52      }
53  
54      /**
55       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
56       */
57      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
58          throws SystemException {
59          return getPersistence().findWithDynamicQuery(dynamicQuery);
60      }
61  
62      /**
63       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
64       */
65      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
66          int start, int end) throws SystemException {
67          return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
68      }
69  
70      /**
71       * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
72       */
73      public static ExpandoTable remove(ExpandoTable expandoTable)
74          throws SystemException {
75          return getPersistence().remove(expandoTable);
76      }
77  
78      /**
79       * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
80       */
81      public static ExpandoTable update(ExpandoTable expandoTable, boolean merge)
82          throws SystemException {
83          return getPersistence().update(expandoTable, merge);
84      }
85  
86      public static void cacheResult(
87          com.liferay.portlet.expando.model.ExpandoTable expandoTable) {
88          getPersistence().cacheResult(expandoTable);
89      }
90  
91      public static void cacheResult(
92          java.util.List<com.liferay.portlet.expando.model.ExpandoTable> expandoTables) {
93          getPersistence().cacheResult(expandoTables);
94      }
95  
96      public static com.liferay.portlet.expando.model.ExpandoTable create(
97          long tableId) {
98          return getPersistence().create(tableId);
99      }
100 
101     public static com.liferay.portlet.expando.model.ExpandoTable remove(
102         long tableId)
103         throws com.liferay.portal.SystemException,
104             com.liferay.portlet.expando.NoSuchTableException {
105         return getPersistence().remove(tableId);
106     }
107 
108     /**
109      * @deprecated Use {@link com.liferay.portal.service.persistence.BasePersistence.#update(com.liferay.portal.model.BaseModel, boolean)}.
110      */
111     public static com.liferay.portlet.expando.model.ExpandoTable update(
112         com.liferay.portlet.expando.model.ExpandoTable expandoTable)
113         throws com.liferay.portal.SystemException {
114         return getPersistence().update(expandoTable);
115     }
116 
117     public static com.liferay.portlet.expando.model.ExpandoTable updateImpl(
118         com.liferay.portlet.expando.model.ExpandoTable expandoTable,
119         boolean merge) throws com.liferay.portal.SystemException {
120         return getPersistence().updateImpl(expandoTable, merge);
121     }
122 
123     public static com.liferay.portlet.expando.model.ExpandoTable findByPrimaryKey(
124         long tableId)
125         throws com.liferay.portal.SystemException,
126             com.liferay.portlet.expando.NoSuchTableException {
127         return getPersistence().findByPrimaryKey(tableId);
128     }
129 
130     public static com.liferay.portlet.expando.model.ExpandoTable fetchByPrimaryKey(
131         long tableId) throws com.liferay.portal.SystemException {
132         return getPersistence().fetchByPrimaryKey(tableId);
133     }
134 
135     public static java.util.List<com.liferay.portlet.expando.model.ExpandoTable> findByC_C(
136         long companyId, long classNameId)
137         throws com.liferay.portal.SystemException {
138         return getPersistence().findByC_C(companyId, classNameId);
139     }
140 
141     public static java.util.List<com.liferay.portlet.expando.model.ExpandoTable> findByC_C(
142         long companyId, long classNameId, int start, int end)
143         throws com.liferay.portal.SystemException {
144         return getPersistence().findByC_C(companyId, classNameId, start, end);
145     }
146 
147     public static java.util.List<com.liferay.portlet.expando.model.ExpandoTable> findByC_C(
148         long companyId, long classNameId, int start, int end,
149         com.liferay.portal.kernel.util.OrderByComparator obc)
150         throws com.liferay.portal.SystemException {
151         return getPersistence()
152                    .findByC_C(companyId, classNameId, start, end, obc);
153     }
154 
155     public static com.liferay.portlet.expando.model.ExpandoTable findByC_C_First(
156         long companyId, long classNameId,
157         com.liferay.portal.kernel.util.OrderByComparator obc)
158         throws com.liferay.portal.SystemException,
159             com.liferay.portlet.expando.NoSuchTableException {
160         return getPersistence().findByC_C_First(companyId, classNameId, obc);
161     }
162 
163     public static com.liferay.portlet.expando.model.ExpandoTable findByC_C_Last(
164         long companyId, long classNameId,
165         com.liferay.portal.kernel.util.OrderByComparator obc)
166         throws com.liferay.portal.SystemException,
167             com.liferay.portlet.expando.NoSuchTableException {
168         return getPersistence().findByC_C_Last(companyId, classNameId, obc);
169     }
170 
171     public static com.liferay.portlet.expando.model.ExpandoTable[] findByC_C_PrevAndNext(
172         long tableId, long companyId, long classNameId,
173         com.liferay.portal.kernel.util.OrderByComparator obc)
174         throws com.liferay.portal.SystemException,
175             com.liferay.portlet.expando.NoSuchTableException {
176         return getPersistence()
177                    .findByC_C_PrevAndNext(tableId, companyId, classNameId, obc);
178     }
179 
180     public static com.liferay.portlet.expando.model.ExpandoTable findByC_C_N(
181         long companyId, long classNameId, java.lang.String name)
182         throws com.liferay.portal.SystemException,
183             com.liferay.portlet.expando.NoSuchTableException {
184         return getPersistence().findByC_C_N(companyId, classNameId, name);
185     }
186 
187     public static com.liferay.portlet.expando.model.ExpandoTable fetchByC_C_N(
188         long companyId, long classNameId, java.lang.String name)
189         throws com.liferay.portal.SystemException {
190         return getPersistence().fetchByC_C_N(companyId, classNameId, name);
191     }
192 
193     public static com.liferay.portlet.expando.model.ExpandoTable fetchByC_C_N(
194         long companyId, long classNameId, java.lang.String name,
195         boolean retrieveFromCache) throws com.liferay.portal.SystemException {
196         return getPersistence()
197                    .fetchByC_C_N(companyId, classNameId, name, retrieveFromCache);
198     }
199 
200     public static java.util.List<com.liferay.portlet.expando.model.ExpandoTable> findAll()
201         throws com.liferay.portal.SystemException {
202         return getPersistence().findAll();
203     }
204 
205     public static java.util.List<com.liferay.portlet.expando.model.ExpandoTable> findAll(
206         int start, int end) throws com.liferay.portal.SystemException {
207         return getPersistence().findAll(start, end);
208     }
209 
210     public static java.util.List<com.liferay.portlet.expando.model.ExpandoTable> findAll(
211         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
212         throws com.liferay.portal.SystemException {
213         return getPersistence().findAll(start, end, obc);
214     }
215 
216     public static void removeByC_C(long companyId, long classNameId)
217         throws com.liferay.portal.SystemException {
218         getPersistence().removeByC_C(companyId, classNameId);
219     }
220 
221     public static void removeByC_C_N(long companyId, long classNameId,
222         java.lang.String name)
223         throws com.liferay.portal.SystemException,
224             com.liferay.portlet.expando.NoSuchTableException {
225         getPersistence().removeByC_C_N(companyId, classNameId, name);
226     }
227 
228     public static void removeAll() throws com.liferay.portal.SystemException {
229         getPersistence().removeAll();
230     }
231 
232     public static int countByC_C(long companyId, long classNameId)
233         throws com.liferay.portal.SystemException {
234         return getPersistence().countByC_C(companyId, classNameId);
235     }
236 
237     public static int countByC_C_N(long companyId, long classNameId,
238         java.lang.String name) throws com.liferay.portal.SystemException {
239         return getPersistence().countByC_C_N(companyId, classNameId, name);
240     }
241 
242     public static int countAll() throws com.liferay.portal.SystemException {
243         return getPersistence().countAll();
244     }
245 
246     public static ExpandoTablePersistence getPersistence() {
247         if (_persistence == null) {
248             _persistence = (ExpandoTablePersistence)PortalBeanLocatorUtil.locate(ExpandoTablePersistence.class.getName());
249         }
250 
251         return _persistence;
252     }
253 
254     public void setPersistence(ExpandoTablePersistence persistence) {
255         _persistence = persistence;
256     }
257 
258     private static ExpandoTablePersistence _persistence;
259 }