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="ExpandoTableServiceUtil.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.ExpandoTableService</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.ExpandoTableServiceFactory</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.ExpandoTableService
50   * @see com.liferay.portlet.expando.service.ExpandoTableServiceFactory
51   *
52   */
53  public class ExpandoTableServiceUtil {
54      public static com.liferay.portlet.expando.model.ExpandoTable addDefaultTable(
55          java.lang.String className)
56          throws com.liferay.portal.PortalException,
57              com.liferay.portal.SystemException, java.rmi.RemoteException {
58          ExpandoTableService expandoTableService = ExpandoTableServiceFactory.getService();
59  
60          return expandoTableService.addDefaultTable(className);
61      }
62  
63      public static com.liferay.portlet.expando.model.ExpandoTable addDefaultTable(
64          long classNameId)
65          throws com.liferay.portal.PortalException,
66              com.liferay.portal.SystemException, java.rmi.RemoteException {
67          ExpandoTableService expandoTableService = ExpandoTableServiceFactory.getService();
68  
69          return expandoTableService.addDefaultTable(classNameId);
70      }
71  
72      public static com.liferay.portlet.expando.model.ExpandoTable addTable(
73          java.lang.String className, java.lang.String name)
74          throws com.liferay.portal.PortalException,
75              com.liferay.portal.SystemException, java.rmi.RemoteException {
76          ExpandoTableService expandoTableService = ExpandoTableServiceFactory.getService();
77  
78          return expandoTableService.addTable(className, name);
79      }
80  
81      public static com.liferay.portlet.expando.model.ExpandoTable addTable(
82          long classNameId, java.lang.String name)
83          throws com.liferay.portal.PortalException,
84              com.liferay.portal.SystemException, java.rmi.RemoteException {
85          ExpandoTableService expandoTableService = ExpandoTableServiceFactory.getService();
86  
87          return expandoTableService.addTable(classNameId, name);
88      }
89  
90      public static void deleteTable(long tableId)
91          throws com.liferay.portal.PortalException,
92              com.liferay.portal.SystemException, java.rmi.RemoteException {
93          ExpandoTableService expandoTableService = ExpandoTableServiceFactory.getService();
94  
95          expandoTableService.deleteTable(tableId);
96      }
97  
98      public static void deleteTable(java.lang.String className,
99          java.lang.String name)
100         throws com.liferay.portal.PortalException,
101             com.liferay.portal.SystemException, java.rmi.RemoteException {
102         ExpandoTableService expandoTableService = ExpandoTableServiceFactory.getService();
103 
104         expandoTableService.deleteTable(className, name);
105     }
106 
107     public static void deleteTable(long classNameId, java.lang.String name)
108         throws com.liferay.portal.PortalException,
109             com.liferay.portal.SystemException, java.rmi.RemoteException {
110         ExpandoTableService expandoTableService = ExpandoTableServiceFactory.getService();
111 
112         expandoTableService.deleteTable(classNameId, name);
113     }
114 
115     public static void deleteTables(java.lang.String className)
116         throws com.liferay.portal.PortalException,
117             com.liferay.portal.SystemException, java.rmi.RemoteException {
118         ExpandoTableService expandoTableService = ExpandoTableServiceFactory.getService();
119 
120         expandoTableService.deleteTables(className);
121     }
122 
123     public static void deleteTables(long classNameId)
124         throws com.liferay.portal.PortalException,
125             com.liferay.portal.SystemException, java.rmi.RemoteException {
126         ExpandoTableService expandoTableService = ExpandoTableServiceFactory.getService();
127 
128         expandoTableService.deleteTables(classNameId);
129     }
130 
131     public static com.liferay.portlet.expando.model.ExpandoTable getDefaultTable(
132         java.lang.String className)
133         throws com.liferay.portal.PortalException,
134             com.liferay.portal.SystemException, java.rmi.RemoteException {
135         ExpandoTableService expandoTableService = ExpandoTableServiceFactory.getService();
136 
137         return expandoTableService.getDefaultTable(className);
138     }
139 
140     public static com.liferay.portlet.expando.model.ExpandoTable getDefaultTable(
141         long classNameId)
142         throws com.liferay.portal.PortalException,
143             com.liferay.portal.SystemException, java.rmi.RemoteException {
144         ExpandoTableService expandoTableService = ExpandoTableServiceFactory.getService();
145 
146         return expandoTableService.getDefaultTable(classNameId);
147     }
148 
149     public static com.liferay.portlet.expando.model.ExpandoTable getTable(
150         long tableId)
151         throws com.liferay.portal.PortalException,
152             com.liferay.portal.SystemException, java.rmi.RemoteException {
153         ExpandoTableService expandoTableService = ExpandoTableServiceFactory.getService();
154 
155         return expandoTableService.getTable(tableId);
156     }
157 
158     public static com.liferay.portlet.expando.model.ExpandoTable getTable(
159         java.lang.String className, java.lang.String name)
160         throws com.liferay.portal.PortalException,
161             com.liferay.portal.SystemException, java.rmi.RemoteException {
162         ExpandoTableService expandoTableService = ExpandoTableServiceFactory.getService();
163 
164         return expandoTableService.getTable(className, name);
165     }
166 
167     public static com.liferay.portlet.expando.model.ExpandoTable getTable(
168         long classNameId, java.lang.String name)
169         throws com.liferay.portal.PortalException,
170             com.liferay.portal.SystemException, java.rmi.RemoteException {
171         ExpandoTableService expandoTableService = ExpandoTableServiceFactory.getService();
172 
173         return expandoTableService.getTable(classNameId, name);
174     }
175 
176     public static java.util.List<com.liferay.portlet.expando.model.ExpandoTable> getTables(
177         java.lang.String className)
178         throws com.liferay.portal.PortalException,
179             com.liferay.portal.SystemException, java.rmi.RemoteException {
180         ExpandoTableService expandoTableService = ExpandoTableServiceFactory.getService();
181 
182         return expandoTableService.getTables(className);
183     }
184 
185     public static java.util.List<com.liferay.portlet.expando.model.ExpandoTable> getTables(
186         long classNameId)
187         throws com.liferay.portal.PortalException,
188             com.liferay.portal.SystemException, java.rmi.RemoteException {
189         ExpandoTableService expandoTableService = ExpandoTableServiceFactory.getService();
190 
191         return expandoTableService.getTables(classNameId);
192     }
193 
194     public static com.liferay.portlet.expando.model.ExpandoTable updateTable(
195         long tableId, java.lang.String name)
196         throws com.liferay.portal.PortalException,
197             com.liferay.portal.SystemException, java.rmi.RemoteException {
198         ExpandoTableService expandoTableService = ExpandoTableServiceFactory.getService();
199 
200         return expandoTableService.updateTable(tableId, name);
201     }
202 }