1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
12   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
13   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
14   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
15   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
16   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
17   * SOFTWARE.
18   */
19  
20  package com.liferay.portlet.expando.service;
21  
22  
23  /**
24   * <a href="ExpandoColumnLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
25   *
26   * <p>
27   * ServiceBuilder generated this class. Modifications in this class will be
28   * overwritten the next time is generated.
29   * </p>
30   *
31   * <p>
32   * This class provides static methods for the
33   * <code>com.liferay.portlet.expando.service.ExpandoColumnLocalService</code>
34   * bean. The static methods of this class calls the same methods of the bean
35   * instance. It's convenient to be able to just write one line to call a method
36   * on a bean instead of writing a lookup call and a method call.
37   * </p>
38   *
39   * @author Brian Wing Shun Chan
40   *
41   * @see com.liferay.portlet.expando.service.ExpandoColumnLocalService
42   *
43   */
44  public class ExpandoColumnLocalServiceUtil {
45      public static com.liferay.portlet.expando.model.ExpandoColumn addExpandoColumn(
46          com.liferay.portlet.expando.model.ExpandoColumn expandoColumn)
47          throws com.liferay.portal.SystemException {
48          return getService().addExpandoColumn(expandoColumn);
49      }
50  
51      public static com.liferay.portlet.expando.model.ExpandoColumn createExpandoColumn(
52          long columnId) {
53          return getService().createExpandoColumn(columnId);
54      }
55  
56      public static void deleteExpandoColumn(long columnId)
57          throws com.liferay.portal.PortalException,
58              com.liferay.portal.SystemException {
59          getService().deleteExpandoColumn(columnId);
60      }
61  
62      public static void deleteExpandoColumn(
63          com.liferay.portlet.expando.model.ExpandoColumn expandoColumn)
64          throws com.liferay.portal.SystemException {
65          getService().deleteExpandoColumn(expandoColumn);
66      }
67  
68      public static java.util.List<Object> dynamicQuery(
69          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
70          throws com.liferay.portal.SystemException {
71          return getService().dynamicQuery(dynamicQuery);
72      }
73  
74      public static java.util.List<Object> dynamicQuery(
75          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
76          int end) throws com.liferay.portal.SystemException {
77          return getService().dynamicQuery(dynamicQuery, start, end);
78      }
79  
80      public static com.liferay.portlet.expando.model.ExpandoColumn getExpandoColumn(
81          long columnId)
82          throws com.liferay.portal.PortalException,
83              com.liferay.portal.SystemException {
84          return getService().getExpandoColumn(columnId);
85      }
86  
87      public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getExpandoColumns(
88          int start, int end) throws com.liferay.portal.SystemException {
89          return getService().getExpandoColumns(start, end);
90      }
91  
92      public static int getExpandoColumnsCount()
93          throws com.liferay.portal.SystemException {
94          return getService().getExpandoColumnsCount();
95      }
96  
97      public static com.liferay.portlet.expando.model.ExpandoColumn updateExpandoColumn(
98          com.liferay.portlet.expando.model.ExpandoColumn expandoColumn)
99          throws com.liferay.portal.SystemException {
100         return getService().updateExpandoColumn(expandoColumn);
101     }
102 
103     public static com.liferay.portlet.expando.model.ExpandoColumn updateExpandoColumn(
104         com.liferay.portlet.expando.model.ExpandoColumn expandoColumn,
105         boolean merge) throws com.liferay.portal.SystemException {
106         return getService().updateExpandoColumn(expandoColumn, merge);
107     }
108 
109     public static com.liferay.portlet.expando.model.ExpandoColumn addColumn(
110         long tableId, java.lang.String name, int type)
111         throws com.liferay.portal.PortalException,
112             com.liferay.portal.SystemException {
113         return getService().addColumn(tableId, name, type);
114     }
115 
116     public static com.liferay.portlet.expando.model.ExpandoColumn addColumn(
117         long tableId, java.lang.String name, int type,
118         java.lang.Object defaultData)
119         throws com.liferay.portal.PortalException,
120             com.liferay.portal.SystemException {
121         return getService().addColumn(tableId, name, type, defaultData);
122     }
123 
124     public static void deleteColumn(long columnId)
125         throws com.liferay.portal.PortalException,
126             com.liferay.portal.SystemException {
127         getService().deleteColumn(columnId);
128     }
129 
130     public static void deleteColumn(long tableId, java.lang.String name)
131         throws com.liferay.portal.PortalException,
132             com.liferay.portal.SystemException {
133         getService().deleteColumn(tableId, name);
134     }
135 
136     public static void deleteColumn(long classNameId,
137         java.lang.String tableName, java.lang.String name)
138         throws com.liferay.portal.PortalException,
139             com.liferay.portal.SystemException {
140         getService().deleteColumn(classNameId, tableName, name);
141     }
142 
143     public static void deleteColumn(java.lang.String className,
144         java.lang.String tableName, java.lang.String name)
145         throws com.liferay.portal.PortalException,
146             com.liferay.portal.SystemException {
147         getService().deleteColumn(className, tableName, name);
148     }
149 
150     public static void deleteColumns(long tableId)
151         throws com.liferay.portal.PortalException,
152             com.liferay.portal.SystemException {
153         getService().deleteColumns(tableId);
154     }
155 
156     public static void deleteColumns(long classNameId,
157         java.lang.String tableName)
158         throws com.liferay.portal.PortalException,
159             com.liferay.portal.SystemException {
160         getService().deleteColumns(classNameId, tableName);
161     }
162 
163     public static void deleteColumns(java.lang.String className,
164         java.lang.String tableName)
165         throws com.liferay.portal.PortalException,
166             com.liferay.portal.SystemException {
167         getService().deleteColumns(className, tableName);
168     }
169 
170     public static com.liferay.portlet.expando.model.ExpandoColumn getColumn(
171         long columnId)
172         throws com.liferay.portal.PortalException,
173             com.liferay.portal.SystemException {
174         return getService().getColumn(columnId);
175     }
176 
177     public static com.liferay.portlet.expando.model.ExpandoColumn getColumn(
178         long tableId, java.lang.String name)
179         throws com.liferay.portal.PortalException,
180             com.liferay.portal.SystemException {
181         return getService().getColumn(tableId, name);
182     }
183 
184     public static com.liferay.portlet.expando.model.ExpandoColumn getColumn(
185         long classNameId, java.lang.String tableName, java.lang.String name)
186         throws com.liferay.portal.SystemException {
187         return getService().getColumn(classNameId, tableName, name);
188     }
189 
190     public static com.liferay.portlet.expando.model.ExpandoColumn getColumn(
191         java.lang.String className, java.lang.String tableName,
192         java.lang.String name) throws com.liferay.portal.SystemException {
193         return getService().getColumn(className, tableName, name);
194     }
195 
196     public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getColumns(
197         long tableId) throws com.liferay.portal.SystemException {
198         return getService().getColumns(tableId);
199     }
200 
201     public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getColumns(
202         long classNameId, java.lang.String tableName)
203         throws com.liferay.portal.SystemException {
204         return getService().getColumns(classNameId, tableName);
205     }
206 
207     public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getColumns(
208         java.lang.String className, java.lang.String tableName)
209         throws com.liferay.portal.SystemException {
210         return getService().getColumns(className, tableName);
211     }
212 
213     public static int getColumnsCount(long tableId)
214         throws com.liferay.portal.SystemException {
215         return getService().getColumnsCount(tableId);
216     }
217 
218     public static int getColumnsCount(long classNameId,
219         java.lang.String tableName) throws com.liferay.portal.SystemException {
220         return getService().getColumnsCount(classNameId, tableName);
221     }
222 
223     public static int getColumnsCount(java.lang.String className,
224         java.lang.String tableName) throws com.liferay.portal.SystemException {
225         return getService().getColumnsCount(className, tableName);
226     }
227 
228     public static com.liferay.portlet.expando.model.ExpandoColumn getDefaultTableColumn(
229         long classNameId, java.lang.String name)
230         throws com.liferay.portal.SystemException {
231         return getService().getDefaultTableColumn(classNameId, name);
232     }
233 
234     public static com.liferay.portlet.expando.model.ExpandoColumn getDefaultTableColumn(
235         java.lang.String className, java.lang.String name)
236         throws com.liferay.portal.SystemException {
237         return getService().getDefaultTableColumn(className, name);
238     }
239 
240     public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getDefaultTableColumns(
241         long classNameId) throws com.liferay.portal.SystemException {
242         return getService().getDefaultTableColumns(classNameId);
243     }
244 
245     public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getDefaultTableColumns(
246         java.lang.String className) throws com.liferay.portal.SystemException {
247         return getService().getDefaultTableColumns(className);
248     }
249 
250     public static int getDefaultTableColumnsCount(long classNameId)
251         throws com.liferay.portal.SystemException {
252         return getService().getDefaultTableColumnsCount(classNameId);
253     }
254 
255     public static int getDefaultTableColumnsCount(java.lang.String className)
256         throws com.liferay.portal.SystemException {
257         return getService().getDefaultTableColumnsCount(className);
258     }
259 
260     public static com.liferay.portlet.expando.model.ExpandoColumn updateColumn(
261         long columnId, java.lang.String name, int type)
262         throws com.liferay.portal.PortalException,
263             com.liferay.portal.SystemException {
264         return getService().updateColumn(columnId, name, type);
265     }
266 
267     public static com.liferay.portlet.expando.model.ExpandoColumn updateColumn(
268         long columnId, java.lang.String name, int type,
269         java.lang.Object defaultData)
270         throws com.liferay.portal.PortalException,
271             com.liferay.portal.SystemException {
272         return getService().updateColumn(columnId, name, type, defaultData);
273     }
274 
275     public static com.liferay.portlet.expando.model.ExpandoColumn updateTypeSettings(
276         long columnId, java.lang.String typeSettings)
277         throws com.liferay.portal.PortalException,
278             com.liferay.portal.SystemException {
279         return getService().updateTypeSettings(columnId, typeSettings);
280     }
281 
282     public static ExpandoColumnLocalService getService() {
283         if (_service == null) {
284             throw new RuntimeException("ExpandoColumnLocalService is not set");
285         }
286 
287         return _service;
288     }
289 
290     public void setService(ExpandoColumnLocalService service) {
291         _service = service;
292     }
293 
294     private static ExpandoColumnLocalService _service;
295 }