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.expando.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  import com.liferay.portal.kernel.util.ReferenceRegistry;
21  
22  import com.liferay.portlet.expando.model.ExpandoColumn;
23  
24  import java.util.List;
25  
26  /**
27   * <a href="ExpandoColumnUtil.java.html"><b><i>View Source</i></b></a>
28   *
29   * <p>
30   * ServiceBuilder generated this class. Modifications in this class will be
31   * overwritten the next time is generated.
32   * </p>
33   *
34   * @author    Brian Wing Shun Chan
35   * @see       ExpandoColumnPersistence
36   * @see       ExpandoColumnPersistenceImpl
37   * @generated
38   */
39  public class ExpandoColumnUtil {
40      /**
41       * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
42       */
43      public static void clearCache() {
44          getPersistence().clearCache();
45      }
46  
47      /**
48       * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(ExpandoColumn)
49       */
50      public static void clearCache(ExpandoColumn expandoColumn) {
51          getPersistence().clearCache(expandoColumn);
52      }
53  
54      /**
55       * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
56       */
57      public int countWithDynamicQuery(DynamicQuery dynamicQuery)
58          throws SystemException {
59          return getPersistence().countWithDynamicQuery(dynamicQuery);
60      }
61  
62      /**
63       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
64       */
65      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
66          throws SystemException {
67          return getPersistence().findWithDynamicQuery(dynamicQuery);
68      }
69  
70      /**
71       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
72       */
73      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
74          int start, int end) 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 ExpandoColumn remove(ExpandoColumn expandoColumn)
82          throws SystemException {
83          return getPersistence().remove(expandoColumn);
84      }
85  
86      /**
87       * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
88       */
89      public static ExpandoColumn update(ExpandoColumn expandoColumn,
90          boolean merge) throws SystemException {
91          return getPersistence().update(expandoColumn, merge);
92      }
93  
94      public static void cacheResult(
95          com.liferay.portlet.expando.model.ExpandoColumn expandoColumn) {
96          getPersistence().cacheResult(expandoColumn);
97      }
98  
99      public static void cacheResult(
100         java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> expandoColumns) {
101         getPersistence().cacheResult(expandoColumns);
102     }
103 
104     public static com.liferay.portlet.expando.model.ExpandoColumn create(
105         long columnId) {
106         return getPersistence().create(columnId);
107     }
108 
109     public static com.liferay.portlet.expando.model.ExpandoColumn remove(
110         long columnId)
111         throws com.liferay.portal.SystemException,
112             com.liferay.portlet.expando.NoSuchColumnException {
113         return getPersistence().remove(columnId);
114     }
115 
116     /**
117      * @deprecated Use {@link com.liferay.portal.service.persistence.BasePersistence.#update(com.liferay.portal.model.BaseModel, boolean)}.
118      */
119     public static com.liferay.portlet.expando.model.ExpandoColumn update(
120         com.liferay.portlet.expando.model.ExpandoColumn expandoColumn)
121         throws com.liferay.portal.SystemException {
122         return getPersistence().update(expandoColumn);
123     }
124 
125     public static com.liferay.portlet.expando.model.ExpandoColumn updateImpl(
126         com.liferay.portlet.expando.model.ExpandoColumn expandoColumn,
127         boolean merge) throws com.liferay.portal.SystemException {
128         return getPersistence().updateImpl(expandoColumn, merge);
129     }
130 
131     public static com.liferay.portlet.expando.model.ExpandoColumn findByPrimaryKey(
132         long columnId)
133         throws com.liferay.portal.SystemException,
134             com.liferay.portlet.expando.NoSuchColumnException {
135         return getPersistence().findByPrimaryKey(columnId);
136     }
137 
138     public static com.liferay.portlet.expando.model.ExpandoColumn fetchByPrimaryKey(
139         long columnId) throws com.liferay.portal.SystemException {
140         return getPersistence().fetchByPrimaryKey(columnId);
141     }
142 
143     public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findByTableId(
144         long tableId) throws com.liferay.portal.SystemException {
145         return getPersistence().findByTableId(tableId);
146     }
147 
148     public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findByTableId(
149         long tableId, int start, int end)
150         throws com.liferay.portal.SystemException {
151         return getPersistence().findByTableId(tableId, start, end);
152     }
153 
154     public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findByTableId(
155         long tableId, int start, int end,
156         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
157         throws com.liferay.portal.SystemException {
158         return getPersistence()
159                    .findByTableId(tableId, start, end, orderByComparator);
160     }
161 
162     public static com.liferay.portlet.expando.model.ExpandoColumn findByTableId_First(
163         long tableId,
164         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
165         throws com.liferay.portal.SystemException,
166             com.liferay.portlet.expando.NoSuchColumnException {
167         return getPersistence().findByTableId_First(tableId, orderByComparator);
168     }
169 
170     public static com.liferay.portlet.expando.model.ExpandoColumn findByTableId_Last(
171         long tableId,
172         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
173         throws com.liferay.portal.SystemException,
174             com.liferay.portlet.expando.NoSuchColumnException {
175         return getPersistence().findByTableId_Last(tableId, orderByComparator);
176     }
177 
178     public static com.liferay.portlet.expando.model.ExpandoColumn[] findByTableId_PrevAndNext(
179         long columnId, long tableId,
180         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
181         throws com.liferay.portal.SystemException,
182             com.liferay.portlet.expando.NoSuchColumnException {
183         return getPersistence()
184                    .findByTableId_PrevAndNext(columnId, tableId,
185             orderByComparator);
186     }
187 
188     public static com.liferay.portlet.expando.model.ExpandoColumn findByT_N(
189         long tableId, java.lang.String name)
190         throws com.liferay.portal.SystemException,
191             com.liferay.portlet.expando.NoSuchColumnException {
192         return getPersistence().findByT_N(tableId, name);
193     }
194 
195     public static com.liferay.portlet.expando.model.ExpandoColumn fetchByT_N(
196         long tableId, java.lang.String name)
197         throws com.liferay.portal.SystemException {
198         return getPersistence().fetchByT_N(tableId, name);
199     }
200 
201     public static com.liferay.portlet.expando.model.ExpandoColumn fetchByT_N(
202         long tableId, java.lang.String name, boolean retrieveFromCache)
203         throws com.liferay.portal.SystemException {
204         return getPersistence().fetchByT_N(tableId, name, retrieveFromCache);
205     }
206 
207     public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findAll()
208         throws com.liferay.portal.SystemException {
209         return getPersistence().findAll();
210     }
211 
212     public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findAll(
213         int start, int end) throws com.liferay.portal.SystemException {
214         return getPersistence().findAll(start, end);
215     }
216 
217     public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findAll(
218         int start, int end,
219         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
220         throws com.liferay.portal.SystemException {
221         return getPersistence().findAll(start, end, orderByComparator);
222     }
223 
224     public static void removeByTableId(long tableId)
225         throws com.liferay.portal.SystemException {
226         getPersistence().removeByTableId(tableId);
227     }
228 
229     public static void removeByT_N(long tableId, java.lang.String name)
230         throws com.liferay.portal.SystemException,
231             com.liferay.portlet.expando.NoSuchColumnException {
232         getPersistence().removeByT_N(tableId, name);
233     }
234 
235     public static void removeAll() throws com.liferay.portal.SystemException {
236         getPersistence().removeAll();
237     }
238 
239     public static int countByTableId(long tableId)
240         throws com.liferay.portal.SystemException {
241         return getPersistence().countByTableId(tableId);
242     }
243 
244     public static int countByT_N(long tableId, java.lang.String name)
245         throws com.liferay.portal.SystemException {
246         return getPersistence().countByT_N(tableId, name);
247     }
248 
249     public static int countAll() throws com.liferay.portal.SystemException {
250         return getPersistence().countAll();
251     }
252 
253     public static ExpandoColumnPersistence getPersistence() {
254         if (_persistence == null) {
255             _persistence = (ExpandoColumnPersistence)PortalBeanLocatorUtil.locate(ExpandoColumnPersistence.class.getName());
256 
257             ReferenceRegistry.registerReference(ExpandoColumnUtil.class,
258                 "_persistence");
259         }
260 
261         return _persistence;
262     }
263 
264     public void setPersistence(ExpandoColumnPersistence persistence) {
265         _persistence = persistence;
266 
267         ReferenceRegistry.registerReference(ExpandoColumnUtil.class,
268             "_persistence");
269     }
270 
271     private static ExpandoColumnPersistence _persistence;
272 }