1   /**
2    * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.expando.service;
24  
25  
26  /**
27   * <a href="ExpandoTableLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
28   *
29   * <p>
30   * ServiceBuilder generated this class. Modifications in this class will be
31   * overwritten the next time is generated.
32   * </p>
33   *
34   * <p>
35   * This class provides static methods for the
36   * <code>com.liferay.portlet.expando.service.ExpandoTableLocalService</code>
37   * bean. The static methods of this class calls the same methods of the bean
38   * instance. It's convenient to be able to just write one line to call a method
39   * on a bean instead of writing a lookup call and a method call.
40   * </p>
41   *
42   * <p>
43   * <code>com.liferay.portlet.expando.service.ExpandoTableLocalServiceFactory</code>
44   * is responsible for the lookup of the bean.
45   * </p>
46   *
47   * @author Brian Wing Shun Chan
48   *
49   * @see com.liferay.portlet.expando.service.ExpandoTableLocalService
50   * @see com.liferay.portlet.expando.service.ExpandoTableLocalServiceFactory
51   *
52   */
53  public class ExpandoTableLocalServiceUtil {
54      public static com.liferay.portlet.expando.model.ExpandoTable addExpandoTable(
55          com.liferay.portlet.expando.model.ExpandoTable expandoTable)
56          throws com.liferay.portal.SystemException {
57          ExpandoTableLocalService expandoTableLocalService = ExpandoTableLocalServiceFactory.getService();
58  
59          return expandoTableLocalService.addExpandoTable(expandoTable);
60      }
61  
62      public static void deleteExpandoTable(long tableId)
63          throws com.liferay.portal.PortalException,
64              com.liferay.portal.SystemException {
65          ExpandoTableLocalService expandoTableLocalService = ExpandoTableLocalServiceFactory.getService();
66  
67          expandoTableLocalService.deleteExpandoTable(tableId);
68      }
69  
70      public static void deleteExpandoTable(
71          com.liferay.portlet.expando.model.ExpandoTable expandoTable)
72          throws com.liferay.portal.PortalException,
73              com.liferay.portal.SystemException {
74          ExpandoTableLocalService expandoTableLocalService = ExpandoTableLocalServiceFactory.getService();
75  
76          expandoTableLocalService.deleteExpandoTable(expandoTable);
77      }
78  
79      public static java.util.List<com.liferay.portlet.expando.model.ExpandoTable> dynamicQuery(
80          com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
81          throws com.liferay.portal.SystemException {
82          ExpandoTableLocalService expandoTableLocalService = ExpandoTableLocalServiceFactory.getService();
83  
84          return expandoTableLocalService.dynamicQuery(queryInitializer);
85      }
86  
87      public static java.util.List<com.liferay.portlet.expando.model.ExpandoTable> dynamicQuery(
88          com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
89          int begin, int end) throws com.liferay.portal.SystemException {
90          ExpandoTableLocalService expandoTableLocalService = ExpandoTableLocalServiceFactory.getService();
91  
92          return expandoTableLocalService.dynamicQuery(queryInitializer, begin,
93              end);
94      }
95  
96      public static com.liferay.portlet.expando.model.ExpandoTable updateExpandoTable(
97          com.liferay.portlet.expando.model.ExpandoTable expandoTable)
98          throws com.liferay.portal.SystemException {
99          ExpandoTableLocalService expandoTableLocalService = ExpandoTableLocalServiceFactory.getService();
100 
101         return expandoTableLocalService.updateExpandoTable(expandoTable);
102     }
103 
104     public static com.liferay.portlet.expando.model.ExpandoTable addDefaultTable(
105         java.lang.String className)
106         throws com.liferay.portal.PortalException,
107             com.liferay.portal.SystemException {
108         ExpandoTableLocalService expandoTableLocalService = ExpandoTableLocalServiceFactory.getService();
109 
110         return expandoTableLocalService.addDefaultTable(className);
111     }
112 
113     public static com.liferay.portlet.expando.model.ExpandoTable addDefaultTable(
114         long classNameId)
115         throws com.liferay.portal.PortalException,
116             com.liferay.portal.SystemException {
117         ExpandoTableLocalService expandoTableLocalService = ExpandoTableLocalServiceFactory.getService();
118 
119         return expandoTableLocalService.addDefaultTable(classNameId);
120     }
121 
122     public static com.liferay.portlet.expando.model.ExpandoTable addTable(
123         java.lang.String className, java.lang.String name)
124         throws com.liferay.portal.PortalException,
125             com.liferay.portal.SystemException {
126         ExpandoTableLocalService expandoTableLocalService = ExpandoTableLocalServiceFactory.getService();
127 
128         return expandoTableLocalService.addTable(className, name);
129     }
130 
131     public static com.liferay.portlet.expando.model.ExpandoTable addTable(
132         long classNameId, java.lang.String name)
133         throws com.liferay.portal.PortalException,
134             com.liferay.portal.SystemException {
135         ExpandoTableLocalService expandoTableLocalService = ExpandoTableLocalServiceFactory.getService();
136 
137         return expandoTableLocalService.addTable(classNameId, name);
138     }
139 
140     public static void deleteTable(long tableId)
141         throws com.liferay.portal.PortalException,
142             com.liferay.portal.SystemException {
143         ExpandoTableLocalService expandoTableLocalService = ExpandoTableLocalServiceFactory.getService();
144 
145         expandoTableLocalService.deleteTable(tableId);
146     }
147 
148     public static void deleteTable(java.lang.String className,
149         java.lang.String name)
150         throws com.liferay.portal.PortalException,
151             com.liferay.portal.SystemException {
152         ExpandoTableLocalService expandoTableLocalService = ExpandoTableLocalServiceFactory.getService();
153 
154         expandoTableLocalService.deleteTable(className, name);
155     }
156 
157     public static void deleteTable(long classNameId, java.lang.String name)
158         throws com.liferay.portal.PortalException,
159             com.liferay.portal.SystemException {
160         ExpandoTableLocalService expandoTableLocalService = ExpandoTableLocalServiceFactory.getService();
161 
162         expandoTableLocalService.deleteTable(classNameId, name);
163     }
164 
165     public static void deleteTables(java.lang.String className)
166         throws com.liferay.portal.PortalException,
167             com.liferay.portal.SystemException {
168         ExpandoTableLocalService expandoTableLocalService = ExpandoTableLocalServiceFactory.getService();
169 
170         expandoTableLocalService.deleteTables(className);
171     }
172 
173     public static void deleteTables(long classNameId)
174         throws com.liferay.portal.PortalException,
175             com.liferay.portal.SystemException {
176         ExpandoTableLocalService expandoTableLocalService = ExpandoTableLocalServiceFactory.getService();
177 
178         expandoTableLocalService.deleteTables(classNameId);
179     }
180 
181     public static com.liferay.portlet.expando.model.ExpandoTable getDefaultTable(
182         java.lang.String className)
183         throws com.liferay.portal.PortalException,
184             com.liferay.portal.SystemException {
185         ExpandoTableLocalService expandoTableLocalService = ExpandoTableLocalServiceFactory.getService();
186 
187         return expandoTableLocalService.getDefaultTable(className);
188     }
189 
190     public static com.liferay.portlet.expando.model.ExpandoTable getDefaultTable(
191         long classNameId)
192         throws com.liferay.portal.PortalException,
193             com.liferay.portal.SystemException {
194         ExpandoTableLocalService expandoTableLocalService = ExpandoTableLocalServiceFactory.getService();
195 
196         return expandoTableLocalService.getDefaultTable(classNameId);
197     }
198 
199     public static com.liferay.portlet.expando.model.ExpandoTable getTable(
200         long tableId)
201         throws com.liferay.portal.PortalException,
202             com.liferay.portal.SystemException {
203         ExpandoTableLocalService expandoTableLocalService = ExpandoTableLocalServiceFactory.getService();
204 
205         return expandoTableLocalService.getTable(tableId);
206     }
207 
208     public static com.liferay.portlet.expando.model.ExpandoTable getTable(
209         java.lang.String className, java.lang.String name)
210         throws com.liferay.portal.PortalException,
211             com.liferay.portal.SystemException {
212         ExpandoTableLocalService expandoTableLocalService = ExpandoTableLocalServiceFactory.getService();
213 
214         return expandoTableLocalService.getTable(className, name);
215     }
216 
217     public static com.liferay.portlet.expando.model.ExpandoTable getTable(
218         long classNameId, java.lang.String name)
219         throws com.liferay.portal.PortalException,
220             com.liferay.portal.SystemException {
221         ExpandoTableLocalService expandoTableLocalService = ExpandoTableLocalServiceFactory.getService();
222 
223         return expandoTableLocalService.getTable(classNameId, name);
224     }
225 
226     public static java.util.List<com.liferay.portlet.expando.model.ExpandoTable> getTables(
227         java.lang.String className)
228         throws com.liferay.portal.PortalException,
229             com.liferay.portal.SystemException {
230         ExpandoTableLocalService expandoTableLocalService = ExpandoTableLocalServiceFactory.getService();
231 
232         return expandoTableLocalService.getTables(className);
233     }
234 
235     public static java.util.List<com.liferay.portlet.expando.model.ExpandoTable> getTables(
236         long classNameId)
237         throws com.liferay.portal.PortalException,
238             com.liferay.portal.SystemException {
239         ExpandoTableLocalService expandoTableLocalService = ExpandoTableLocalServiceFactory.getService();
240 
241         return expandoTableLocalService.getTables(classNameId);
242     }
243 
244     public static com.liferay.portlet.expando.model.ExpandoTable updateTable(
245         long tableId, java.lang.String name)
246         throws com.liferay.portal.PortalException,
247             com.liferay.portal.SystemException {
248         ExpandoTableLocalService expandoTableLocalService = ExpandoTableLocalServiceFactory.getService();
249 
250         return expandoTableLocalService.updateTable(tableId, name);
251     }
252 }