001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.expando.service;
016    
017    /**
018     * <p>
019     * This class is a wrapper for {@link ExpandoColumnLocalService}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       ExpandoColumnLocalService
024     * @generated
025     */
026    public class ExpandoColumnLocalServiceWrapper
027            implements ExpandoColumnLocalService {
028            public ExpandoColumnLocalServiceWrapper(
029                    ExpandoColumnLocalService expandoColumnLocalService) {
030                    _expandoColumnLocalService = expandoColumnLocalService;
031            }
032    
033            /**
034            * Adds the expando column to the database. Also notifies the appropriate model listeners.
035            *
036            * @param expandoColumn the expando column to add
037            * @return the expando column that was added
038            * @throws SystemException if a system exception occurred
039            */
040            public com.liferay.portlet.expando.model.ExpandoColumn addExpandoColumn(
041                    com.liferay.portlet.expando.model.ExpandoColumn expandoColumn)
042                    throws com.liferay.portal.kernel.exception.SystemException {
043                    return _expandoColumnLocalService.addExpandoColumn(expandoColumn);
044            }
045    
046            /**
047            * Creates a new expando column with the primary key. Does not add the expando column to the database.
048            *
049            * @param columnId the primary key for the new expando column
050            * @return the new expando column
051            */
052            public com.liferay.portlet.expando.model.ExpandoColumn createExpandoColumn(
053                    long columnId) {
054                    return _expandoColumnLocalService.createExpandoColumn(columnId);
055            }
056    
057            /**
058            * Deletes the expando column with the primary key from the database. Also notifies the appropriate model listeners.
059            *
060            * @param columnId the primary key of the expando column to delete
061            * @throws PortalException if a expando column with the primary key could not be found
062            * @throws SystemException if a system exception occurred
063            */
064            public void deleteExpandoColumn(long columnId)
065                    throws com.liferay.portal.kernel.exception.PortalException,
066                            com.liferay.portal.kernel.exception.SystemException {
067                    _expandoColumnLocalService.deleteExpandoColumn(columnId);
068            }
069    
070            /**
071            * Deletes the expando column from the database. Also notifies the appropriate model listeners.
072            *
073            * @param expandoColumn the expando column to delete
074            * @throws SystemException if a system exception occurred
075            */
076            public void deleteExpandoColumn(
077                    com.liferay.portlet.expando.model.ExpandoColumn expandoColumn)
078                    throws com.liferay.portal.kernel.exception.SystemException {
079                    _expandoColumnLocalService.deleteExpandoColumn(expandoColumn);
080            }
081    
082            /**
083            * Performs a dynamic query on the database and returns the matching rows.
084            *
085            * @param dynamicQuery the dynamic query to search with
086            * @return the matching rows
087            * @throws SystemException if a system exception occurred
088            */
089            @SuppressWarnings("rawtypes")
090            public java.util.List dynamicQuery(
091                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
092                    throws com.liferay.portal.kernel.exception.SystemException {
093                    return _expandoColumnLocalService.dynamicQuery(dynamicQuery);
094            }
095    
096            /**
097            * Performs a dynamic query on the database and returns a range of the matching rows.
098            *
099            * <p>
100            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
101            * </p>
102            *
103            * @param dynamicQuery the dynamic query to search with
104            * @param start the lower bound of the range of model instances to return
105            * @param end the upper bound of the range of model instances to return (not inclusive)
106            * @return the range of matching rows
107            * @throws SystemException if a system exception occurred
108            */
109            @SuppressWarnings("rawtypes")
110            public java.util.List dynamicQuery(
111                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
112                    int end) throws com.liferay.portal.kernel.exception.SystemException {
113                    return _expandoColumnLocalService.dynamicQuery(dynamicQuery, start, end);
114            }
115    
116            /**
117            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
118            *
119            * <p>
120            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
121            * </p>
122            *
123            * @param dynamicQuery the dynamic query to search with
124            * @param start the lower bound of the range of model instances to return
125            * @param end the upper bound of the range of model instances to return (not inclusive)
126            * @param orderByComparator the comparator to order the results by
127            * @return the ordered range of matching rows
128            * @throws SystemException if a system exception occurred
129            */
130            @SuppressWarnings("rawtypes")
131            public java.util.List dynamicQuery(
132                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
133                    int end,
134                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
135                    throws com.liferay.portal.kernel.exception.SystemException {
136                    return _expandoColumnLocalService.dynamicQuery(dynamicQuery, start,
137                            end, orderByComparator);
138            }
139    
140            /**
141            * Counts the number of rows that match the dynamic query.
142            *
143            * @param dynamicQuery the dynamic query to search with
144            * @return the number of rows that match the dynamic query
145            * @throws SystemException if a system exception occurred
146            */
147            public long dynamicQueryCount(
148                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
149                    throws com.liferay.portal.kernel.exception.SystemException {
150                    return _expandoColumnLocalService.dynamicQueryCount(dynamicQuery);
151            }
152    
153            /**
154            * Gets the expando column with the primary key.
155            *
156            * @param columnId the primary key of the expando column to get
157            * @return the expando column
158            * @throws PortalException if a expando column with the primary key could not be found
159            * @throws SystemException if a system exception occurred
160            */
161            public com.liferay.portlet.expando.model.ExpandoColumn getExpandoColumn(
162                    long columnId)
163                    throws com.liferay.portal.kernel.exception.PortalException,
164                            com.liferay.portal.kernel.exception.SystemException {
165                    return _expandoColumnLocalService.getExpandoColumn(columnId);
166            }
167    
168            /**
169            * Gets a range of all the expando columns.
170            *
171            * <p>
172            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
173            * </p>
174            *
175            * @param start the lower bound of the range of expando columns to return
176            * @param end the upper bound of the range of expando columns to return (not inclusive)
177            * @return the range of expando columns
178            * @throws SystemException if a system exception occurred
179            */
180            public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getExpandoColumns(
181                    int start, int end)
182                    throws com.liferay.portal.kernel.exception.SystemException {
183                    return _expandoColumnLocalService.getExpandoColumns(start, end);
184            }
185    
186            /**
187            * Gets the number of expando columns.
188            *
189            * @return the number of expando columns
190            * @throws SystemException if a system exception occurred
191            */
192            public int getExpandoColumnsCount()
193                    throws com.liferay.portal.kernel.exception.SystemException {
194                    return _expandoColumnLocalService.getExpandoColumnsCount();
195            }
196    
197            /**
198            * Updates the expando column in the database. Also notifies the appropriate model listeners.
199            *
200            * @param expandoColumn the expando column to update
201            * @return the expando column that was updated
202            * @throws SystemException if a system exception occurred
203            */
204            public com.liferay.portlet.expando.model.ExpandoColumn updateExpandoColumn(
205                    com.liferay.portlet.expando.model.ExpandoColumn expandoColumn)
206                    throws com.liferay.portal.kernel.exception.SystemException {
207                    return _expandoColumnLocalService.updateExpandoColumn(expandoColumn);
208            }
209    
210            /**
211            * Updates the expando column in the database. Also notifies the appropriate model listeners.
212            *
213            * @param expandoColumn the expando column to update
214            * @param merge whether to merge the expando column with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation.
215            * @return the expando column that was updated
216            * @throws SystemException if a system exception occurred
217            */
218            public com.liferay.portlet.expando.model.ExpandoColumn updateExpandoColumn(
219                    com.liferay.portlet.expando.model.ExpandoColumn expandoColumn,
220                    boolean merge)
221                    throws com.liferay.portal.kernel.exception.SystemException {
222                    return _expandoColumnLocalService.updateExpandoColumn(expandoColumn,
223                            merge);
224            }
225    
226            public com.liferay.portlet.expando.model.ExpandoColumn addColumn(
227                    long tableId, java.lang.String name, int type)
228                    throws com.liferay.portal.kernel.exception.PortalException,
229                            com.liferay.portal.kernel.exception.SystemException {
230                    return _expandoColumnLocalService.addColumn(tableId, name, type);
231            }
232    
233            public com.liferay.portlet.expando.model.ExpandoColumn addColumn(
234                    long tableId, java.lang.String name, int type,
235                    java.lang.Object defaultData)
236                    throws com.liferay.portal.kernel.exception.PortalException,
237                            com.liferay.portal.kernel.exception.SystemException {
238                    return _expandoColumnLocalService.addColumn(tableId, name, type,
239                            defaultData);
240            }
241    
242            public void deleteColumn(
243                    com.liferay.portlet.expando.model.ExpandoColumn column)
244                    throws com.liferay.portal.kernel.exception.SystemException {
245                    _expandoColumnLocalService.deleteColumn(column);
246            }
247    
248            public void deleteColumn(long columnId)
249                    throws com.liferay.portal.kernel.exception.PortalException,
250                            com.liferay.portal.kernel.exception.SystemException {
251                    _expandoColumnLocalService.deleteColumn(columnId);
252            }
253    
254            public void deleteColumn(long companyId, long classNameId,
255                    java.lang.String tableName, java.lang.String name)
256                    throws com.liferay.portal.kernel.exception.PortalException,
257                            com.liferay.portal.kernel.exception.SystemException {
258                    _expandoColumnLocalService.deleteColumn(companyId, classNameId,
259                            tableName, name);
260            }
261    
262            public void deleteColumn(long tableId, java.lang.String name)
263                    throws com.liferay.portal.kernel.exception.PortalException,
264                            com.liferay.portal.kernel.exception.SystemException {
265                    _expandoColumnLocalService.deleteColumn(tableId, name);
266            }
267    
268            public void deleteColumn(long companyId, java.lang.String className,
269                    java.lang.String tableName, java.lang.String name)
270                    throws com.liferay.portal.kernel.exception.PortalException,
271                            com.liferay.portal.kernel.exception.SystemException {
272                    _expandoColumnLocalService.deleteColumn(companyId, className,
273                            tableName, name);
274            }
275    
276            public void deleteColumns(long tableId)
277                    throws com.liferay.portal.kernel.exception.SystemException {
278                    _expandoColumnLocalService.deleteColumns(tableId);
279            }
280    
281            public void deleteColumns(long companyId, long classNameId,
282                    java.lang.String tableName)
283                    throws com.liferay.portal.kernel.exception.PortalException,
284                            com.liferay.portal.kernel.exception.SystemException {
285                    _expandoColumnLocalService.deleteColumns(companyId, classNameId,
286                            tableName);
287            }
288    
289            public void deleteColumns(long companyId, java.lang.String className,
290                    java.lang.String tableName)
291                    throws com.liferay.portal.kernel.exception.PortalException,
292                            com.liferay.portal.kernel.exception.SystemException {
293                    _expandoColumnLocalService.deleteColumns(companyId, className, tableName);
294            }
295    
296            public com.liferay.portlet.expando.model.ExpandoColumn getColumn(
297                    long columnId)
298                    throws com.liferay.portal.kernel.exception.PortalException,
299                            com.liferay.portal.kernel.exception.SystemException {
300                    return _expandoColumnLocalService.getColumn(columnId);
301            }
302    
303            public com.liferay.portlet.expando.model.ExpandoColumn getColumn(
304                    long companyId, long classNameId, java.lang.String tableName,
305                    java.lang.String name)
306                    throws com.liferay.portal.kernel.exception.SystemException {
307                    return _expandoColumnLocalService.getColumn(companyId, classNameId,
308                            tableName, name);
309            }
310    
311            public com.liferay.portlet.expando.model.ExpandoColumn getColumn(
312                    long tableId, java.lang.String name)
313                    throws com.liferay.portal.kernel.exception.PortalException,
314                            com.liferay.portal.kernel.exception.SystemException {
315                    return _expandoColumnLocalService.getColumn(tableId, name);
316            }
317    
318            public com.liferay.portlet.expando.model.ExpandoColumn getColumn(
319                    long companyId, java.lang.String className, java.lang.String tableName,
320                    java.lang.String name)
321                    throws com.liferay.portal.kernel.exception.SystemException {
322                    return _expandoColumnLocalService.getColumn(companyId, className,
323                            tableName, name);
324            }
325    
326            public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getColumns(
327                    long tableId)
328                    throws com.liferay.portal.kernel.exception.SystemException {
329                    return _expandoColumnLocalService.getColumns(tableId);
330            }
331    
332            public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getColumns(
333                    long companyId, long classNameId, java.lang.String tableName)
334                    throws com.liferay.portal.kernel.exception.SystemException {
335                    return _expandoColumnLocalService.getColumns(companyId, classNameId,
336                            tableName);
337            }
338    
339            public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getColumns(
340                    long companyId, java.lang.String className, java.lang.String tableName)
341                    throws com.liferay.portal.kernel.exception.SystemException {
342                    return _expandoColumnLocalService.getColumns(companyId, className,
343                            tableName);
344            }
345    
346            public int getColumnsCount(long tableId)
347                    throws com.liferay.portal.kernel.exception.SystemException {
348                    return _expandoColumnLocalService.getColumnsCount(tableId);
349            }
350    
351            public int getColumnsCount(long companyId, long classNameId,
352                    java.lang.String tableName)
353                    throws com.liferay.portal.kernel.exception.SystemException {
354                    return _expandoColumnLocalService.getColumnsCount(companyId,
355                            classNameId, tableName);
356            }
357    
358            public int getColumnsCount(long companyId, java.lang.String className,
359                    java.lang.String tableName)
360                    throws com.liferay.portal.kernel.exception.SystemException {
361                    return _expandoColumnLocalService.getColumnsCount(companyId, className,
362                            tableName);
363            }
364    
365            public com.liferay.portlet.expando.model.ExpandoColumn getDefaultTableColumn(
366                    long companyId, long classNameId, java.lang.String name)
367                    throws com.liferay.portal.kernel.exception.SystemException {
368                    return _expandoColumnLocalService.getDefaultTableColumn(companyId,
369                            classNameId, name);
370            }
371    
372            public com.liferay.portlet.expando.model.ExpandoColumn getDefaultTableColumn(
373                    long companyId, java.lang.String className, java.lang.String name)
374                    throws com.liferay.portal.kernel.exception.SystemException {
375                    return _expandoColumnLocalService.getDefaultTableColumn(companyId,
376                            className, name);
377            }
378    
379            public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getDefaultTableColumns(
380                    long companyId, long classNameId)
381                    throws com.liferay.portal.kernel.exception.SystemException {
382                    return _expandoColumnLocalService.getDefaultTableColumns(companyId,
383                            classNameId);
384            }
385    
386            public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getDefaultTableColumns(
387                    long companyId, java.lang.String className)
388                    throws com.liferay.portal.kernel.exception.SystemException {
389                    return _expandoColumnLocalService.getDefaultTableColumns(companyId,
390                            className);
391            }
392    
393            public int getDefaultTableColumnsCount(long companyId, long classNameId)
394                    throws com.liferay.portal.kernel.exception.SystemException {
395                    return _expandoColumnLocalService.getDefaultTableColumnsCount(companyId,
396                            classNameId);
397            }
398    
399            public int getDefaultTableColumnsCount(long companyId,
400                    java.lang.String className)
401                    throws com.liferay.portal.kernel.exception.SystemException {
402                    return _expandoColumnLocalService.getDefaultTableColumnsCount(companyId,
403                            className);
404            }
405    
406            public com.liferay.portlet.expando.model.ExpandoColumn updateColumn(
407                    long columnId, java.lang.String name, int type)
408                    throws com.liferay.portal.kernel.exception.PortalException,
409                            com.liferay.portal.kernel.exception.SystemException {
410                    return _expandoColumnLocalService.updateColumn(columnId, name, type);
411            }
412    
413            public com.liferay.portlet.expando.model.ExpandoColumn updateColumn(
414                    long columnId, java.lang.String name, int type,
415                    java.lang.Object defaultData)
416                    throws com.liferay.portal.kernel.exception.PortalException,
417                            com.liferay.portal.kernel.exception.SystemException {
418                    return _expandoColumnLocalService.updateColumn(columnId, name, type,
419                            defaultData);
420            }
421    
422            public com.liferay.portlet.expando.model.ExpandoColumn updateTypeSettings(
423                    long columnId, java.lang.String typeSettings)
424                    throws com.liferay.portal.kernel.exception.PortalException,
425                            com.liferay.portal.kernel.exception.SystemException {
426                    return _expandoColumnLocalService.updateTypeSettings(columnId,
427                            typeSettings);
428            }
429    
430            public ExpandoColumnLocalService getWrappedExpandoColumnLocalService() {
431                    return _expandoColumnLocalService;
432            }
433    
434            private ExpandoColumnLocalService _expandoColumnLocalService;
435    }