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#clearCache(ExpandoTable)
48       */
49      public static void clearCache(ExpandoTable expandoTable) {
50          getPersistence().clearCache(expandoTable);
51      }
52  
53      /**
54       * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
55       */
56      public long countWithDynamicQuery(DynamicQuery dynamicQuery)
57          throws SystemException {
58          return getPersistence().countWithDynamicQuery(dynamicQuery);
59      }
60  
61      /**
62       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
63       */
64      public static List<ExpandoTable> findWithDynamicQuery(
65          DynamicQuery dynamicQuery) throws SystemException {
66          return getPersistence().findWithDynamicQuery(dynamicQuery);
67      }
68  
69      /**
70       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
71       */
72      public static List<ExpandoTable> findWithDynamicQuery(
73          DynamicQuery dynamicQuery, int start, int end)
74          throws SystemException {
75          return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
76      }
77  
78      /**
79       * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
80       */
81      public static ExpandoTable remove(ExpandoTable expandoTable)
82          throws SystemException {
83          return getPersistence().remove(expandoTable);
84      }
85  
86      /**
87       * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
88       */
89      public static ExpandoTable update(ExpandoTable expandoTable, boolean merge)
90          throws SystemException {
91          return getPersistence().update(expandoTable, merge);
92      }
93  
94      public static void cacheResult(
95          com.liferay.portlet.expando.model.ExpandoTable expandoTable) {
96          getPersistence().cacheResult(expandoTable);
97      }
98  
99      public static void cacheResult(
100         java.util.List<com.liferay.portlet.expando.model.ExpandoTable> expandoTables) {
101         getPersistence().cacheResult(expandoTables);
102     }
103 
104     public static com.liferay.portlet.expando.model.ExpandoTable create(
105         long tableId) {
106         return getPersistence().create(tableId);
107     }
108 
109     public static com.liferay.portlet.expando.model.ExpandoTable remove(
110         long tableId)
111         throws com.liferay.portal.kernel.exception.SystemException,
112             com.liferay.portlet.expando.NoSuchTableException {
113         return getPersistence().remove(tableId);
114     }
115 
116     public static com.liferay.portlet.expando.model.ExpandoTable updateImpl(
117         com.liferay.portlet.expando.model.ExpandoTable expandoTable,
118         boolean merge)
119         throws com.liferay.portal.kernel.exception.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.kernel.exception.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)
132         throws com.liferay.portal.kernel.exception.SystemException {
133         return getPersistence().fetchByPrimaryKey(tableId);
134     }
135 
136     public static java.util.List<com.liferay.portlet.expando.model.ExpandoTable> findByC_C(
137         long companyId, long classNameId)
138         throws com.liferay.portal.kernel.exception.SystemException {
139         return getPersistence().findByC_C(companyId, classNameId);
140     }
141 
142     public static java.util.List<com.liferay.portlet.expando.model.ExpandoTable> findByC_C(
143         long companyId, long classNameId, int start, int end)
144         throws com.liferay.portal.kernel.exception.SystemException {
145         return getPersistence().findByC_C(companyId, classNameId, start, end);
146     }
147 
148     public static java.util.List<com.liferay.portlet.expando.model.ExpandoTable> findByC_C(
149         long companyId, long classNameId, int start, int end,
150         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
151         throws com.liferay.portal.kernel.exception.SystemException {
152         return getPersistence()
153                    .findByC_C(companyId, classNameId, start, end,
154             orderByComparator);
155     }
156 
157     public static com.liferay.portlet.expando.model.ExpandoTable findByC_C_First(
158         long companyId, long classNameId,
159         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
160         throws com.liferay.portal.kernel.exception.SystemException,
161             com.liferay.portlet.expando.NoSuchTableException {
162         return getPersistence()
163                    .findByC_C_First(companyId, classNameId, orderByComparator);
164     }
165 
166     public static com.liferay.portlet.expando.model.ExpandoTable findByC_C_Last(
167         long companyId, long classNameId,
168         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
169         throws com.liferay.portal.kernel.exception.SystemException,
170             com.liferay.portlet.expando.NoSuchTableException {
171         return getPersistence()
172                    .findByC_C_Last(companyId, classNameId, orderByComparator);
173     }
174 
175     public static com.liferay.portlet.expando.model.ExpandoTable[] findByC_C_PrevAndNext(
176         long tableId, long companyId, long classNameId,
177         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
178         throws com.liferay.portal.kernel.exception.SystemException,
179             com.liferay.portlet.expando.NoSuchTableException {
180         return getPersistence()
181                    .findByC_C_PrevAndNext(tableId, companyId, classNameId,
182             orderByComparator);
183     }
184 
185     public static com.liferay.portlet.expando.model.ExpandoTable findByC_C_N(
186         long companyId, long classNameId, java.lang.String name)
187         throws com.liferay.portal.kernel.exception.SystemException,
188             com.liferay.portlet.expando.NoSuchTableException {
189         return getPersistence().findByC_C_N(companyId, classNameId, name);
190     }
191 
192     public static com.liferay.portlet.expando.model.ExpandoTable fetchByC_C_N(
193         long companyId, long classNameId, java.lang.String name)
194         throws com.liferay.portal.kernel.exception.SystemException {
195         return getPersistence().fetchByC_C_N(companyId, classNameId, name);
196     }
197 
198     public static com.liferay.portlet.expando.model.ExpandoTable fetchByC_C_N(
199         long companyId, long classNameId, java.lang.String name,
200         boolean retrieveFromCache)
201         throws com.liferay.portal.kernel.exception.SystemException {
202         return getPersistence()
203                    .fetchByC_C_N(companyId, classNameId, name, retrieveFromCache);
204     }
205 
206     public static java.util.List<com.liferay.portlet.expando.model.ExpandoTable> findAll()
207         throws com.liferay.portal.kernel.exception.SystemException {
208         return getPersistence().findAll();
209     }
210 
211     public static java.util.List<com.liferay.portlet.expando.model.ExpandoTable> findAll(
212         int start, int end)
213         throws com.liferay.portal.kernel.exception.SystemException {
214         return getPersistence().findAll(start, end);
215     }
216 
217     public static java.util.List<com.liferay.portlet.expando.model.ExpandoTable> findAll(
218         int start, int end,
219         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
220         throws com.liferay.portal.kernel.exception.SystemException {
221         return getPersistence().findAll(start, end, orderByComparator);
222     }
223 
224     public static void removeByC_C(long companyId, long classNameId)
225         throws com.liferay.portal.kernel.exception.SystemException {
226         getPersistence().removeByC_C(companyId, classNameId);
227     }
228 
229     public static void removeByC_C_N(long companyId, long classNameId,
230         java.lang.String name)
231         throws com.liferay.portal.kernel.exception.SystemException,
232             com.liferay.portlet.expando.NoSuchTableException {
233         getPersistence().removeByC_C_N(companyId, classNameId, name);
234     }
235 
236     public static void removeAll()
237         throws com.liferay.portal.kernel.exception.SystemException {
238         getPersistence().removeAll();
239     }
240 
241     public static int countByC_C(long companyId, long classNameId)
242         throws com.liferay.portal.kernel.exception.SystemException {
243         return getPersistence().countByC_C(companyId, classNameId);
244     }
245 
246     public static int countByC_C_N(long companyId, long classNameId,
247         java.lang.String name)
248         throws com.liferay.portal.kernel.exception.SystemException {
249         return getPersistence().countByC_C_N(companyId, classNameId, name);
250     }
251 
252     public static int countAll()
253         throws com.liferay.portal.kernel.exception.SystemException {
254         return getPersistence().countAll();
255     }
256 
257     public static ExpandoTablePersistence getPersistence() {
258         if (_persistence == null) {
259             _persistence = (ExpandoTablePersistence)PortalBeanLocatorUtil.locate(ExpandoTablePersistence.class.getName());
260         }
261 
262         return _persistence;
263     }
264 
265     public void setPersistence(ExpandoTablePersistence persistence) {
266         _persistence = persistence;
267     }
268 
269     private static ExpandoTablePersistence _persistence;
270 }