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