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 ExpandoTableLocalService} 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       ExpandoTableLocalService
030     * @generated
031     */
032    public class ExpandoTableLocalServiceUtil {
033            public static com.liferay.portlet.expando.model.ExpandoTable addExpandoTable(
034                    com.liferay.portlet.expando.model.ExpandoTable expandoTable)
035                    throws com.liferay.portal.kernel.exception.SystemException {
036                    return getService().addExpandoTable(expandoTable);
037            }
038    
039            public static com.liferay.portlet.expando.model.ExpandoTable createExpandoTable(
040                    long tableId) {
041                    return getService().createExpandoTable(tableId);
042            }
043    
044            public static void deleteExpandoTable(long tableId)
045                    throws com.liferay.portal.kernel.exception.PortalException,
046                            com.liferay.portal.kernel.exception.SystemException {
047                    getService().deleteExpandoTable(tableId);
048            }
049    
050            public static void deleteExpandoTable(
051                    com.liferay.portlet.expando.model.ExpandoTable expandoTable)
052                    throws com.liferay.portal.kernel.exception.SystemException {
053                    getService().deleteExpandoTable(expandoTable);
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.ExpandoTable getExpandoTable(
087                    long tableId)
088                    throws com.liferay.portal.kernel.exception.PortalException,
089                            com.liferay.portal.kernel.exception.SystemException {
090                    return getService().getExpandoTable(tableId);
091            }
092    
093            public static java.util.List<com.liferay.portlet.expando.model.ExpandoTable> getExpandoTables(
094                    int start, int end)
095                    throws com.liferay.portal.kernel.exception.SystemException {
096                    return getService().getExpandoTables(start, end);
097            }
098    
099            public static int getExpandoTablesCount()
100                    throws com.liferay.portal.kernel.exception.SystemException {
101                    return getService().getExpandoTablesCount();
102            }
103    
104            public static com.liferay.portlet.expando.model.ExpandoTable updateExpandoTable(
105                    com.liferay.portlet.expando.model.ExpandoTable expandoTable)
106                    throws com.liferay.portal.kernel.exception.SystemException {
107                    return getService().updateExpandoTable(expandoTable);
108            }
109    
110            public static com.liferay.portlet.expando.model.ExpandoTable updateExpandoTable(
111                    com.liferay.portlet.expando.model.ExpandoTable expandoTable,
112                    boolean merge)
113                    throws com.liferay.portal.kernel.exception.SystemException {
114                    return getService().updateExpandoTable(expandoTable, merge);
115            }
116    
117            public static com.liferay.portlet.expando.model.ExpandoTable addDefaultTable(
118                    long companyId, long classNameId)
119                    throws com.liferay.portal.kernel.exception.PortalException,
120                            com.liferay.portal.kernel.exception.SystemException {
121                    return getService().addDefaultTable(companyId, classNameId);
122            }
123    
124            public static com.liferay.portlet.expando.model.ExpandoTable addDefaultTable(
125                    long companyId, java.lang.String className)
126                    throws com.liferay.portal.kernel.exception.PortalException,
127                            com.liferay.portal.kernel.exception.SystemException {
128                    return getService().addDefaultTable(companyId, className);
129            }
130    
131            public static com.liferay.portlet.expando.model.ExpandoTable addTable(
132                    long companyId, long classNameId, java.lang.String name)
133                    throws com.liferay.portal.kernel.exception.PortalException,
134                            com.liferay.portal.kernel.exception.SystemException {
135                    return getService().addTable(companyId, classNameId, name);
136            }
137    
138            /**
139            * @deprecated {@link #addTable(long, long, String)}
140            */
141            public static com.liferay.portlet.expando.model.ExpandoTable addTable(
142                    long classNameId, java.lang.String name)
143                    throws com.liferay.portal.kernel.exception.PortalException,
144                            com.liferay.portal.kernel.exception.SystemException {
145                    return getService().addTable(classNameId, name);
146            }
147    
148            public static com.liferay.portlet.expando.model.ExpandoTable addTable(
149                    long companyId, java.lang.String className, java.lang.String name)
150                    throws com.liferay.portal.kernel.exception.PortalException,
151                            com.liferay.portal.kernel.exception.SystemException {
152                    return getService().addTable(companyId, className, name);
153            }
154    
155            /**
156            * @deprecated {@link #addTable(long, String, String)}
157            */
158            public static com.liferay.portlet.expando.model.ExpandoTable addTable(
159                    java.lang.String className, java.lang.String name)
160                    throws com.liferay.portal.kernel.exception.PortalException,
161                            com.liferay.portal.kernel.exception.SystemException {
162                    return getService().addTable(className, name);
163            }
164    
165            public static void deleteTable(
166                    com.liferay.portlet.expando.model.ExpandoTable table)
167                    throws com.liferay.portal.kernel.exception.SystemException {
168                    getService().deleteTable(table);
169            }
170    
171            public static void deleteTable(long tableId)
172                    throws com.liferay.portal.kernel.exception.PortalException,
173                            com.liferay.portal.kernel.exception.SystemException {
174                    getService().deleteTable(tableId);
175            }
176    
177            public static void deleteTable(long companyId, long classNameId,
178                    java.lang.String name)
179                    throws com.liferay.portal.kernel.exception.PortalException,
180                            com.liferay.portal.kernel.exception.SystemException {
181                    getService().deleteTable(companyId, classNameId, name);
182            }
183    
184            public static void deleteTable(long companyId, java.lang.String className,
185                    java.lang.String name)
186                    throws com.liferay.portal.kernel.exception.PortalException,
187                            com.liferay.portal.kernel.exception.SystemException {
188                    getService().deleteTable(companyId, className, name);
189            }
190    
191            public static void deleteTables(long companyId, long classNameId)
192                    throws com.liferay.portal.kernel.exception.SystemException {
193                    getService().deleteTables(companyId, classNameId);
194            }
195    
196            public static void deleteTables(long companyId, java.lang.String className)
197                    throws com.liferay.portal.kernel.exception.SystemException {
198                    getService().deleteTables(companyId, className);
199            }
200    
201            public static com.liferay.portlet.expando.model.ExpandoTable getDefaultTable(
202                    long companyId, long classNameId)
203                    throws com.liferay.portal.kernel.exception.PortalException,
204                            com.liferay.portal.kernel.exception.SystemException {
205                    return getService().getDefaultTable(companyId, classNameId);
206            }
207    
208            public static com.liferay.portlet.expando.model.ExpandoTable getDefaultTable(
209                    long companyId, java.lang.String className)
210                    throws com.liferay.portal.kernel.exception.PortalException,
211                            com.liferay.portal.kernel.exception.SystemException {
212                    return getService().getDefaultTable(companyId, className);
213            }
214    
215            public static com.liferay.portlet.expando.model.ExpandoTable getTable(
216                    long tableId)
217                    throws com.liferay.portal.kernel.exception.PortalException,
218                            com.liferay.portal.kernel.exception.SystemException {
219                    return getService().getTable(tableId);
220            }
221    
222            public static com.liferay.portlet.expando.model.ExpandoTable getTable(
223                    long companyId, long classNameId, java.lang.String name)
224                    throws com.liferay.portal.kernel.exception.PortalException,
225                            com.liferay.portal.kernel.exception.SystemException {
226                    return getService().getTable(companyId, classNameId, name);
227            }
228    
229            /**
230            * @deprecated {@link #getTable(long, long, String)}
231            */
232            public static com.liferay.portlet.expando.model.ExpandoTable getTable(
233                    long classNameId, java.lang.String name)
234                    throws com.liferay.portal.kernel.exception.PortalException,
235                            com.liferay.portal.kernel.exception.SystemException {
236                    return getService().getTable(classNameId, name);
237            }
238    
239            public static com.liferay.portlet.expando.model.ExpandoTable getTable(
240                    long companyId, java.lang.String className, java.lang.String name)
241                    throws com.liferay.portal.kernel.exception.PortalException,
242                            com.liferay.portal.kernel.exception.SystemException {
243                    return getService().getTable(companyId, className, name);
244            }
245    
246            /**
247            * @deprecated {@link #getTable(long, String, String)}
248            */
249            public static com.liferay.portlet.expando.model.ExpandoTable getTable(
250                    java.lang.String className, java.lang.String name)
251                    throws com.liferay.portal.kernel.exception.PortalException,
252                            com.liferay.portal.kernel.exception.SystemException {
253                    return getService().getTable(className, name);
254            }
255    
256            public static java.util.List<com.liferay.portlet.expando.model.ExpandoTable> getTables(
257                    long companyId, long classNameId)
258                    throws com.liferay.portal.kernel.exception.SystemException {
259                    return getService().getTables(companyId, classNameId);
260            }
261    
262            public static java.util.List<com.liferay.portlet.expando.model.ExpandoTable> getTables(
263                    long companyId, java.lang.String className)
264                    throws com.liferay.portal.kernel.exception.SystemException {
265                    return getService().getTables(companyId, className);
266            }
267    
268            public static com.liferay.portlet.expando.model.ExpandoTable updateTable(
269                    long tableId, java.lang.String name)
270                    throws com.liferay.portal.kernel.exception.PortalException,
271                            com.liferay.portal.kernel.exception.SystemException {
272                    return getService().updateTable(tableId, name);
273            }
274    
275            public static ExpandoTableLocalService getService() {
276                    if (_service == null) {
277                            _service = (ExpandoTableLocalService)PortalBeanLocatorUtil.locate(ExpandoTableLocalService.class.getName());
278                    }
279    
280                    return _service;
281            }
282    
283            public void setService(ExpandoTableLocalService service) {
284                    _service = service;
285            }
286    
287            private static ExpandoTableLocalService _service;
288    }