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="ExpandoTableLocalServiceUtil.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 ExpandoTableLocalService} 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       ExpandoTableLocalService
37   * @generated
38   */
39  public class ExpandoTableLocalServiceUtil {
40      public static com.liferay.portlet.expando.model.ExpandoTable addExpandoTable(
41          com.liferay.portlet.expando.model.ExpandoTable expandoTable)
42          throws com.liferay.portal.kernel.exception.SystemException {
43          return getService().addExpandoTable(expandoTable);
44      }
45  
46      public static com.liferay.portlet.expando.model.ExpandoTable createExpandoTable(
47          long tableId) {
48          return getService().createExpandoTable(tableId);
49      }
50  
51      public static void deleteExpandoTable(long tableId)
52          throws com.liferay.portal.kernel.exception.PortalException,
53              com.liferay.portal.kernel.exception.SystemException {
54          getService().deleteExpandoTable(tableId);
55      }
56  
57      public static void deleteExpandoTable(
58          com.liferay.portlet.expando.model.ExpandoTable expandoTable)
59          throws com.liferay.portal.kernel.exception.SystemException {
60          getService().deleteExpandoTable(expandoTable);
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 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.kernel.exception.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.kernel.exception.SystemException {
87          return getService().dynamicQueryCount(dynamicQuery);
88      }
89  
90      public static com.liferay.portlet.expando.model.ExpandoTable getExpandoTable(
91          long tableId)
92          throws com.liferay.portal.kernel.exception.PortalException,
93              com.liferay.portal.kernel.exception.SystemException {
94          return getService().getExpandoTable(tableId);
95      }
96  
97      public static java.util.List<com.liferay.portlet.expando.model.ExpandoTable> getExpandoTables(
98          int start, int end)
99          throws com.liferay.portal.kernel.exception.SystemException {
100         return getService().getExpandoTables(start, end);
101     }
102 
103     public static int getExpandoTablesCount()
104         throws com.liferay.portal.kernel.exception.SystemException {
105         return getService().getExpandoTablesCount();
106     }
107 
108     public static com.liferay.portlet.expando.model.ExpandoTable updateExpandoTable(
109         com.liferay.portlet.expando.model.ExpandoTable expandoTable)
110         throws com.liferay.portal.kernel.exception.SystemException {
111         return getService().updateExpandoTable(expandoTable);
112     }
113 
114     public static com.liferay.portlet.expando.model.ExpandoTable updateExpandoTable(
115         com.liferay.portlet.expando.model.ExpandoTable expandoTable,
116         boolean merge)
117         throws com.liferay.portal.kernel.exception.SystemException {
118         return getService().updateExpandoTable(expandoTable, merge);
119     }
120 
121     public static com.liferay.portlet.expando.model.ExpandoTable addDefaultTable(
122         long companyId, long classNameId)
123         throws com.liferay.portal.kernel.exception.PortalException,
124             com.liferay.portal.kernel.exception.SystemException {
125         return getService().addDefaultTable(companyId, classNameId);
126     }
127 
128     public static com.liferay.portlet.expando.model.ExpandoTable addDefaultTable(
129         long companyId, java.lang.String className)
130         throws com.liferay.portal.kernel.exception.PortalException,
131             com.liferay.portal.kernel.exception.SystemException {
132         return getService().addDefaultTable(companyId, className);
133     }
134 
135     public static com.liferay.portlet.expando.model.ExpandoTable addTable(
136         long companyId, long classNameId, java.lang.String name)
137         throws com.liferay.portal.kernel.exception.PortalException,
138             com.liferay.portal.kernel.exception.SystemException {
139         return getService().addTable(companyId, classNameId, name);
140     }
141 
142     public static com.liferay.portlet.expando.model.ExpandoTable addTable(
143         long classNameId, java.lang.String name)
144         throws com.liferay.portal.kernel.exception.PortalException,
145             com.liferay.portal.kernel.exception.SystemException {
146         return getService().addTable(classNameId, name);
147     }
148 
149     public static com.liferay.portlet.expando.model.ExpandoTable addTable(
150         long companyId, java.lang.String className, java.lang.String name)
151         throws com.liferay.portal.kernel.exception.PortalException,
152             com.liferay.portal.kernel.exception.SystemException {
153         return getService().addTable(companyId, className, name);
154     }
155 
156     public static com.liferay.portlet.expando.model.ExpandoTable addTable(
157         java.lang.String className, java.lang.String name)
158         throws com.liferay.portal.kernel.exception.PortalException,
159             com.liferay.portal.kernel.exception.SystemException {
160         return getService().addTable(className, name);
161     }
162 
163     public static void deleteTable(
164         com.liferay.portlet.expando.model.ExpandoTable table)
165         throws com.liferay.portal.kernel.exception.SystemException {
166         getService().deleteTable(table);
167     }
168 
169     public static void deleteTable(long tableId)
170         throws com.liferay.portal.kernel.exception.PortalException,
171             com.liferay.portal.kernel.exception.SystemException {
172         getService().deleteTable(tableId);
173     }
174 
175     public static void deleteTable(long companyId, long classNameId,
176         java.lang.String name)
177         throws com.liferay.portal.kernel.exception.PortalException,
178             com.liferay.portal.kernel.exception.SystemException {
179         getService().deleteTable(companyId, classNameId, name);
180     }
181 
182     public static void deleteTable(long companyId, java.lang.String className,
183         java.lang.String name)
184         throws com.liferay.portal.kernel.exception.PortalException,
185             com.liferay.portal.kernel.exception.SystemException {
186         getService().deleteTable(companyId, className, name);
187     }
188 
189     public static void deleteTables(long companyId, long classNameId)
190         throws com.liferay.portal.kernel.exception.SystemException {
191         getService().deleteTables(companyId, classNameId);
192     }
193 
194     public static void deleteTables(long companyId, java.lang.String className)
195         throws com.liferay.portal.kernel.exception.SystemException {
196         getService().deleteTables(companyId, className);
197     }
198 
199     public static com.liferay.portlet.expando.model.ExpandoTable getDefaultTable(
200         long companyId, long classNameId)
201         throws com.liferay.portal.kernel.exception.PortalException,
202             com.liferay.portal.kernel.exception.SystemException {
203         return getService().getDefaultTable(companyId, classNameId);
204     }
205 
206     public static com.liferay.portlet.expando.model.ExpandoTable getDefaultTable(
207         long companyId, java.lang.String className)
208         throws com.liferay.portal.kernel.exception.PortalException,
209             com.liferay.portal.kernel.exception.SystemException {
210         return getService().getDefaultTable(companyId, className);
211     }
212 
213     public static com.liferay.portlet.expando.model.ExpandoTable getTable(
214         long tableId)
215         throws com.liferay.portal.kernel.exception.PortalException,
216             com.liferay.portal.kernel.exception.SystemException {
217         return getService().getTable(tableId);
218     }
219 
220     public static com.liferay.portlet.expando.model.ExpandoTable getTable(
221         long companyId, long classNameId, java.lang.String name)
222         throws com.liferay.portal.kernel.exception.PortalException,
223             com.liferay.portal.kernel.exception.SystemException {
224         return getService().getTable(companyId, classNameId, name);
225     }
226 
227     public static com.liferay.portlet.expando.model.ExpandoTable getTable(
228         long classNameId, java.lang.String name)
229         throws com.liferay.portal.kernel.exception.PortalException,
230             com.liferay.portal.kernel.exception.SystemException {
231         return getService().getTable(classNameId, name);
232     }
233 
234     public static com.liferay.portlet.expando.model.ExpandoTable getTable(
235         long companyId, java.lang.String className, java.lang.String name)
236         throws com.liferay.portal.kernel.exception.PortalException,
237             com.liferay.portal.kernel.exception.SystemException {
238         return getService().getTable(companyId, className, name);
239     }
240 
241     public static com.liferay.portlet.expando.model.ExpandoTable getTable(
242         java.lang.String className, java.lang.String name)
243         throws com.liferay.portal.kernel.exception.PortalException,
244             com.liferay.portal.kernel.exception.SystemException {
245         return getService().getTable(className, name);
246     }
247 
248     public static java.util.List<com.liferay.portlet.expando.model.ExpandoTable> getTables(
249         long companyId, long classNameId)
250         throws com.liferay.portal.kernel.exception.SystemException {
251         return getService().getTables(companyId, classNameId);
252     }
253 
254     public static java.util.List<com.liferay.portlet.expando.model.ExpandoTable> getTables(
255         long companyId, java.lang.String className)
256         throws com.liferay.portal.kernel.exception.SystemException {
257         return getService().getTables(companyId, className);
258     }
259 
260     public static com.liferay.portlet.expando.model.ExpandoTable updateTable(
261         long tableId, java.lang.String name)
262         throws com.liferay.portal.kernel.exception.PortalException,
263             com.liferay.portal.kernel.exception.SystemException {
264         return getService().updateTable(tableId, name);
265     }
266 
267     public static ExpandoTableLocalService getService() {
268         if (_service == null) {
269             _service = (ExpandoTableLocalService)PortalBeanLocatorUtil.locate(ExpandoTableLocalService.class.getName());
270         }
271 
272         return _service;
273     }
274 
275     public void setService(ExpandoTableLocalService service) {
276         _service = service;
277     }
278 
279     private static ExpandoTableLocalService _service;
280 }