1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   * 
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.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.PortalException,
53              com.liferay.portal.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.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.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.SystemException {
72          return getService().dynamicQuery(dynamicQuery, start, end);
73      }
74  
75      public static java.util.List<Object> dynamicQuery(
76          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
77          int end,
78          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
79          throws com.liferay.portal.SystemException {
80          return getService()
81                     .dynamicQuery(dynamicQuery, start, end, orderByComparator);
82      }
83  
84      public static int dynamicQueryCount(
85          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
86          throws com.liferay.portal.SystemException {
87          return getService().dynamicQueryCount(dynamicQuery);
88      }
89  
90      public static com.liferay.portlet.expando.model.ExpandoRow getExpandoRow(
91          long rowId)
92          throws com.liferay.portal.PortalException,
93              com.liferay.portal.SystemException {
94          return getService().getExpandoRow(rowId);
95      }
96  
97      public static java.util.List<com.liferay.portlet.expando.model.ExpandoRow> getExpandoRows(
98          int start, int end) throws com.liferay.portal.SystemException {
99          return getService().getExpandoRows(start, end);
100     }
101 
102     public static int getExpandoRowsCount()
103         throws com.liferay.portal.SystemException {
104         return getService().getExpandoRowsCount();
105     }
106 
107     public static com.liferay.portlet.expando.model.ExpandoRow updateExpandoRow(
108         com.liferay.portlet.expando.model.ExpandoRow expandoRow)
109         throws com.liferay.portal.SystemException {
110         return getService().updateExpandoRow(expandoRow);
111     }
112 
113     public static com.liferay.portlet.expando.model.ExpandoRow updateExpandoRow(
114         com.liferay.portlet.expando.model.ExpandoRow expandoRow, boolean merge)
115         throws com.liferay.portal.SystemException {
116         return getService().updateExpandoRow(expandoRow, merge);
117     }
118 
119     public static com.liferay.portlet.expando.model.ExpandoRow addRow(
120         long tableId, long classPK)
121         throws com.liferay.portal.PortalException,
122             com.liferay.portal.SystemException {
123         return getService().addRow(tableId, classPK);
124     }
125 
126     public static void deleteRow(long rowId)
127         throws com.liferay.portal.PortalException,
128             com.liferay.portal.SystemException {
129         getService().deleteRow(rowId);
130     }
131 
132     public static void deleteRow(long tableId, long classPK)
133         throws com.liferay.portal.PortalException,
134             com.liferay.portal.SystemException {
135         getService().deleteRow(tableId, classPK);
136     }
137 
138     public static void deleteRow(long classNameId, java.lang.String tableName,
139         long classPK)
140         throws com.liferay.portal.PortalException,
141             com.liferay.portal.SystemException {
142         getService().deleteRow(classNameId, tableName, classPK);
143     }
144 
145     public static void deleteRow(java.lang.String className,
146         java.lang.String tableName, long classPK)
147         throws com.liferay.portal.PortalException,
148             com.liferay.portal.SystemException {
149         getService().deleteRow(className, tableName, classPK);
150     }
151 
152     public static java.util.List<com.liferay.portlet.expando.model.ExpandoRow> getDefaultTableRows(
153         long classNameId, int start, int end)
154         throws com.liferay.portal.SystemException {
155         return getService().getDefaultTableRows(classNameId, start, end);
156     }
157 
158     public static java.util.List<com.liferay.portlet.expando.model.ExpandoRow> getDefaultTableRows(
159         java.lang.String className, int start, int end)
160         throws com.liferay.portal.SystemException {
161         return getService().getDefaultTableRows(className, start, end);
162     }
163 
164     public static int getDefaultTableRowsCount(long classNameId)
165         throws com.liferay.portal.SystemException {
166         return getService().getDefaultTableRowsCount(classNameId);
167     }
168 
169     public static int getDefaultTableRowsCount(java.lang.String className)
170         throws com.liferay.portal.SystemException {
171         return getService().getDefaultTableRowsCount(className);
172     }
173 
174     public static com.liferay.portlet.expando.model.ExpandoRow getRow(
175         long rowId)
176         throws com.liferay.portal.PortalException,
177             com.liferay.portal.SystemException {
178         return getService().getRow(rowId);
179     }
180 
181     public static com.liferay.portlet.expando.model.ExpandoRow getRow(
182         long tableId, long classPK)
183         throws com.liferay.portal.PortalException,
184             com.liferay.portal.SystemException {
185         return getService().getRow(tableId, classPK);
186     }
187 
188     public static com.liferay.portlet.expando.model.ExpandoRow getRow(
189         long classNameId, java.lang.String tableName, long classPK)
190         throws com.liferay.portal.SystemException {
191         return getService().getRow(classNameId, tableName, classPK);
192     }
193 
194     public static com.liferay.portlet.expando.model.ExpandoRow getRow(
195         java.lang.String className, java.lang.String tableName, long classPK)
196         throws com.liferay.portal.SystemException {
197         return getService().getRow(className, tableName, classPK);
198     }
199 
200     public static java.util.List<com.liferay.portlet.expando.model.ExpandoRow> getRows(
201         long tableId, int start, int end)
202         throws com.liferay.portal.SystemException {
203         return getService().getRows(tableId, start, end);
204     }
205 
206     public static java.util.List<com.liferay.portlet.expando.model.ExpandoRow> getRows(
207         long classNameId, java.lang.String tableName, int start, int end)
208         throws com.liferay.portal.SystemException {
209         return getService().getRows(classNameId, tableName, start, end);
210     }
211 
212     public static java.util.List<com.liferay.portlet.expando.model.ExpandoRow> getRows(
213         java.lang.String className, java.lang.String tableName, int start,
214         int end) throws com.liferay.portal.SystemException {
215         return getService().getRows(className, tableName, start, end);
216     }
217 
218     public static int getRowsCount(long tableId)
219         throws com.liferay.portal.SystemException {
220         return getService().getRowsCount(tableId);
221     }
222 
223     public static int getRowsCount(long classNameId, java.lang.String tableName)
224         throws com.liferay.portal.SystemException {
225         return getService().getRowsCount(classNameId, tableName);
226     }
227 
228     public static int getRowsCount(java.lang.String className,
229         java.lang.String tableName) throws com.liferay.portal.SystemException {
230         return getService().getRowsCount(className, tableName);
231     }
232 
233     public static ExpandoRowLocalService getService() {
234         if (_service == null) {
235             _service = (ExpandoRowLocalService)PortalBeanLocatorUtil.locate(ExpandoRowLocalService.class.getName());
236         }
237 
238         return _service;
239     }
240 
241     public void setService(ExpandoRowLocalService service) {
242         _service = service;
243     }
244 
245     private static ExpandoRowLocalService _service;
246 }