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;
16  
17  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18  import com.liferay.portal.kernel.util.MethodCache;
19  import com.liferay.portal.kernel.util.ReferenceRegistry;
20  
21  /**
22   * <a href="ExpandoColumnLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
23   *
24   * <p>
25   * ServiceBuilder generated this class. Modifications in this class will be
26   * overwritten the next time is generated.
27   * </p>
28   *
29   * <p>
30   * This class provides static methods for the
31   * {@link ExpandoColumnLocalService} bean. The static methods of
32   * this class calls the same methods of the bean instance. It's convenient to be
33   * able to just write one line to call a method on a bean instead of writing a
34   * lookup call and a method call.
35   * </p>
36   *
37   * @author    Brian Wing Shun Chan
38   * @see       ExpandoColumnLocalService
39   * @generated
40   */
41  public class ExpandoColumnLocalServiceUtil {
42      public static com.liferay.portlet.expando.model.ExpandoColumn addExpandoColumn(
43          com.liferay.portlet.expando.model.ExpandoColumn expandoColumn)
44          throws com.liferay.portal.SystemException {
45          return getService().addExpandoColumn(expandoColumn);
46      }
47  
48      public static com.liferay.portlet.expando.model.ExpandoColumn createExpandoColumn(
49          long columnId) {
50          return getService().createExpandoColumn(columnId);
51      }
52  
53      public static void deleteExpandoColumn(long columnId)
54          throws com.liferay.portal.PortalException,
55              com.liferay.portal.SystemException {
56          getService().deleteExpandoColumn(columnId);
57      }
58  
59      public static void deleteExpandoColumn(
60          com.liferay.portlet.expando.model.ExpandoColumn expandoColumn)
61          throws com.liferay.portal.SystemException {
62          getService().deleteExpandoColumn(expandoColumn);
63      }
64  
65      @SuppressWarnings("rawtypes")
66      public static java.util.List dynamicQuery(
67          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
68          throws com.liferay.portal.SystemException {
69          return getService().dynamicQuery(dynamicQuery);
70      }
71  
72      @SuppressWarnings("rawtypes")
73      public static java.util.List dynamicQuery(
74          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
75          int end) throws com.liferay.portal.SystemException {
76          return getService().dynamicQuery(dynamicQuery, start, end);
77      }
78  
79      @SuppressWarnings("rawtypes")
80      public static java.util.List dynamicQuery(
81          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
82          int end,
83          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
84          throws com.liferay.portal.SystemException {
85          return getService()
86                     .dynamicQuery(dynamicQuery, start, end, orderByComparator);
87      }
88  
89      public static int dynamicQueryCount(
90          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
91          throws com.liferay.portal.SystemException {
92          return getService().dynamicQueryCount(dynamicQuery);
93      }
94  
95      public static com.liferay.portlet.expando.model.ExpandoColumn getExpandoColumn(
96          long columnId)
97          throws com.liferay.portal.PortalException,
98              com.liferay.portal.SystemException {
99          return getService().getExpandoColumn(columnId);
100     }
101 
102     public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getExpandoColumns(
103         int start, int end) throws com.liferay.portal.SystemException {
104         return getService().getExpandoColumns(start, end);
105     }
106 
107     public static int getExpandoColumnsCount()
108         throws com.liferay.portal.SystemException {
109         return getService().getExpandoColumnsCount();
110     }
111 
112     public static com.liferay.portlet.expando.model.ExpandoColumn updateExpandoColumn(
113         com.liferay.portlet.expando.model.ExpandoColumn expandoColumn)
114         throws com.liferay.portal.SystemException {
115         return getService().updateExpandoColumn(expandoColumn);
116     }
117 
118     public static com.liferay.portlet.expando.model.ExpandoColumn updateExpandoColumn(
119         com.liferay.portlet.expando.model.ExpandoColumn expandoColumn,
120         boolean merge) throws com.liferay.portal.SystemException {
121         return getService().updateExpandoColumn(expandoColumn, merge);
122     }
123 
124     public static com.liferay.portlet.expando.model.ExpandoColumn addColumn(
125         long tableId, java.lang.String name, int type)
126         throws com.liferay.portal.PortalException,
127             com.liferay.portal.SystemException {
128         return getService().addColumn(tableId, name, type);
129     }
130 
131     public static com.liferay.portlet.expando.model.ExpandoColumn addColumn(
132         long tableId, java.lang.String name, int type,
133         java.lang.Object defaultData)
134         throws com.liferay.portal.PortalException,
135             com.liferay.portal.SystemException {
136         return getService().addColumn(tableId, name, type, defaultData);
137     }
138 
139     public static void deleteColumn(
140         com.liferay.portlet.expando.model.ExpandoColumn column)
141         throws com.liferay.portal.SystemException {
142         getService().deleteColumn(column);
143     }
144 
145     public static void deleteColumn(long columnId)
146         throws com.liferay.portal.PortalException,
147             com.liferay.portal.SystemException {
148         getService().deleteColumn(columnId);
149     }
150 
151     public static void deleteColumn(long tableId, java.lang.String name)
152         throws com.liferay.portal.PortalException,
153             com.liferay.portal.SystemException {
154         getService().deleteColumn(tableId, name);
155     }
156 
157     public static void deleteColumn(long classNameId,
158         java.lang.String tableName, java.lang.String name)
159         throws com.liferay.portal.PortalException,
160             com.liferay.portal.SystemException {
161         getService().deleteColumn(classNameId, tableName, name);
162     }
163 
164     public static void deleteColumn(java.lang.String className,
165         java.lang.String tableName, java.lang.String name)
166         throws com.liferay.portal.PortalException,
167             com.liferay.portal.SystemException {
168         getService().deleteColumn(className, tableName, name);
169     }
170 
171     public static void deleteColumns(long tableId)
172         throws com.liferay.portal.SystemException {
173         getService().deleteColumns(tableId);
174     }
175 
176     public static void deleteColumns(long classNameId,
177         java.lang.String tableName)
178         throws com.liferay.portal.PortalException,
179             com.liferay.portal.SystemException {
180         getService().deleteColumns(classNameId, tableName);
181     }
182 
183     public static void deleteColumns(java.lang.String className,
184         java.lang.String tableName)
185         throws com.liferay.portal.PortalException,
186             com.liferay.portal.SystemException {
187         getService().deleteColumns(className, tableName);
188     }
189 
190     public static com.liferay.portlet.expando.model.ExpandoColumn getColumn(
191         long columnId)
192         throws com.liferay.portal.PortalException,
193             com.liferay.portal.SystemException {
194         return getService().getColumn(columnId);
195     }
196 
197     public static com.liferay.portlet.expando.model.ExpandoColumn getColumn(
198         long tableId, java.lang.String name)
199         throws com.liferay.portal.PortalException,
200             com.liferay.portal.SystemException {
201         return getService().getColumn(tableId, name);
202     }
203 
204     public static com.liferay.portlet.expando.model.ExpandoColumn getColumn(
205         long classNameId, java.lang.String tableName, java.lang.String name)
206         throws com.liferay.portal.SystemException {
207         return getService().getColumn(classNameId, tableName, name);
208     }
209 
210     public static com.liferay.portlet.expando.model.ExpandoColumn getColumn(
211         java.lang.String className, java.lang.String tableName,
212         java.lang.String name) throws com.liferay.portal.SystemException {
213         return getService().getColumn(className, tableName, name);
214     }
215 
216     public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getColumns(
217         long tableId) throws com.liferay.portal.SystemException {
218         return getService().getColumns(tableId);
219     }
220 
221     public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getColumns(
222         long classNameId, java.lang.String tableName)
223         throws com.liferay.portal.SystemException {
224         return getService().getColumns(classNameId, tableName);
225     }
226 
227     public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getColumns(
228         java.lang.String className, java.lang.String tableName)
229         throws com.liferay.portal.SystemException {
230         return getService().getColumns(className, tableName);
231     }
232 
233     public static int getColumnsCount(long tableId)
234         throws com.liferay.portal.SystemException {
235         return getService().getColumnsCount(tableId);
236     }
237 
238     public static int getColumnsCount(long classNameId,
239         java.lang.String tableName) throws com.liferay.portal.SystemException {
240         return getService().getColumnsCount(classNameId, tableName);
241     }
242 
243     public static int getColumnsCount(java.lang.String className,
244         java.lang.String tableName) throws com.liferay.portal.SystemException {
245         return getService().getColumnsCount(className, tableName);
246     }
247 
248     public static com.liferay.portlet.expando.model.ExpandoColumn getDefaultTableColumn(
249         long classNameId, java.lang.String name)
250         throws com.liferay.portal.SystemException {
251         return getService().getDefaultTableColumn(classNameId, name);
252     }
253 
254     public static com.liferay.portlet.expando.model.ExpandoColumn getDefaultTableColumn(
255         java.lang.String className, java.lang.String name)
256         throws com.liferay.portal.SystemException {
257         return getService().getDefaultTableColumn(className, name);
258     }
259 
260     public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getDefaultTableColumns(
261         long classNameId) throws com.liferay.portal.SystemException {
262         return getService().getDefaultTableColumns(classNameId);
263     }
264 
265     public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getDefaultTableColumns(
266         java.lang.String className) throws com.liferay.portal.SystemException {
267         return getService().getDefaultTableColumns(className);
268     }
269 
270     public static int getDefaultTableColumnsCount(long classNameId)
271         throws com.liferay.portal.SystemException {
272         return getService().getDefaultTableColumnsCount(classNameId);
273     }
274 
275     public static int getDefaultTableColumnsCount(java.lang.String className)
276         throws com.liferay.portal.SystemException {
277         return getService().getDefaultTableColumnsCount(className);
278     }
279 
280     public static com.liferay.portlet.expando.model.ExpandoColumn updateColumn(
281         long columnId, java.lang.String name, int type)
282         throws com.liferay.portal.PortalException,
283             com.liferay.portal.SystemException {
284         return getService().updateColumn(columnId, name, type);
285     }
286 
287     public static com.liferay.portlet.expando.model.ExpandoColumn updateColumn(
288         long columnId, java.lang.String name, int type,
289         java.lang.Object defaultData)
290         throws com.liferay.portal.PortalException,
291             com.liferay.portal.SystemException {
292         return getService().updateColumn(columnId, name, type, defaultData);
293     }
294 
295     public static com.liferay.portlet.expando.model.ExpandoColumn updateTypeSettings(
296         long columnId, java.lang.String typeSettings)
297         throws com.liferay.portal.PortalException,
298             com.liferay.portal.SystemException {
299         return getService().updateTypeSettings(columnId, typeSettings);
300     }
301 
302     public static ExpandoColumnLocalService getService() {
303         if (_service == null) {
304             _service = (ExpandoColumnLocalService)PortalBeanLocatorUtil.locate(ExpandoColumnLocalService.class.getName());
305 
306             ReferenceRegistry.registerReference(ExpandoColumnLocalServiceUtil.class,
307                 "_service");
308             MethodCache.remove(ExpandoColumnLocalService.class);
309         }
310 
311         return _service;
312     }
313 
314     public void setService(ExpandoColumnLocalService service) {
315         MethodCache.remove(ExpandoColumnLocalService.class);
316 
317         _service = service;
318 
319         ReferenceRegistry.registerReference(ExpandoColumnLocalServiceUtil.class,
320             "_service");
321         MethodCache.remove(ExpandoColumnLocalService.class);
322     }
323 
324     private static ExpandoColumnLocalService _service;
325 }