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="ExpandoColumnLocalServiceUtil.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.ExpandoColumnLocalService</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.ExpandoColumnLocalServiceFactory</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.ExpandoColumnLocalService
50   * @see com.liferay.portlet.expando.service.ExpandoColumnLocalServiceFactory
51   *
52   */
53  public class ExpandoColumnLocalServiceUtil {
54      public static com.liferay.portlet.expando.model.ExpandoColumn addExpandoColumn(
55          com.liferay.portlet.expando.model.ExpandoColumn expandoColumn)
56          throws com.liferay.portal.SystemException {
57          ExpandoColumnLocalService expandoColumnLocalService = ExpandoColumnLocalServiceFactory.getService();
58  
59          return expandoColumnLocalService.addExpandoColumn(expandoColumn);
60      }
61  
62      public static void deleteExpandoColumn(long columnId)
63          throws com.liferay.portal.PortalException,
64              com.liferay.portal.SystemException {
65          ExpandoColumnLocalService expandoColumnLocalService = ExpandoColumnLocalServiceFactory.getService();
66  
67          expandoColumnLocalService.deleteExpandoColumn(columnId);
68      }
69  
70      public static void deleteExpandoColumn(
71          com.liferay.portlet.expando.model.ExpandoColumn expandoColumn)
72          throws com.liferay.portal.SystemException {
73          ExpandoColumnLocalService expandoColumnLocalService = ExpandoColumnLocalServiceFactory.getService();
74  
75          expandoColumnLocalService.deleteExpandoColumn(expandoColumn);
76      }
77  
78      public static java.util.List<Object> dynamicQuery(
79          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
80          throws com.liferay.portal.SystemException {
81          ExpandoColumnLocalService expandoColumnLocalService = ExpandoColumnLocalServiceFactory.getService();
82  
83          return expandoColumnLocalService.dynamicQuery(dynamicQuery);
84      }
85  
86      public static java.util.List<Object> dynamicQuery(
87          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
88          int end) throws com.liferay.portal.SystemException {
89          ExpandoColumnLocalService expandoColumnLocalService = ExpandoColumnLocalServiceFactory.getService();
90  
91          return expandoColumnLocalService.dynamicQuery(dynamicQuery, start, end);
92      }
93  
94      public static com.liferay.portlet.expando.model.ExpandoColumn getExpandoColumn(
95          long columnId)
96          throws com.liferay.portal.PortalException,
97              com.liferay.portal.SystemException {
98          ExpandoColumnLocalService expandoColumnLocalService = ExpandoColumnLocalServiceFactory.getService();
99  
100         return expandoColumnLocalService.getExpandoColumn(columnId);
101     }
102 
103     public static com.liferay.portlet.expando.model.ExpandoColumn updateExpandoColumn(
104         com.liferay.portlet.expando.model.ExpandoColumn expandoColumn)
105         throws com.liferay.portal.SystemException {
106         ExpandoColumnLocalService expandoColumnLocalService = ExpandoColumnLocalServiceFactory.getService();
107 
108         return expandoColumnLocalService.updateExpandoColumn(expandoColumn);
109     }
110 
111     public static com.liferay.portlet.expando.model.ExpandoColumn addColumn(
112         long tableId, java.lang.String name, int type)
113         throws com.liferay.portal.PortalException,
114             com.liferay.portal.SystemException {
115         ExpandoColumnLocalService expandoColumnLocalService = ExpandoColumnLocalServiceFactory.getService();
116 
117         return expandoColumnLocalService.addColumn(tableId, name, type);
118     }
119 
120     public static void deleteColumn(long columnId)
121         throws com.liferay.portal.PortalException,
122             com.liferay.portal.SystemException {
123         ExpandoColumnLocalService expandoColumnLocalService = ExpandoColumnLocalServiceFactory.getService();
124 
125         expandoColumnLocalService.deleteColumn(columnId);
126     }
127 
128     public static void deleteColumn(long tableId, java.lang.String name)
129         throws com.liferay.portal.PortalException,
130             com.liferay.portal.SystemException {
131         ExpandoColumnLocalService expandoColumnLocalService = ExpandoColumnLocalServiceFactory.getService();
132 
133         expandoColumnLocalService.deleteColumn(tableId, name);
134     }
135 
136     public static void deleteColumn(java.lang.String className,
137         java.lang.String tableName, java.lang.String name)
138         throws com.liferay.portal.PortalException,
139             com.liferay.portal.SystemException {
140         ExpandoColumnLocalService expandoColumnLocalService = ExpandoColumnLocalServiceFactory.getService();
141 
142         expandoColumnLocalService.deleteColumn(className, tableName, name);
143     }
144 
145     public static void deleteColumn(long classNameId,
146         java.lang.String tableName, java.lang.String name)
147         throws com.liferay.portal.PortalException,
148             com.liferay.portal.SystemException {
149         ExpandoColumnLocalService expandoColumnLocalService = ExpandoColumnLocalServiceFactory.getService();
150 
151         expandoColumnLocalService.deleteColumn(classNameId, tableName, name);
152     }
153 
154     public static void deleteColumns(long tableId)
155         throws com.liferay.portal.PortalException,
156             com.liferay.portal.SystemException {
157         ExpandoColumnLocalService expandoColumnLocalService = ExpandoColumnLocalServiceFactory.getService();
158 
159         expandoColumnLocalService.deleteColumns(tableId);
160     }
161 
162     public static void deleteColumns(java.lang.String className,
163         java.lang.String tableName)
164         throws com.liferay.portal.PortalException,
165             com.liferay.portal.SystemException {
166         ExpandoColumnLocalService expandoColumnLocalService = ExpandoColumnLocalServiceFactory.getService();
167 
168         expandoColumnLocalService.deleteColumns(className, tableName);
169     }
170 
171     public static void deleteColumns(long classNameId,
172         java.lang.String tableName)
173         throws com.liferay.portal.PortalException,
174             com.liferay.portal.SystemException {
175         ExpandoColumnLocalService expandoColumnLocalService = ExpandoColumnLocalServiceFactory.getService();
176 
177         expandoColumnLocalService.deleteColumns(classNameId, tableName);
178     }
179 
180     public static com.liferay.portlet.expando.model.ExpandoColumn getColumn(
181         long columnId)
182         throws com.liferay.portal.PortalException,
183             com.liferay.portal.SystemException {
184         ExpandoColumnLocalService expandoColumnLocalService = ExpandoColumnLocalServiceFactory.getService();
185 
186         return expandoColumnLocalService.getColumn(columnId);
187     }
188 
189     public static com.liferay.portlet.expando.model.ExpandoColumn getColumn(
190         long tableId, java.lang.String name)
191         throws com.liferay.portal.PortalException,
192             com.liferay.portal.SystemException {
193         ExpandoColumnLocalService expandoColumnLocalService = ExpandoColumnLocalServiceFactory.getService();
194 
195         return expandoColumnLocalService.getColumn(tableId, name);
196     }
197 
198     public static com.liferay.portlet.expando.model.ExpandoColumn getColumn(
199         java.lang.String className, java.lang.String tableName,
200         java.lang.String name) throws com.liferay.portal.SystemException {
201         ExpandoColumnLocalService expandoColumnLocalService = ExpandoColumnLocalServiceFactory.getService();
202 
203         return expandoColumnLocalService.getColumn(className, tableName, name);
204     }
205 
206     public static com.liferay.portlet.expando.model.ExpandoColumn getColumn(
207         long classNameId, java.lang.String tableName, java.lang.String name)
208         throws com.liferay.portal.SystemException {
209         ExpandoColumnLocalService expandoColumnLocalService = ExpandoColumnLocalServiceFactory.getService();
210 
211         return expandoColumnLocalService.getColumn(classNameId, tableName, name);
212     }
213 
214     public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getColumns(
215         long tableId) throws com.liferay.portal.SystemException {
216         ExpandoColumnLocalService expandoColumnLocalService = ExpandoColumnLocalServiceFactory.getService();
217 
218         return expandoColumnLocalService.getColumns(tableId);
219     }
220 
221     public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getColumns(
222         java.lang.String className, java.lang.String tableName)
223         throws com.liferay.portal.SystemException {
224         ExpandoColumnLocalService expandoColumnLocalService = ExpandoColumnLocalServiceFactory.getService();
225 
226         return expandoColumnLocalService.getColumns(className, tableName);
227     }
228 
229     public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getColumns(
230         long classNameId, java.lang.String tableName)
231         throws com.liferay.portal.SystemException {
232         ExpandoColumnLocalService expandoColumnLocalService = ExpandoColumnLocalServiceFactory.getService();
233 
234         return expandoColumnLocalService.getColumns(classNameId, tableName);
235     }
236 
237     public static int getColumnsCount(long tableId)
238         throws com.liferay.portal.SystemException {
239         ExpandoColumnLocalService expandoColumnLocalService = ExpandoColumnLocalServiceFactory.getService();
240 
241         return expandoColumnLocalService.getColumnsCount(tableId);
242     }
243 
244     public static int getColumnsCount(java.lang.String className,
245         java.lang.String tableName) throws com.liferay.portal.SystemException {
246         ExpandoColumnLocalService expandoColumnLocalService = ExpandoColumnLocalServiceFactory.getService();
247 
248         return expandoColumnLocalService.getColumnsCount(className, tableName);
249     }
250 
251     public static int getColumnsCount(long classNameId,
252         java.lang.String tableName) throws com.liferay.portal.SystemException {
253         ExpandoColumnLocalService expandoColumnLocalService = ExpandoColumnLocalServiceFactory.getService();
254 
255         return expandoColumnLocalService.getColumnsCount(classNameId, tableName);
256     }
257 
258     public static com.liferay.portlet.expando.model.ExpandoColumn getDefaultTableColumn(
259         java.lang.String className, java.lang.String name)
260         throws com.liferay.portal.SystemException {
261         ExpandoColumnLocalService expandoColumnLocalService = ExpandoColumnLocalServiceFactory.getService();
262 
263         return expandoColumnLocalService.getDefaultTableColumn(className, name);
264     }
265 
266     public static com.liferay.portlet.expando.model.ExpandoColumn getDefaultTableColumn(
267         long classNameId, java.lang.String name)
268         throws com.liferay.portal.SystemException {
269         ExpandoColumnLocalService expandoColumnLocalService = ExpandoColumnLocalServiceFactory.getService();
270 
271         return expandoColumnLocalService.getDefaultTableColumn(classNameId, name);
272     }
273 
274     public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getDefaultTableColumns(
275         java.lang.String className) throws com.liferay.portal.SystemException {
276         ExpandoColumnLocalService expandoColumnLocalService = ExpandoColumnLocalServiceFactory.getService();
277 
278         return expandoColumnLocalService.getDefaultTableColumns(className);
279     }
280 
281     public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getDefaultTableColumns(
282         long classNameId) throws com.liferay.portal.SystemException {
283         ExpandoColumnLocalService expandoColumnLocalService = ExpandoColumnLocalServiceFactory.getService();
284 
285         return expandoColumnLocalService.getDefaultTableColumns(classNameId);
286     }
287 
288     public static int getDefaultTableColumnsCount(java.lang.String className)
289         throws com.liferay.portal.SystemException {
290         ExpandoColumnLocalService expandoColumnLocalService = ExpandoColumnLocalServiceFactory.getService();
291 
292         return expandoColumnLocalService.getDefaultTableColumnsCount(className);
293     }
294 
295     public static int getDefaultTableColumnsCount(long classNameId)
296         throws com.liferay.portal.SystemException {
297         ExpandoColumnLocalService expandoColumnLocalService = ExpandoColumnLocalServiceFactory.getService();
298 
299         return expandoColumnLocalService.getDefaultTableColumnsCount(classNameId);
300     }
301 
302     public static com.liferay.portlet.expando.model.ExpandoColumn updateColumn(
303         long columnId, java.lang.String name, int type)
304         throws com.liferay.portal.PortalException,
305             com.liferay.portal.SystemException {
306         ExpandoColumnLocalService expandoColumnLocalService = ExpandoColumnLocalServiceFactory.getService();
307 
308         return expandoColumnLocalService.updateColumn(columnId, name, type);
309     }
310 }