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