001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.expando.service;
016    
017    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018    
019    /**
020     * <p>
021     * This class provides static methods for the
022     * {@link ExpandoColumnLocalService} bean. The static methods of
023     * this class calls the same methods of the bean instance. It's convenient to be
024     * able to just write one line to call a method on a bean instead of writing a
025     * lookup call and a method call.
026     * </p>
027     *
028     * @author    Brian Wing Shun Chan
029     * @see       ExpandoColumnLocalService
030     * @generated
031     */
032    public class ExpandoColumnLocalServiceUtil {
033            public static com.liferay.portlet.expando.model.ExpandoColumn addExpandoColumn(
034                    com.liferay.portlet.expando.model.ExpandoColumn expandoColumn)
035                    throws com.liferay.portal.kernel.exception.SystemException {
036                    return getService().addExpandoColumn(expandoColumn);
037            }
038    
039            public static com.liferay.portlet.expando.model.ExpandoColumn createExpandoColumn(
040                    long columnId) {
041                    return getService().createExpandoColumn(columnId);
042            }
043    
044            public static void deleteExpandoColumn(long columnId)
045                    throws com.liferay.portal.kernel.exception.PortalException,
046                            com.liferay.portal.kernel.exception.SystemException {
047                    getService().deleteExpandoColumn(columnId);
048            }
049    
050            public static void deleteExpandoColumn(
051                    com.liferay.portlet.expando.model.ExpandoColumn expandoColumn)
052                    throws com.liferay.portal.kernel.exception.SystemException {
053                    getService().deleteExpandoColumn(expandoColumn);
054            }
055    
056            @SuppressWarnings("unchecked")
057            public static java.util.List dynamicQuery(
058                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
059                    throws com.liferay.portal.kernel.exception.SystemException {
060                    return getService().dynamicQuery(dynamicQuery);
061            }
062    
063            @SuppressWarnings("unchecked")
064            public static java.util.List dynamicQuery(
065                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
066                    int end) throws com.liferay.portal.kernel.exception.SystemException {
067                    return getService().dynamicQuery(dynamicQuery, start, end);
068            }
069    
070            @SuppressWarnings("unchecked")
071            public static java.util.List dynamicQuery(
072                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
073                    int end,
074                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
075                    throws com.liferay.portal.kernel.exception.SystemException {
076                    return getService()
077                                       .dynamicQuery(dynamicQuery, start, end, orderByComparator);
078            }
079    
080            public static long dynamicQueryCount(
081                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
082                    throws com.liferay.portal.kernel.exception.SystemException {
083                    return getService().dynamicQueryCount(dynamicQuery);
084            }
085    
086            public static com.liferay.portlet.expando.model.ExpandoColumn getExpandoColumn(
087                    long columnId)
088                    throws com.liferay.portal.kernel.exception.PortalException,
089                            com.liferay.portal.kernel.exception.SystemException {
090                    return getService().getExpandoColumn(columnId);
091            }
092    
093            public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getExpandoColumns(
094                    int start, int end)
095                    throws com.liferay.portal.kernel.exception.SystemException {
096                    return getService().getExpandoColumns(start, end);
097            }
098    
099            public static int getExpandoColumnsCount()
100                    throws com.liferay.portal.kernel.exception.SystemException {
101                    return getService().getExpandoColumnsCount();
102            }
103    
104            public static com.liferay.portlet.expando.model.ExpandoColumn updateExpandoColumn(
105                    com.liferay.portlet.expando.model.ExpandoColumn expandoColumn)
106                    throws com.liferay.portal.kernel.exception.SystemException {
107                    return getService().updateExpandoColumn(expandoColumn);
108            }
109    
110            public static com.liferay.portlet.expando.model.ExpandoColumn updateExpandoColumn(
111                    com.liferay.portlet.expando.model.ExpandoColumn expandoColumn,
112                    boolean merge)
113                    throws com.liferay.portal.kernel.exception.SystemException {
114                    return getService().updateExpandoColumn(expandoColumn, merge);
115            }
116    
117            public static com.liferay.portlet.expando.model.ExpandoColumn addColumn(
118                    long tableId, java.lang.String name, int type)
119                    throws com.liferay.portal.kernel.exception.PortalException,
120                            com.liferay.portal.kernel.exception.SystemException {
121                    return getService().addColumn(tableId, name, type);
122            }
123    
124            public static com.liferay.portlet.expando.model.ExpandoColumn addColumn(
125                    long tableId, java.lang.String name, int type,
126                    java.lang.Object defaultData)
127                    throws com.liferay.portal.kernel.exception.PortalException,
128                            com.liferay.portal.kernel.exception.SystemException {
129                    return getService().addColumn(tableId, name, type, defaultData);
130            }
131    
132            public static void deleteColumn(
133                    com.liferay.portlet.expando.model.ExpandoColumn column)
134                    throws com.liferay.portal.kernel.exception.SystemException {
135                    getService().deleteColumn(column);
136            }
137    
138            public static void deleteColumn(long columnId)
139                    throws com.liferay.portal.kernel.exception.PortalException,
140                            com.liferay.portal.kernel.exception.SystemException {
141                    getService().deleteColumn(columnId);
142            }
143    
144            public static void deleteColumn(long companyId, long classNameId,
145                    java.lang.String tableName, java.lang.String name)
146                    throws com.liferay.portal.kernel.exception.PortalException,
147                            com.liferay.portal.kernel.exception.SystemException {
148                    getService().deleteColumn(companyId, classNameId, tableName, name);
149            }
150    
151            public static void deleteColumn(long tableId, java.lang.String name)
152                    throws com.liferay.portal.kernel.exception.PortalException,
153                            com.liferay.portal.kernel.exception.SystemException {
154                    getService().deleteColumn(tableId, name);
155            }
156    
157            public static void deleteColumn(long companyId, java.lang.String className,
158                    java.lang.String tableName, java.lang.String name)
159                    throws com.liferay.portal.kernel.exception.PortalException,
160                            com.liferay.portal.kernel.exception.SystemException {
161                    getService().deleteColumn(companyId, className, tableName, name);
162            }
163    
164            public static void deleteColumns(long tableId)
165                    throws com.liferay.portal.kernel.exception.SystemException {
166                    getService().deleteColumns(tableId);
167            }
168    
169            public static void deleteColumns(long companyId, long classNameId,
170                    java.lang.String tableName)
171                    throws com.liferay.portal.kernel.exception.PortalException,
172                            com.liferay.portal.kernel.exception.SystemException {
173                    getService().deleteColumns(companyId, classNameId, tableName);
174            }
175    
176            public static void deleteColumns(long companyId,
177                    java.lang.String className, java.lang.String tableName)
178                    throws com.liferay.portal.kernel.exception.PortalException,
179                            com.liferay.portal.kernel.exception.SystemException {
180                    getService().deleteColumns(companyId, className, tableName);
181            }
182    
183            public static com.liferay.portlet.expando.model.ExpandoColumn getColumn(
184                    long columnId)
185                    throws com.liferay.portal.kernel.exception.PortalException,
186                            com.liferay.portal.kernel.exception.SystemException {
187                    return getService().getColumn(columnId);
188            }
189    
190            public static com.liferay.portlet.expando.model.ExpandoColumn getColumn(
191                    long companyId, long classNameId, java.lang.String tableName,
192                    java.lang.String name)
193                    throws com.liferay.portal.kernel.exception.SystemException {
194                    return getService().getColumn(companyId, classNameId, tableName, name);
195            }
196    
197            public static com.liferay.portlet.expando.model.ExpandoColumn getColumn(
198                    long tableId, java.lang.String name)
199                    throws com.liferay.portal.kernel.exception.PortalException,
200                            com.liferay.portal.kernel.exception.SystemException {
201                    return getService().getColumn(tableId, name);
202            }
203    
204            public static com.liferay.portlet.expando.model.ExpandoColumn getColumn(
205                    long companyId, java.lang.String className, java.lang.String tableName,
206                    java.lang.String name)
207                    throws com.liferay.portal.kernel.exception.SystemException {
208                    return getService().getColumn(companyId, className, tableName, name);
209            }
210    
211            public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getColumns(
212                    long tableId)
213                    throws com.liferay.portal.kernel.exception.SystemException {
214                    return getService().getColumns(tableId);
215            }
216    
217            public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getColumns(
218                    long companyId, long classNameId, java.lang.String tableName)
219                    throws com.liferay.portal.kernel.exception.SystemException {
220                    return getService().getColumns(companyId, classNameId, tableName);
221            }
222    
223            public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getColumns(
224                    long companyId, java.lang.String className, java.lang.String tableName)
225                    throws com.liferay.portal.kernel.exception.SystemException {
226                    return getService().getColumns(companyId, className, tableName);
227            }
228    
229            public static int getColumnsCount(long tableId)
230                    throws com.liferay.portal.kernel.exception.SystemException {
231                    return getService().getColumnsCount(tableId);
232            }
233    
234            public static int getColumnsCount(long companyId, long classNameId,
235                    java.lang.String tableName)
236                    throws com.liferay.portal.kernel.exception.SystemException {
237                    return getService().getColumnsCount(companyId, classNameId, tableName);
238            }
239    
240            public static int getColumnsCount(long companyId,
241                    java.lang.String className, java.lang.String tableName)
242                    throws com.liferay.portal.kernel.exception.SystemException {
243                    return getService().getColumnsCount(companyId, className, tableName);
244            }
245    
246            public static com.liferay.portlet.expando.model.ExpandoColumn getDefaultTableColumn(
247                    long companyId, long classNameId, java.lang.String name)
248                    throws com.liferay.portal.kernel.exception.SystemException {
249                    return getService().getDefaultTableColumn(companyId, classNameId, name);
250            }
251    
252            public static com.liferay.portlet.expando.model.ExpandoColumn getDefaultTableColumn(
253                    long companyId, java.lang.String className, java.lang.String name)
254                    throws com.liferay.portal.kernel.exception.SystemException {
255                    return getService().getDefaultTableColumn(companyId, className, name);
256            }
257    
258            public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getDefaultTableColumns(
259                    long companyId, long classNameId)
260                    throws com.liferay.portal.kernel.exception.SystemException {
261                    return getService().getDefaultTableColumns(companyId, classNameId);
262            }
263    
264            public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getDefaultTableColumns(
265                    long companyId, java.lang.String className)
266                    throws com.liferay.portal.kernel.exception.SystemException {
267                    return getService().getDefaultTableColumns(companyId, className);
268            }
269    
270            public static int getDefaultTableColumnsCount(long companyId,
271                    long classNameId)
272                    throws com.liferay.portal.kernel.exception.SystemException {
273                    return getService().getDefaultTableColumnsCount(companyId, classNameId);
274            }
275    
276            public static int getDefaultTableColumnsCount(long companyId,
277                    java.lang.String className)
278                    throws com.liferay.portal.kernel.exception.SystemException {
279                    return getService().getDefaultTableColumnsCount(companyId, className);
280            }
281    
282            public static com.liferay.portlet.expando.model.ExpandoColumn updateColumn(
283                    long columnId, java.lang.String name, int type)
284                    throws com.liferay.portal.kernel.exception.PortalException,
285                            com.liferay.portal.kernel.exception.SystemException {
286                    return getService().updateColumn(columnId, name, type);
287            }
288    
289            public static com.liferay.portlet.expando.model.ExpandoColumn updateColumn(
290                    long columnId, java.lang.String name, int type,
291                    java.lang.Object defaultData)
292                    throws com.liferay.portal.kernel.exception.PortalException,
293                            com.liferay.portal.kernel.exception.SystemException {
294                    return getService().updateColumn(columnId, name, type, defaultData);
295            }
296    
297            public static com.liferay.portlet.expando.model.ExpandoColumn updateTypeSettings(
298                    long columnId, java.lang.String typeSettings)
299                    throws com.liferay.portal.kernel.exception.PortalException,
300                            com.liferay.portal.kernel.exception.SystemException {
301                    return getService().updateTypeSettings(columnId, typeSettings);
302            }
303    
304            public static ExpandoColumnLocalService getService() {
305                    if (_service == null) {
306                            _service = (ExpandoColumnLocalService)PortalBeanLocatorUtil.locate(ExpandoColumnLocalService.class.getName());
307                    }
308    
309                    return _service;
310            }
311    
312            public void setService(ExpandoColumnLocalService service) {
313                    _service = service;
314            }
315    
316            private static ExpandoColumnLocalService _service;
317    }