1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    *
5    *
6    *
7    * The contents of this file are subject to the terms of the Liferay Enterprise
8    * Subscription License ("License"). You may not use this file except in
9    * compliance with the License. You can obtain a copy of the License by
10   * contacting Liferay, Inc. See the License for the specific language governing
11   * permissions and limitations under the License, including but not limited to
12   * distribution rights 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   * {@link ExpandoColumnLocalService} bean. The static methods of
37   * this class calls the same methods of the bean instance. It's convenient to be
38   * able to just write one line to call a method on a bean instead of writing a
39   * lookup call and a method call.
40   * </p>
41   *
42   * @author    Brian Wing Shun Chan
43   * @see       ExpandoColumnLocalService
44   * @generated
45   */
46  public class ExpandoColumnLocalServiceUtil {
47      public static com.liferay.portlet.expando.model.ExpandoColumn addExpandoColumn(
48          com.liferay.portlet.expando.model.ExpandoColumn expandoColumn)
49          throws com.liferay.portal.SystemException {
50          return getService().addExpandoColumn(expandoColumn);
51      }
52  
53      public static com.liferay.portlet.expando.model.ExpandoColumn createExpandoColumn(
54          long columnId) {
55          return getService().createExpandoColumn(columnId);
56      }
57  
58      public static void deleteExpandoColumn(long columnId)
59          throws com.liferay.portal.PortalException,
60              com.liferay.portal.SystemException {
61          getService().deleteExpandoColumn(columnId);
62      }
63  
64      public static void deleteExpandoColumn(
65          com.liferay.portlet.expando.model.ExpandoColumn expandoColumn)
66          throws com.liferay.portal.SystemException {
67          getService().deleteExpandoColumn(expandoColumn);
68      }
69  
70      public static java.util.List<Object> dynamicQuery(
71          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
72          throws com.liferay.portal.SystemException {
73          return getService().dynamicQuery(dynamicQuery);
74      }
75  
76      public static java.util.List<Object> dynamicQuery(
77          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
78          int end) throws com.liferay.portal.SystemException {
79          return getService().dynamicQuery(dynamicQuery, start, end);
80      }
81  
82      public static com.liferay.portlet.expando.model.ExpandoColumn getExpandoColumn(
83          long columnId)
84          throws com.liferay.portal.PortalException,
85              com.liferay.portal.SystemException {
86          return getService().getExpandoColumn(columnId);
87      }
88  
89      public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getExpandoColumns(
90          int start, int end) throws com.liferay.portal.SystemException {
91          return getService().getExpandoColumns(start, end);
92      }
93  
94      public static int getExpandoColumnsCount()
95          throws com.liferay.portal.SystemException {
96          return getService().getExpandoColumnsCount();
97      }
98  
99      public static com.liferay.portlet.expando.model.ExpandoColumn updateExpandoColumn(
100         com.liferay.portlet.expando.model.ExpandoColumn expandoColumn)
101         throws com.liferay.portal.SystemException {
102         return getService().updateExpandoColumn(expandoColumn);
103     }
104 
105     public static com.liferay.portlet.expando.model.ExpandoColumn updateExpandoColumn(
106         com.liferay.portlet.expando.model.ExpandoColumn expandoColumn,
107         boolean merge) throws com.liferay.portal.SystemException {
108         return getService().updateExpandoColumn(expandoColumn, merge);
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         return getService().addColumn(tableId, name, type);
116     }
117 
118     public static void deleteColumn(long columnId)
119         throws com.liferay.portal.PortalException,
120             com.liferay.portal.SystemException {
121         getService().deleteColumn(columnId);
122     }
123 
124     public static void deleteColumn(long tableId, java.lang.String name)
125         throws com.liferay.portal.PortalException,
126             com.liferay.portal.SystemException {
127         getService().deleteColumn(tableId, name);
128     }
129 
130     public static void deleteColumn(long classNameId,
131         java.lang.String tableName, java.lang.String name)
132         throws com.liferay.portal.PortalException,
133             com.liferay.portal.SystemException {
134         getService().deleteColumn(classNameId, tableName, name);
135     }
136 
137     public static void deleteColumn(java.lang.String className,
138         java.lang.String tableName, java.lang.String name)
139         throws com.liferay.portal.PortalException,
140             com.liferay.portal.SystemException {
141         getService().deleteColumn(className, tableName, name);
142     }
143 
144     public static void deleteColumns(long tableId)
145         throws com.liferay.portal.PortalException,
146             com.liferay.portal.SystemException {
147         getService().deleteColumns(tableId);
148     }
149 
150     public static void deleteColumns(long classNameId,
151         java.lang.String tableName)
152         throws com.liferay.portal.PortalException,
153             com.liferay.portal.SystemException {
154         getService().deleteColumns(classNameId, tableName);
155     }
156 
157     public static void deleteColumns(java.lang.String className,
158         java.lang.String tableName)
159         throws com.liferay.portal.PortalException,
160             com.liferay.portal.SystemException {
161         getService().deleteColumns(className, tableName);
162     }
163 
164     public static com.liferay.portlet.expando.model.ExpandoColumn getColumn(
165         long columnId)
166         throws com.liferay.portal.PortalException,
167             com.liferay.portal.SystemException {
168         return getService().getColumn(columnId);
169     }
170 
171     public static com.liferay.portlet.expando.model.ExpandoColumn getColumn(
172         long tableId, java.lang.String name)
173         throws com.liferay.portal.PortalException,
174             com.liferay.portal.SystemException {
175         return getService().getColumn(tableId, name);
176     }
177 
178     public static com.liferay.portlet.expando.model.ExpandoColumn getColumn(
179         long classNameId, java.lang.String tableName, java.lang.String name)
180         throws com.liferay.portal.SystemException {
181         return getService().getColumn(classNameId, tableName, name);
182     }
183 
184     public static com.liferay.portlet.expando.model.ExpandoColumn getColumn(
185         java.lang.String className, java.lang.String tableName,
186         java.lang.String name) throws com.liferay.portal.SystemException {
187         return getService().getColumn(className, tableName, name);
188     }
189 
190     public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getColumns(
191         long tableId) throws com.liferay.portal.SystemException {
192         return getService().getColumns(tableId);
193     }
194 
195     public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getColumns(
196         long classNameId, java.lang.String tableName)
197         throws com.liferay.portal.SystemException {
198         return getService().getColumns(classNameId, tableName);
199     }
200 
201     public static java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getColumns(
202         java.lang.String className, java.lang.String tableName)
203         throws com.liferay.portal.SystemException {
204         return getService().getColumns(className, tableName);
205     }
206 
207     public static int getColumnsCount(long tableId)
208         throws com.liferay.portal.SystemException {
209         return getService().getColumnsCount(tableId);
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 int getColumnsCount(java.lang.String className,
218         java.lang.String tableName) throws com.liferay.portal.SystemException {
219         return getService().getColumnsCount(className, tableName);
220     }
221 
222     public static com.liferay.portlet.expando.model.ExpandoColumn getDefaultTableColumn(
223         long classNameId, java.lang.String name)
224         throws com.liferay.portal.SystemException {
225         return getService().getDefaultTableColumn(classNameId, name);
226     }
227 
228     public static com.liferay.portlet.expando.model.ExpandoColumn getDefaultTableColumn(
229         java.lang.String className, java.lang.String name)
230         throws com.liferay.portal.SystemException {
231         return getService().getDefaultTableColumn(className, name);
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 java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getDefaultTableColumns(
240         java.lang.String className) throws com.liferay.portal.SystemException {
241         return getService().getDefaultTableColumns(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 int getDefaultTableColumnsCount(java.lang.String className)
250         throws com.liferay.portal.SystemException {
251         return getService().getDefaultTableColumnsCount(className);
252     }
253 
254     public static com.liferay.portlet.expando.model.ExpandoColumn updateColumn(
255         long columnId, java.lang.String name, int type)
256         throws com.liferay.portal.PortalException,
257             com.liferay.portal.SystemException {
258         return getService().updateColumn(columnId, name, type);
259     }
260 
261     public static ExpandoColumnLocalService getService() {
262         if (_service == null) {
263             throw new RuntimeException("ExpandoColumnLocalService is not set");
264         }
265 
266         return _service;
267     }
268 
269     public void setService(ExpandoColumnLocalService service) {
270         _service = service;
271     }
272 
273     private static ExpandoColumnLocalService _service;
274 }