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