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