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