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  
21  import com.liferay.portlet.expando.model.ExpandoColumn;
22  
23  import java.util.List;
24  
25  /**
26   * <a href="ExpandoColumnUtil.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       ExpandoColumnPersistence
35   * @see       ExpandoColumnPersistenceImpl
36   * @generated
37   */
38  public class ExpandoColumnUtil {
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 ExpandoColumn remove(ExpandoColumn expandoColumn)
66          throws SystemException {
67          return getPersistence().remove(expandoColumn);
68      }
69  
70      /**
71       * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
72       */
73      public static ExpandoColumn update(ExpandoColumn expandoColumn,
74          boolean merge) throws SystemException {
75          return getPersistence().update(expandoColumn, merge);
76      }
77  
78      public static void cacheResult(
79          com.liferay.portlet.expando.model.ExpandoColumn expandoColumn) {
80          getPersistence().cacheResult(expandoColumn);
81      }
82  
83      public static void cacheResult(
84          java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> expandoColumns) {
85          getPersistence().cacheResult(expandoColumns);
86      }
87  
88      public static com.liferay.portlet.expando.model.ExpandoColumn create(
89          long columnId) {
90          return getPersistence().create(columnId);
91      }
92  
93      public static com.liferay.portlet.expando.model.ExpandoColumn remove(
94          long columnId)
95          throws com.liferay.portal.SystemException,
96              com.liferay.portlet.expando.NoSuchColumnException {
97          return getPersistence().remove(columnId);
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.expando.model.ExpandoColumn update(
104         com.liferay.portlet.expando.model.ExpandoColumn expandoColumn)
105         throws com.liferay.portal.SystemException {
106         return getPersistence().update(expandoColumn);
107     }
108 
109     public static com.liferay.portlet.expando.model.ExpandoColumn updateImpl(
110         com.liferay.portlet.expando.model.ExpandoColumn expandoColumn,
111         boolean merge) throws com.liferay.portal.SystemException {
112         return getPersistence().updateImpl(expandoColumn, merge);
113     }
114 
115     public static com.liferay.portlet.expando.model.ExpandoColumn findByPrimaryKey(
116         long columnId)
117         throws com.liferay.portal.SystemException,
118             com.liferay.portlet.expando.NoSuchColumnException {
119         return getPersistence().findByPrimaryKey(columnId);
120     }
121 
122     public static com.liferay.portlet.expando.model.ExpandoColumn fetchByPrimaryKey(
123         long columnId) throws com.liferay.portal.SystemException {
124         return getPersistence().fetchByPrimaryKey(columnId);
125     }
126 
127     public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findByTableId(
128         long tableId) throws com.liferay.portal.SystemException {
129         return getPersistence().findByTableId(tableId);
130     }
131 
132     public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findByTableId(
133         long tableId, int start, int end)
134         throws com.liferay.portal.SystemException {
135         return getPersistence().findByTableId(tableId, start, end);
136     }
137 
138     public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findByTableId(
139         long tableId, int start, int end,
140         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
141         throws com.liferay.portal.SystemException {
142         return getPersistence()
143                    .findByTableId(tableId, start, end, orderByComparator);
144     }
145 
146     public static com.liferay.portlet.expando.model.ExpandoColumn findByTableId_First(
147         long tableId,
148         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
149         throws com.liferay.portal.SystemException,
150             com.liferay.portlet.expando.NoSuchColumnException {
151         return getPersistence().findByTableId_First(tableId, orderByComparator);
152     }
153 
154     public static com.liferay.portlet.expando.model.ExpandoColumn findByTableId_Last(
155         long tableId,
156         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
157         throws com.liferay.portal.SystemException,
158             com.liferay.portlet.expando.NoSuchColumnException {
159         return getPersistence().findByTableId_Last(tableId, orderByComparator);
160     }
161 
162     public static com.liferay.portlet.expando.model.ExpandoColumn[] findByTableId_PrevAndNext(
163         long columnId, 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()
168                    .findByTableId_PrevAndNext(columnId, tableId,
169             orderByComparator);
170     }
171 
172     public static com.liferay.portlet.expando.model.ExpandoColumn findByT_N(
173         long tableId, java.lang.String name)
174         throws com.liferay.portal.SystemException,
175             com.liferay.portlet.expando.NoSuchColumnException {
176         return getPersistence().findByT_N(tableId, name);
177     }
178 
179     public static com.liferay.portlet.expando.model.ExpandoColumn fetchByT_N(
180         long tableId, java.lang.String name)
181         throws com.liferay.portal.SystemException {
182         return getPersistence().fetchByT_N(tableId, name);
183     }
184 
185     public static com.liferay.portlet.expando.model.ExpandoColumn fetchByT_N(
186         long tableId, java.lang.String name, boolean retrieveFromCache)
187         throws com.liferay.portal.SystemException {
188         return getPersistence().fetchByT_N(tableId, name, retrieveFromCache);
189     }
190 
191     public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findAll()
192         throws com.liferay.portal.SystemException {
193         return getPersistence().findAll();
194     }
195 
196     public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findAll(
197         int start, int end) throws com.liferay.portal.SystemException {
198         return getPersistence().findAll(start, end);
199     }
200 
201     public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> findAll(
202         int start, int end,
203         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
204         throws com.liferay.portal.SystemException {
205         return getPersistence().findAll(start, end, orderByComparator);
206     }
207 
208     public static void removeByTableId(long tableId)
209         throws com.liferay.portal.SystemException {
210         getPersistence().removeByTableId(tableId);
211     }
212 
213     public static void removeByT_N(long tableId, java.lang.String name)
214         throws com.liferay.portal.SystemException,
215             com.liferay.portlet.expando.NoSuchColumnException {
216         getPersistence().removeByT_N(tableId, name);
217     }
218 
219     public static void removeAll() throws com.liferay.portal.SystemException {
220         getPersistence().removeAll();
221     }
222 
223     public static int countByTableId(long tableId)
224         throws com.liferay.portal.SystemException {
225         return getPersistence().countByTableId(tableId);
226     }
227 
228     public static int countByT_N(long tableId, java.lang.String name)
229         throws com.liferay.portal.SystemException {
230         return getPersistence().countByT_N(tableId, name);
231     }
232 
233     public static int countAll() throws com.liferay.portal.SystemException {
234         return getPersistence().countAll();
235     }
236 
237     public static ExpandoColumnPersistence getPersistence() {
238         if (_persistence == null) {
239             _persistence = (ExpandoColumnPersistence)PortalBeanLocatorUtil.locate(ExpandoColumnPersistence.class.getName());
240         }
241 
242         return _persistence;
243     }
244 
245     public void setPersistence(ExpandoColumnPersistence persistence) {
246         _persistence = persistence;
247     }
248 
249     private static ExpandoColumnPersistence _persistence;
250 }