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="ExpandoRowLocalServiceUtil.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 ExpandoRowLocalService} 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       ExpandoRowLocalService
37   * @generated
38   */
39  public class ExpandoRowLocalServiceUtil {
40      public static com.liferay.portlet.expando.model.ExpandoRow addExpandoRow(
41          com.liferay.portlet.expando.model.ExpandoRow expandoRow)
42          throws com.liferay.portal.kernel.exception.SystemException {
43          return getService().addExpandoRow(expandoRow);
44      }
45  
46      public static com.liferay.portlet.expando.model.ExpandoRow createExpandoRow(
47          long rowId) {
48          return getService().createExpandoRow(rowId);
49      }
50  
51      public static void deleteExpandoRow(long rowId)
52          throws com.liferay.portal.kernel.exception.PortalException,
53              com.liferay.portal.kernel.exception.SystemException {
54          getService().deleteExpandoRow(rowId);
55      }
56  
57      public static void deleteExpandoRow(
58          com.liferay.portlet.expando.model.ExpandoRow expandoRow)
59          throws com.liferay.portal.kernel.exception.SystemException {
60          getService().deleteExpandoRow(expandoRow);
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.ExpandoRow getExpandoRow(
94          long rowId)
95          throws com.liferay.portal.kernel.exception.PortalException,
96              com.liferay.portal.kernel.exception.SystemException {
97          return getService().getExpandoRow(rowId);
98      }
99  
100     public static java.util.List<com.liferay.portlet.expando.model.ExpandoRow> getExpandoRows(
101         int start, int end)
102         throws com.liferay.portal.kernel.exception.SystemException {
103         return getService().getExpandoRows(start, end);
104     }
105 
106     public static int getExpandoRowsCount()
107         throws com.liferay.portal.kernel.exception.SystemException {
108         return getService().getExpandoRowsCount();
109     }
110 
111     public static com.liferay.portlet.expando.model.ExpandoRow updateExpandoRow(
112         com.liferay.portlet.expando.model.ExpandoRow expandoRow)
113         throws com.liferay.portal.kernel.exception.SystemException {
114         return getService().updateExpandoRow(expandoRow);
115     }
116 
117     public static com.liferay.portlet.expando.model.ExpandoRow updateExpandoRow(
118         com.liferay.portlet.expando.model.ExpandoRow expandoRow, boolean merge)
119         throws com.liferay.portal.kernel.exception.SystemException {
120         return getService().updateExpandoRow(expandoRow, merge);
121     }
122 
123     public static com.liferay.portlet.expando.model.ExpandoRow addRow(
124         long tableId, long classPK)
125         throws com.liferay.portal.kernel.exception.PortalException,
126             com.liferay.portal.kernel.exception.SystemException {
127         return getService().addRow(tableId, classPK);
128     }
129 
130     public static void deleteRow(long rowId)
131         throws com.liferay.portal.kernel.exception.PortalException,
132             com.liferay.portal.kernel.exception.SystemException {
133         getService().deleteRow(rowId);
134     }
135 
136     public static void deleteRow(long tableId, long classPK)
137         throws com.liferay.portal.kernel.exception.PortalException,
138             com.liferay.portal.kernel.exception.SystemException {
139         getService().deleteRow(tableId, classPK);
140     }
141 
142     public static void deleteRow(long companyId, long classNameId,
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, classNameId, tableName, classPK);
147     }
148 
149     public static void deleteRow(long companyId, java.lang.String className,
150         java.lang.String tableName, long classPK)
151         throws com.liferay.portal.kernel.exception.PortalException,
152             com.liferay.portal.kernel.exception.SystemException {
153         getService().deleteRow(companyId, className, tableName, classPK);
154     }
155 
156     public static java.util.List<com.liferay.portlet.expando.model.ExpandoRow> getDefaultTableRows(
157         long companyId, long classNameId, int start, int end)
158         throws com.liferay.portal.kernel.exception.SystemException {
159         return getService()
160                    .getDefaultTableRows(companyId, classNameId, start, end);
161     }
162 
163     public static java.util.List<com.liferay.portlet.expando.model.ExpandoRow> getDefaultTableRows(
164         long companyId, java.lang.String className, int start, int end)
165         throws com.liferay.portal.kernel.exception.SystemException {
166         return getService().getDefaultTableRows(companyId, className, start, end);
167     }
168 
169     public static int getDefaultTableRowsCount(long companyId, long classNameId)
170         throws com.liferay.portal.kernel.exception.SystemException {
171         return getService().getDefaultTableRowsCount(companyId, classNameId);
172     }
173 
174     public static int getDefaultTableRowsCount(long companyId,
175         java.lang.String className)
176         throws com.liferay.portal.kernel.exception.SystemException {
177         return getService().getDefaultTableRowsCount(companyId, className);
178     }
179 
180     public static com.liferay.portlet.expando.model.ExpandoRow getRow(
181         long rowId)
182         throws com.liferay.portal.kernel.exception.PortalException,
183             com.liferay.portal.kernel.exception.SystemException {
184         return getService().getRow(rowId);
185     }
186 
187     public static com.liferay.portlet.expando.model.ExpandoRow getRow(
188         long tableId, long classPK)
189         throws com.liferay.portal.kernel.exception.PortalException,
190             com.liferay.portal.kernel.exception.SystemException {
191         return getService().getRow(tableId, classPK);
192     }
193 
194     public static com.liferay.portlet.expando.model.ExpandoRow getRow(
195         long companyId, long classNameId, java.lang.String tableName,
196         long classPK)
197         throws com.liferay.portal.kernel.exception.SystemException {
198         return getService().getRow(companyId, classNameId, tableName, classPK);
199     }
200 
201     public static com.liferay.portlet.expando.model.ExpandoRow getRow(
202         long companyId, java.lang.String className, java.lang.String tableName,
203         long classPK)
204         throws com.liferay.portal.kernel.exception.SystemException {
205         return getService().getRow(companyId, className, tableName, classPK);
206     }
207 
208     public static java.util.List<com.liferay.portlet.expando.model.ExpandoRow> getRows(
209         long tableId, int start, int end)
210         throws com.liferay.portal.kernel.exception.SystemException {
211         return getService().getRows(tableId, start, end);
212     }
213 
214     public static java.util.List<com.liferay.portlet.expando.model.ExpandoRow> getRows(
215         long companyId, long classNameId, java.lang.String tableName,
216         int start, int end)
217         throws com.liferay.portal.kernel.exception.SystemException {
218         return getService()
219                    .getRows(companyId, classNameId, tableName, start, end);
220     }
221 
222     public static java.util.List<com.liferay.portlet.expando.model.ExpandoRow> getRows(
223         long companyId, java.lang.String className, java.lang.String tableName,
224         int start, int end)
225         throws com.liferay.portal.kernel.exception.SystemException {
226         return getService().getRows(companyId, className, tableName, start, end);
227     }
228 
229     public static int getRowsCount(long tableId)
230         throws com.liferay.portal.kernel.exception.SystemException {
231         return getService().getRowsCount(tableId);
232     }
233 
234     public static int getRowsCount(long companyId, long classNameId,
235         java.lang.String tableName)
236         throws com.liferay.portal.kernel.exception.SystemException {
237         return getService().getRowsCount(companyId, classNameId, tableName);
238     }
239 
240     public static int getRowsCount(long companyId, java.lang.String className,
241         java.lang.String tableName)
242         throws com.liferay.portal.kernel.exception.SystemException {
243         return getService().getRowsCount(companyId, className, tableName);
244     }
245 
246     public static ExpandoRowLocalService getService() {
247         if (_service == null) {
248             _service = (ExpandoRowLocalService)PortalBeanLocatorUtil.locate(ExpandoRowLocalService.class.getName());
249         }
250 
251         return _service;
252     }
253 
254     public void setService(ExpandoRowLocalService service) {
255         _service = service;
256     }
257 
258     private static ExpandoRowLocalService _service;
259 }