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      public static java.util.List<Object> dynamicQuery(
64          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
65          throws com.liferay.portal.kernel.exception.SystemException {
66          return getService().dynamicQuery(dynamicQuery);
67      }
68  
69      public static java.util.List<Object> dynamicQuery(
70          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
71          int end) throws com.liferay.portal.kernel.exception.SystemException {
72          return getService().dynamicQuery(dynamicQuery, start, end);
73      }
74  
75      public static com.liferay.portlet.expando.model.ExpandoRow getExpandoRow(
76          long rowId)
77          throws com.liferay.portal.kernel.exception.PortalException,
78              com.liferay.portal.kernel.exception.SystemException {
79          return getService().getExpandoRow(rowId);
80      }
81  
82      public static java.util.List<com.liferay.portlet.expando.model.ExpandoRow> getExpandoRows(
83          int start, int end)
84          throws com.liferay.portal.kernel.exception.SystemException {
85          return getService().getExpandoRows(start, end);
86      }
87  
88      public static int getExpandoRowsCount()
89          throws com.liferay.portal.kernel.exception.SystemException {
90          return getService().getExpandoRowsCount();
91      }
92  
93      public static com.liferay.portlet.expando.model.ExpandoRow updateExpandoRow(
94          com.liferay.portlet.expando.model.ExpandoRow expandoRow)
95          throws com.liferay.portal.kernel.exception.SystemException {
96          return getService().updateExpandoRow(expandoRow);
97      }
98  
99      public static com.liferay.portlet.expando.model.ExpandoRow updateExpandoRow(
100         com.liferay.portlet.expando.model.ExpandoRow expandoRow, boolean merge)
101         throws com.liferay.portal.kernel.exception.SystemException {
102         return getService().updateExpandoRow(expandoRow, merge);
103     }
104 
105     public static com.liferay.portlet.expando.model.ExpandoRow addRow(
106         long tableId, long classPK)
107         throws com.liferay.portal.kernel.exception.PortalException,
108             com.liferay.portal.kernel.exception.SystemException {
109         return getService().addRow(tableId, classPK);
110     }
111 
112     public static void deleteRow(long rowId)
113         throws com.liferay.portal.kernel.exception.PortalException,
114             com.liferay.portal.kernel.exception.SystemException {
115         getService().deleteRow(rowId);
116     }
117 
118     public static void deleteRow(long tableId, long classPK)
119         throws com.liferay.portal.kernel.exception.PortalException,
120             com.liferay.portal.kernel.exception.SystemException {
121         getService().deleteRow(tableId, classPK);
122     }
123 
124     public static void deleteRow(long companyId, long classNameId,
125         java.lang.String tableName, long classPK)
126         throws com.liferay.portal.kernel.exception.PortalException,
127             com.liferay.portal.kernel.exception.SystemException {
128         getService().deleteRow(companyId, classNameId, tableName, classPK);
129     }
130 
131     public static void deleteRow(long companyId, java.lang.String className,
132         java.lang.String tableName, long classPK)
133         throws com.liferay.portal.kernel.exception.PortalException,
134             com.liferay.portal.kernel.exception.SystemException {
135         getService().deleteRow(companyId, className, tableName, classPK);
136     }
137 
138     public static java.util.List<com.liferay.portlet.expando.model.ExpandoRow> getDefaultTableRows(
139         long companyId, long classNameId, int start, int end)
140         throws com.liferay.portal.kernel.exception.SystemException {
141         return getService()
142                    .getDefaultTableRows(companyId, classNameId, start, end);
143     }
144 
145     public static java.util.List<com.liferay.portlet.expando.model.ExpandoRow> getDefaultTableRows(
146         long companyId, java.lang.String className, int start, int end)
147         throws com.liferay.portal.kernel.exception.SystemException {
148         return getService().getDefaultTableRows(companyId, className, start, end);
149     }
150 
151     public static int getDefaultTableRowsCount(long companyId, long classNameId)
152         throws com.liferay.portal.kernel.exception.SystemException {
153         return getService().getDefaultTableRowsCount(companyId, classNameId);
154     }
155 
156     public static int getDefaultTableRowsCount(long companyId,
157         java.lang.String className)
158         throws com.liferay.portal.kernel.exception.SystemException {
159         return getService().getDefaultTableRowsCount(companyId, className);
160     }
161 
162     public static com.liferay.portlet.expando.model.ExpandoRow getRow(
163         long rowId)
164         throws com.liferay.portal.kernel.exception.PortalException,
165             com.liferay.portal.kernel.exception.SystemException {
166         return getService().getRow(rowId);
167     }
168 
169     public static com.liferay.portlet.expando.model.ExpandoRow getRow(
170         long tableId, long classPK)
171         throws com.liferay.portal.kernel.exception.PortalException,
172             com.liferay.portal.kernel.exception.SystemException {
173         return getService().getRow(tableId, classPK);
174     }
175 
176     public static com.liferay.portlet.expando.model.ExpandoRow getRow(
177         long companyId, long classNameId, java.lang.String tableName,
178         long classPK)
179         throws com.liferay.portal.kernel.exception.SystemException {
180         return getService().getRow(companyId, classNameId, tableName, classPK);
181     }
182 
183     public static com.liferay.portlet.expando.model.ExpandoRow getRow(
184         long companyId, java.lang.String className, java.lang.String tableName,
185         long classPK)
186         throws com.liferay.portal.kernel.exception.SystemException {
187         return getService().getRow(companyId, className, tableName, classPK);
188     }
189 
190     public static java.util.List<com.liferay.portlet.expando.model.ExpandoRow> getRows(
191         long tableId, int start, int end)
192         throws com.liferay.portal.kernel.exception.SystemException {
193         return getService().getRows(tableId, start, end);
194     }
195 
196     public static java.util.List<com.liferay.portlet.expando.model.ExpandoRow> getRows(
197         long companyId, long classNameId, java.lang.String tableName,
198         int start, int end)
199         throws com.liferay.portal.kernel.exception.SystemException {
200         return getService()
201                    .getRows(companyId, classNameId, tableName, start, end);
202     }
203 
204     public static java.util.List<com.liferay.portlet.expando.model.ExpandoRow> getRows(
205         long companyId, java.lang.String className, java.lang.String tableName,
206         int start, int end)
207         throws com.liferay.portal.kernel.exception.SystemException {
208         return getService().getRows(companyId, className, tableName, start, end);
209     }
210 
211     public static int getRowsCount(long tableId)
212         throws com.liferay.portal.kernel.exception.SystemException {
213         return getService().getRowsCount(tableId);
214     }
215 
216     public static int getRowsCount(long companyId, long classNameId,
217         java.lang.String tableName)
218         throws com.liferay.portal.kernel.exception.SystemException {
219         return getService().getRowsCount(companyId, classNameId, tableName);
220     }
221 
222     public static int getRowsCount(long companyId, java.lang.String className,
223         java.lang.String tableName)
224         throws com.liferay.portal.kernel.exception.SystemException {
225         return getService().getRowsCount(companyId, className, tableName);
226     }
227 
228     public static ExpandoRowLocalService getService() {
229         if (_service == null) {
230             _service = (ExpandoRowLocalService)PortalBeanLocatorUtil.locate(ExpandoRowLocalService.class.getName());
231         }
232 
233         return _service;
234     }
235 
236     public void setService(ExpandoRowLocalService service) {
237         _service = service;
238     }
239 
240     private static ExpandoRowLocalService _service;
241 }