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 java.util.List<Object> dynamicQuery(
76          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
77          int end,
78          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
79          throws com.liferay.portal.kernel.exception.SystemException {
80          return getService()
81                     .dynamicQuery(dynamicQuery, start, end, orderByComparator);
82      }
83  
84      public static int dynamicQueryCount(
85          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
86          throws com.liferay.portal.kernel.exception.SystemException {
87          return getService().dynamicQueryCount(dynamicQuery);
88      }
89  
90      public static com.liferay.portlet.expando.model.ExpandoColumn getExpandoColumn(
91          long columnId)
92          throws com.liferay.portal.kernel.exception.PortalException,
93              com.liferay.portal.kernel.exception.SystemException {
94          return getService().getExpandoColumn(columnId);
95      }
96  
97      public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getExpandoColumns(
98          int start, int end)
99          throws com.liferay.portal.kernel.exception.SystemException {
100         return getService().getExpandoColumns(start, end);
101     }
102 
103     public static int getExpandoColumnsCount()
104         throws com.liferay.portal.kernel.exception.SystemException {
105         return getService().getExpandoColumnsCount();
106     }
107 
108     public static com.liferay.portlet.expando.model.ExpandoColumn updateExpandoColumn(
109         com.liferay.portlet.expando.model.ExpandoColumn expandoColumn)
110         throws com.liferay.portal.kernel.exception.SystemException {
111         return getService().updateExpandoColumn(expandoColumn);
112     }
113 
114     public static com.liferay.portlet.expando.model.ExpandoColumn updateExpandoColumn(
115         com.liferay.portlet.expando.model.ExpandoColumn expandoColumn,
116         boolean merge)
117         throws com.liferay.portal.kernel.exception.SystemException {
118         return getService().updateExpandoColumn(expandoColumn, merge);
119     }
120 
121     public static com.liferay.portlet.expando.model.ExpandoColumn addColumn(
122         long tableId, java.lang.String name, int type)
123         throws com.liferay.portal.kernel.exception.PortalException,
124             com.liferay.portal.kernel.exception.SystemException {
125         return getService().addColumn(tableId, name, type);
126     }
127 
128     public static com.liferay.portlet.expando.model.ExpandoColumn addColumn(
129         long tableId, java.lang.String name, int type,
130         java.lang.Object defaultData)
131         throws com.liferay.portal.kernel.exception.PortalException,
132             com.liferay.portal.kernel.exception.SystemException {
133         return getService().addColumn(tableId, name, type, defaultData);
134     }
135 
136     public static void deleteColumn(
137         com.liferay.portlet.expando.model.ExpandoColumn column)
138         throws com.liferay.portal.kernel.exception.SystemException {
139         getService().deleteColumn(column);
140     }
141 
142     public static void deleteColumn(long columnId)
143         throws com.liferay.portal.kernel.exception.PortalException,
144             com.liferay.portal.kernel.exception.SystemException {
145         getService().deleteColumn(columnId);
146     }
147 
148     public static void deleteColumn(long companyId, long classNameId,
149         java.lang.String tableName, java.lang.String name)
150         throws com.liferay.portal.kernel.exception.PortalException,
151             com.liferay.portal.kernel.exception.SystemException {
152         getService().deleteColumn(companyId, classNameId, tableName, name);
153     }
154 
155     public static void deleteColumn(long tableId, java.lang.String name)
156         throws com.liferay.portal.kernel.exception.PortalException,
157             com.liferay.portal.kernel.exception.SystemException {
158         getService().deleteColumn(tableId, name);
159     }
160 
161     public static void deleteColumn(long companyId, java.lang.String className,
162         java.lang.String tableName, java.lang.String name)
163         throws com.liferay.portal.kernel.exception.PortalException,
164             com.liferay.portal.kernel.exception.SystemException {
165         getService().deleteColumn(companyId, className, tableName, name);
166     }
167 
168     public static void deleteColumns(long tableId)
169         throws com.liferay.portal.kernel.exception.SystemException {
170         getService().deleteColumns(tableId);
171     }
172 
173     public static void deleteColumns(long companyId, long classNameId,
174         java.lang.String tableName)
175         throws com.liferay.portal.kernel.exception.PortalException,
176             com.liferay.portal.kernel.exception.SystemException {
177         getService().deleteColumns(companyId, classNameId, tableName);
178     }
179 
180     public static void deleteColumns(long companyId,
181         java.lang.String className, java.lang.String tableName)
182         throws com.liferay.portal.kernel.exception.PortalException,
183             com.liferay.portal.kernel.exception.SystemException {
184         getService().deleteColumns(companyId, className, tableName);
185     }
186 
187     public static com.liferay.portlet.expando.model.ExpandoColumn getColumn(
188         long columnId)
189         throws com.liferay.portal.kernel.exception.PortalException,
190             com.liferay.portal.kernel.exception.SystemException {
191         return getService().getColumn(columnId);
192     }
193 
194     public static com.liferay.portlet.expando.model.ExpandoColumn getColumn(
195         long companyId, long classNameId, java.lang.String tableName,
196         java.lang.String name)
197         throws com.liferay.portal.kernel.exception.SystemException {
198         return getService().getColumn(companyId, classNameId, tableName, name);
199     }
200 
201     public static com.liferay.portlet.expando.model.ExpandoColumn getColumn(
202         long tableId, java.lang.String name)
203         throws com.liferay.portal.kernel.exception.PortalException,
204             com.liferay.portal.kernel.exception.SystemException {
205         return getService().getColumn(tableId, name);
206     }
207 
208     public static com.liferay.portlet.expando.model.ExpandoColumn getColumn(
209         long companyId, java.lang.String className, java.lang.String tableName,
210         java.lang.String name)
211         throws com.liferay.portal.kernel.exception.SystemException {
212         return getService().getColumn(companyId, className, tableName, name);
213     }
214 
215     public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getColumns(
216         long tableId)
217         throws com.liferay.portal.kernel.exception.SystemException {
218         return getService().getColumns(tableId);
219     }
220 
221     public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getColumns(
222         long companyId, long classNameId, java.lang.String tableName)
223         throws com.liferay.portal.kernel.exception.SystemException {
224         return getService().getColumns(companyId, classNameId, tableName);
225     }
226 
227     public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getColumns(
228         long companyId, java.lang.String className, java.lang.String tableName)
229         throws com.liferay.portal.kernel.exception.SystemException {
230         return getService().getColumns(companyId, className, tableName);
231     }
232 
233     public static int getColumnsCount(long tableId)
234         throws com.liferay.portal.kernel.exception.SystemException {
235         return getService().getColumnsCount(tableId);
236     }
237 
238     public static int getColumnsCount(long companyId, long classNameId,
239         java.lang.String tableName)
240         throws com.liferay.portal.kernel.exception.SystemException {
241         return getService().getColumnsCount(companyId, classNameId, tableName);
242     }
243 
244     public static int getColumnsCount(long companyId,
245         java.lang.String className, java.lang.String tableName)
246         throws com.liferay.portal.kernel.exception.SystemException {
247         return getService().getColumnsCount(companyId, className, tableName);
248     }
249 
250     public static com.liferay.portlet.expando.model.ExpandoColumn getDefaultTableColumn(
251         long companyId, long classNameId, java.lang.String name)
252         throws com.liferay.portal.kernel.exception.SystemException {
253         return getService().getDefaultTableColumn(companyId, classNameId, name);
254     }
255 
256     public static com.liferay.portlet.expando.model.ExpandoColumn getDefaultTableColumn(
257         long companyId, java.lang.String className, java.lang.String name)
258         throws com.liferay.portal.kernel.exception.SystemException {
259         return getService().getDefaultTableColumn(companyId, className, name);
260     }
261 
262     public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getDefaultTableColumns(
263         long companyId, long classNameId)
264         throws com.liferay.portal.kernel.exception.SystemException {
265         return getService().getDefaultTableColumns(companyId, classNameId);
266     }
267 
268     public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getDefaultTableColumns(
269         long companyId, java.lang.String className)
270         throws com.liferay.portal.kernel.exception.SystemException {
271         return getService().getDefaultTableColumns(companyId, className);
272     }
273 
274     public static int getDefaultTableColumnsCount(long companyId,
275         long classNameId)
276         throws com.liferay.portal.kernel.exception.SystemException {
277         return getService().getDefaultTableColumnsCount(companyId, classNameId);
278     }
279 
280     public static int getDefaultTableColumnsCount(long companyId,
281         java.lang.String className)
282         throws com.liferay.portal.kernel.exception.SystemException {
283         return getService().getDefaultTableColumnsCount(companyId, className);
284     }
285 
286     public static com.liferay.portlet.expando.model.ExpandoColumn updateColumn(
287         long columnId, java.lang.String name, int type)
288         throws com.liferay.portal.kernel.exception.PortalException,
289             com.liferay.portal.kernel.exception.SystemException {
290         return getService().updateColumn(columnId, name, type);
291     }
292 
293     public static com.liferay.portlet.expando.model.ExpandoColumn updateColumn(
294         long columnId, java.lang.String name, int type,
295         java.lang.Object defaultData)
296         throws com.liferay.portal.kernel.exception.PortalException,
297             com.liferay.portal.kernel.exception.SystemException {
298         return getService().updateColumn(columnId, name, type, defaultData);
299     }
300 
301     public static com.liferay.portlet.expando.model.ExpandoColumn updateTypeSettings(
302         long columnId, java.lang.String typeSettings)
303         throws com.liferay.portal.kernel.exception.PortalException,
304             com.liferay.portal.kernel.exception.SystemException {
305         return getService().updateTypeSettings(columnId, typeSettings);
306     }
307 
308     public static ExpandoColumnLocalService getService() {
309         if (_service == null) {
310             _service = (ExpandoColumnLocalService)PortalBeanLocatorUtil.locate(ExpandoColumnLocalService.class.getName());
311         }
312 
313         return _service;
314     }
315 
316     public void setService(ExpandoColumnLocalService service) {
317         _service = service;
318     }
319 
320     private static ExpandoColumnLocalService _service;
321 }