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