1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.expando.service.persistence;
16  
17  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18  import com.liferay.portal.kernel.dao.orm.DynamicQuery;
19  import com.liferay.portal.kernel.exception.SystemException;
20  
21  import com.liferay.portlet.expando.model.ExpandoTable;
22  
23  import java.util.List;
24  
25  /**
26   * <a href="ExpandoTableUtil.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       ExpandoTablePersistence
35   * @see       ExpandoTablePersistenceImpl
36   * @generated
37   */
38  public class ExpandoTableUtil {
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 ExpandoTable remove(ExpandoTable expandoTable)
66          throws SystemException {
67          return getPersistence().remove(expandoTable);
68      }
69  
70      /**
71       * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
72       */
73      public static ExpandoTable update(ExpandoTable expandoTable, boolean merge)
74          throws SystemException {
75          return getPersistence().update(expandoTable, merge);
76      }
77  
78      public static void cacheResult(
79          com.liferay.portlet.expando.model.ExpandoTable expandoTable) {
80          getPersistence().cacheResult(expandoTable);
81      }
82  
83      public static void cacheResult(
84          java.util.List<com.liferay.portlet.expando.model.ExpandoTable> expandoTables) {
85          getPersistence().cacheResult(expandoTables);
86      }
87  
88      public static com.liferay.portlet.expando.model.ExpandoTable create(
89          long tableId) {
90          return getPersistence().create(tableId);
91      }
92  
93      public static com.liferay.portlet.expando.model.ExpandoTable remove(
94          long tableId)
95          throws com.liferay.portal.kernel.exception.SystemException,
96              com.liferay.portlet.expando.NoSuchTableException {
97          return getPersistence().remove(tableId);
98      }
99  
100     public static com.liferay.portlet.expando.model.ExpandoTable updateImpl(
101         com.liferay.portlet.expando.model.ExpandoTable expandoTable,
102         boolean merge)
103         throws com.liferay.portal.kernel.exception.SystemException {
104         return getPersistence().updateImpl(expandoTable, merge);
105     }
106 
107     public static com.liferay.portlet.expando.model.ExpandoTable findByPrimaryKey(
108         long tableId)
109         throws com.liferay.portal.kernel.exception.SystemException,
110             com.liferay.portlet.expando.NoSuchTableException {
111         return getPersistence().findByPrimaryKey(tableId);
112     }
113 
114     public static com.liferay.portlet.expando.model.ExpandoTable fetchByPrimaryKey(
115         long tableId)
116         throws com.liferay.portal.kernel.exception.SystemException {
117         return getPersistence().fetchByPrimaryKey(tableId);
118     }
119 
120     public static java.util.List<com.liferay.portlet.expando.model.ExpandoTable> findByC_C(
121         long companyId, long classNameId)
122         throws com.liferay.portal.kernel.exception.SystemException {
123         return getPersistence().findByC_C(companyId, classNameId);
124     }
125 
126     public static java.util.List<com.liferay.portlet.expando.model.ExpandoTable> findByC_C(
127         long companyId, long classNameId, int start, int end)
128         throws com.liferay.portal.kernel.exception.SystemException {
129         return getPersistence().findByC_C(companyId, classNameId, start, end);
130     }
131 
132     public static java.util.List<com.liferay.portlet.expando.model.ExpandoTable> findByC_C(
133         long companyId, long classNameId, int start, int end,
134         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
135         throws com.liferay.portal.kernel.exception.SystemException {
136         return getPersistence()
137                    .findByC_C(companyId, classNameId, start, end,
138             orderByComparator);
139     }
140 
141     public static com.liferay.portlet.expando.model.ExpandoTable findByC_C_First(
142         long companyId, long classNameId,
143         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
144         throws com.liferay.portal.kernel.exception.SystemException,
145             com.liferay.portlet.expando.NoSuchTableException {
146         return getPersistence()
147                    .findByC_C_First(companyId, classNameId, orderByComparator);
148     }
149 
150     public static com.liferay.portlet.expando.model.ExpandoTable findByC_C_Last(
151         long companyId, long classNameId,
152         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
153         throws com.liferay.portal.kernel.exception.SystemException,
154             com.liferay.portlet.expando.NoSuchTableException {
155         return getPersistence()
156                    .findByC_C_Last(companyId, classNameId, orderByComparator);
157     }
158 
159     public static com.liferay.portlet.expando.model.ExpandoTable[] findByC_C_PrevAndNext(
160         long tableId, long companyId, long classNameId,
161         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
162         throws com.liferay.portal.kernel.exception.SystemException,
163             com.liferay.portlet.expando.NoSuchTableException {
164         return getPersistence()
165                    .findByC_C_PrevAndNext(tableId, companyId, classNameId,
166             orderByComparator);
167     }
168 
169     public static com.liferay.portlet.expando.model.ExpandoTable findByC_C_N(
170         long companyId, long classNameId, java.lang.String name)
171         throws com.liferay.portal.kernel.exception.SystemException,
172             com.liferay.portlet.expando.NoSuchTableException {
173         return getPersistence().findByC_C_N(companyId, classNameId, name);
174     }
175 
176     public static com.liferay.portlet.expando.model.ExpandoTable fetchByC_C_N(
177         long companyId, long classNameId, java.lang.String name)
178         throws com.liferay.portal.kernel.exception.SystemException {
179         return getPersistence().fetchByC_C_N(companyId, classNameId, name);
180     }
181 
182     public static com.liferay.portlet.expando.model.ExpandoTable fetchByC_C_N(
183         long companyId, long classNameId, java.lang.String name,
184         boolean retrieveFromCache)
185         throws com.liferay.portal.kernel.exception.SystemException {
186         return getPersistence()
187                    .fetchByC_C_N(companyId, classNameId, name, retrieveFromCache);
188     }
189 
190     public static java.util.List<com.liferay.portlet.expando.model.ExpandoTable> findAll()
191         throws com.liferay.portal.kernel.exception.SystemException {
192         return getPersistence().findAll();
193     }
194 
195     public static java.util.List<com.liferay.portlet.expando.model.ExpandoTable> findAll(
196         int start, int end)
197         throws com.liferay.portal.kernel.exception.SystemException {
198         return getPersistence().findAll(start, end);
199     }
200 
201     public static java.util.List<com.liferay.portlet.expando.model.ExpandoTable> findAll(
202         int start, int end,
203         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
204         throws com.liferay.portal.kernel.exception.SystemException {
205         return getPersistence().findAll(start, end, orderByComparator);
206     }
207 
208     public static void removeByC_C(long companyId, long classNameId)
209         throws com.liferay.portal.kernel.exception.SystemException {
210         getPersistence().removeByC_C(companyId, classNameId);
211     }
212 
213     public static void removeByC_C_N(long companyId, long classNameId,
214         java.lang.String name)
215         throws com.liferay.portal.kernel.exception.SystemException,
216             com.liferay.portlet.expando.NoSuchTableException {
217         getPersistence().removeByC_C_N(companyId, classNameId, name);
218     }
219 
220     public static void removeAll()
221         throws com.liferay.portal.kernel.exception.SystemException {
222         getPersistence().removeAll();
223     }
224 
225     public static int countByC_C(long companyId, long classNameId)
226         throws com.liferay.portal.kernel.exception.SystemException {
227         return getPersistence().countByC_C(companyId, classNameId);
228     }
229 
230     public static int countByC_C_N(long companyId, long classNameId,
231         java.lang.String name)
232         throws com.liferay.portal.kernel.exception.SystemException {
233         return getPersistence().countByC_C_N(companyId, classNameId, name);
234     }
235 
236     public static int countAll()
237         throws com.liferay.portal.kernel.exception.SystemException {
238         return getPersistence().countAll();
239     }
240 
241     public static ExpandoTablePersistence getPersistence() {
242         if (_persistence == null) {
243             _persistence = (ExpandoTablePersistence)PortalBeanLocatorUtil.locate(ExpandoTablePersistence.class.getName());
244         }
245 
246         return _persistence;
247     }
248 
249     public void setPersistence(ExpandoTablePersistence persistence) {
250         _persistence = persistence;
251     }
252 
253     private static ExpandoTablePersistence _persistence;
254 }