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