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