001    /**
002     * Copyright (c) 2000-2011 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
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
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
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
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
104            * @param start the lower bound of the range of model instances
105            * @param end the upper bound of the range of model instances (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
124            * @param start the lower bound of the range of model instances
125            * @param end the upper bound of the range of model instances (not inclusive)
126            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
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            * Returns the number of rows that match the dynamic query.
142            *
143            * @param dynamicQuery the dynamic query
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            * Returns the expando column with the primary key.
155            *
156            * @param columnId the primary key of the expando column
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            public com.liferay.portal.model.PersistedModel getPersistedModel(
169                    java.io.Serializable primaryKeyObj)
170                    throws com.liferay.portal.kernel.exception.PortalException,
171                            com.liferay.portal.kernel.exception.SystemException {
172                    return _expandoColumnLocalService.getPersistedModel(primaryKeyObj);
173            }
174    
175            /**
176            * Returns a range of all the expando columns.
177            *
178            * <p>
179            * 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.
180            * </p>
181            *
182            * @param start the lower bound of the range of expando columns
183            * @param end the upper bound of the range of expando columns (not inclusive)
184            * @return the range of expando columns
185            * @throws SystemException if a system exception occurred
186            */
187            public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getExpandoColumns(
188                    int start, int end)
189                    throws com.liferay.portal.kernel.exception.SystemException {
190                    return _expandoColumnLocalService.getExpandoColumns(start, end);
191            }
192    
193            /**
194            * Returns the number of expando columns.
195            *
196            * @return the number of expando columns
197            * @throws SystemException if a system exception occurred
198            */
199            public int getExpandoColumnsCount()
200                    throws com.liferay.portal.kernel.exception.SystemException {
201                    return _expandoColumnLocalService.getExpandoColumnsCount();
202            }
203    
204            /**
205            * Updates the expando column in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
206            *
207            * @param expandoColumn the expando column
208            * @return the expando column that was updated
209            * @throws SystemException if a system exception occurred
210            */
211            public com.liferay.portlet.expando.model.ExpandoColumn updateExpandoColumn(
212                    com.liferay.portlet.expando.model.ExpandoColumn expandoColumn)
213                    throws com.liferay.portal.kernel.exception.SystemException {
214                    return _expandoColumnLocalService.updateExpandoColumn(expandoColumn);
215            }
216    
217            /**
218            * Updates the expando column in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
219            *
220            * @param expandoColumn the expando column
221            * @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.
222            * @return the expando column that was updated
223            * @throws SystemException if a system exception occurred
224            */
225            public com.liferay.portlet.expando.model.ExpandoColumn updateExpandoColumn(
226                    com.liferay.portlet.expando.model.ExpandoColumn expandoColumn,
227                    boolean merge)
228                    throws com.liferay.portal.kernel.exception.SystemException {
229                    return _expandoColumnLocalService.updateExpandoColumn(expandoColumn,
230                            merge);
231            }
232    
233            /**
234            * Returns the Spring bean ID for this bean.
235            *
236            * @return the Spring bean ID for this bean
237            */
238            public java.lang.String getBeanIdentifier() {
239                    return _expandoColumnLocalService.getBeanIdentifier();
240            }
241    
242            /**
243            * Sets the Spring bean ID for this bean.
244            *
245            * @param beanIdentifier the Spring bean ID for this bean
246            */
247            public void setBeanIdentifier(java.lang.String beanIdentifier) {
248                    _expandoColumnLocalService.setBeanIdentifier(beanIdentifier);
249            }
250    
251            public com.liferay.portlet.expando.model.ExpandoColumn addColumn(
252                    long tableId, java.lang.String name, int type)
253                    throws com.liferay.portal.kernel.exception.PortalException,
254                            com.liferay.portal.kernel.exception.SystemException {
255                    return _expandoColumnLocalService.addColumn(tableId, name, type);
256            }
257    
258            public com.liferay.portlet.expando.model.ExpandoColumn addColumn(
259                    long tableId, java.lang.String name, int type,
260                    java.lang.Object defaultData)
261                    throws com.liferay.portal.kernel.exception.PortalException,
262                            com.liferay.portal.kernel.exception.SystemException {
263                    return _expandoColumnLocalService.addColumn(tableId, name, type,
264                            defaultData);
265            }
266    
267            public void deleteColumn(
268                    com.liferay.portlet.expando.model.ExpandoColumn column)
269                    throws com.liferay.portal.kernel.exception.SystemException {
270                    _expandoColumnLocalService.deleteColumn(column);
271            }
272    
273            public void deleteColumn(long columnId)
274                    throws com.liferay.portal.kernel.exception.PortalException,
275                            com.liferay.portal.kernel.exception.SystemException {
276                    _expandoColumnLocalService.deleteColumn(columnId);
277            }
278    
279            public void deleteColumn(long companyId, long classNameId,
280                    java.lang.String tableName, java.lang.String name)
281                    throws com.liferay.portal.kernel.exception.PortalException,
282                            com.liferay.portal.kernel.exception.SystemException {
283                    _expandoColumnLocalService.deleteColumn(companyId, classNameId,
284                            tableName, name);
285            }
286    
287            public void deleteColumn(long tableId, java.lang.String name)
288                    throws com.liferay.portal.kernel.exception.SystemException {
289                    _expandoColumnLocalService.deleteColumn(tableId, name);
290            }
291    
292            public void deleteColumn(long companyId, java.lang.String className,
293                    java.lang.String tableName, java.lang.String name)
294                    throws com.liferay.portal.kernel.exception.PortalException,
295                            com.liferay.portal.kernel.exception.SystemException {
296                    _expandoColumnLocalService.deleteColumn(companyId, className,
297                            tableName, name);
298            }
299    
300            public void deleteColumns(long tableId)
301                    throws com.liferay.portal.kernel.exception.SystemException {
302                    _expandoColumnLocalService.deleteColumns(tableId);
303            }
304    
305            public void deleteColumns(long companyId, long classNameId,
306                    java.lang.String tableName)
307                    throws com.liferay.portal.kernel.exception.PortalException,
308                            com.liferay.portal.kernel.exception.SystemException {
309                    _expandoColumnLocalService.deleteColumns(companyId, classNameId,
310                            tableName);
311            }
312    
313            public void deleteColumns(long companyId, java.lang.String className,
314                    java.lang.String tableName)
315                    throws com.liferay.portal.kernel.exception.PortalException,
316                            com.liferay.portal.kernel.exception.SystemException {
317                    _expandoColumnLocalService.deleteColumns(companyId, className, tableName);
318            }
319    
320            public com.liferay.portlet.expando.model.ExpandoColumn getColumn(
321                    long columnId)
322                    throws com.liferay.portal.kernel.exception.PortalException,
323                            com.liferay.portal.kernel.exception.SystemException {
324                    return _expandoColumnLocalService.getColumn(columnId);
325            }
326    
327            public com.liferay.portlet.expando.model.ExpandoColumn getColumn(
328                    long companyId, long classNameId, java.lang.String tableName,
329                    java.lang.String name)
330                    throws com.liferay.portal.kernel.exception.SystemException {
331                    return _expandoColumnLocalService.getColumn(companyId, classNameId,
332                            tableName, name);
333            }
334    
335            public com.liferay.portlet.expando.model.ExpandoColumn getColumn(
336                    long tableId, java.lang.String name)
337                    throws com.liferay.portal.kernel.exception.SystemException {
338                    return _expandoColumnLocalService.getColumn(tableId, name);
339            }
340    
341            public com.liferay.portlet.expando.model.ExpandoColumn getColumn(
342                    long companyId, java.lang.String className, java.lang.String tableName,
343                    java.lang.String name)
344                    throws com.liferay.portal.kernel.exception.SystemException {
345                    return _expandoColumnLocalService.getColumn(companyId, className,
346                            tableName, name);
347            }
348    
349            public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getColumns(
350                    long tableId)
351                    throws com.liferay.portal.kernel.exception.SystemException {
352                    return _expandoColumnLocalService.getColumns(tableId);
353            }
354    
355            public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getColumns(
356                    long tableId, java.util.Collection<java.lang.String> names)
357                    throws com.liferay.portal.kernel.exception.SystemException {
358                    return _expandoColumnLocalService.getColumns(tableId, names);
359            }
360    
361            public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getColumns(
362                    long companyId, long classNameId, java.lang.String tableName)
363                    throws com.liferay.portal.kernel.exception.SystemException {
364                    return _expandoColumnLocalService.getColumns(companyId, classNameId,
365                            tableName);
366            }
367    
368            public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getColumns(
369                    long companyId, long classNameId, java.lang.String tableName,
370                    java.util.Collection<java.lang.String> names)
371                    throws com.liferay.portal.kernel.exception.SystemException {
372                    return _expandoColumnLocalService.getColumns(companyId, classNameId,
373                            tableName, names);
374            }
375    
376            public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getColumns(
377                    long companyId, java.lang.String className, java.lang.String tableName)
378                    throws com.liferay.portal.kernel.exception.SystemException {
379                    return _expandoColumnLocalService.getColumns(companyId, className,
380                            tableName);
381            }
382    
383            public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getColumns(
384                    long companyId, java.lang.String className, java.lang.String tableName,
385                    java.util.Collection<java.lang.String> columnNames)
386                    throws com.liferay.portal.kernel.exception.SystemException {
387                    return _expandoColumnLocalService.getColumns(companyId, className,
388                            tableName, columnNames);
389            }
390    
391            public int getColumnsCount(long tableId)
392                    throws com.liferay.portal.kernel.exception.SystemException {
393                    return _expandoColumnLocalService.getColumnsCount(tableId);
394            }
395    
396            public int getColumnsCount(long companyId, long classNameId,
397                    java.lang.String tableName)
398                    throws com.liferay.portal.kernel.exception.SystemException {
399                    return _expandoColumnLocalService.getColumnsCount(companyId,
400                            classNameId, tableName);
401            }
402    
403            public int getColumnsCount(long companyId, java.lang.String className,
404                    java.lang.String tableName)
405                    throws com.liferay.portal.kernel.exception.SystemException {
406                    return _expandoColumnLocalService.getColumnsCount(companyId, className,
407                            tableName);
408            }
409    
410            public com.liferay.portlet.expando.model.ExpandoColumn getDefaultTableColumn(
411                    long companyId, long classNameId, java.lang.String name)
412                    throws com.liferay.portal.kernel.exception.SystemException {
413                    return _expandoColumnLocalService.getDefaultTableColumn(companyId,
414                            classNameId, name);
415            }
416    
417            public com.liferay.portlet.expando.model.ExpandoColumn getDefaultTableColumn(
418                    long companyId, java.lang.String className, java.lang.String name)
419                    throws com.liferay.portal.kernel.exception.SystemException {
420                    return _expandoColumnLocalService.getDefaultTableColumn(companyId,
421                            className, name);
422            }
423    
424            public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getDefaultTableColumns(
425                    long companyId, long classNameId)
426                    throws com.liferay.portal.kernel.exception.SystemException {
427                    return _expandoColumnLocalService.getDefaultTableColumns(companyId,
428                            classNameId);
429            }
430    
431            public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getDefaultTableColumns(
432                    long companyId, java.lang.String className)
433                    throws com.liferay.portal.kernel.exception.SystemException {
434                    return _expandoColumnLocalService.getDefaultTableColumns(companyId,
435                            className);
436            }
437    
438            public int getDefaultTableColumnsCount(long companyId, long classNameId)
439                    throws com.liferay.portal.kernel.exception.SystemException {
440                    return _expandoColumnLocalService.getDefaultTableColumnsCount(companyId,
441                            classNameId);
442            }
443    
444            public int getDefaultTableColumnsCount(long companyId,
445                    java.lang.String className)
446                    throws com.liferay.portal.kernel.exception.SystemException {
447                    return _expandoColumnLocalService.getDefaultTableColumnsCount(companyId,
448                            className);
449            }
450    
451            public com.liferay.portlet.expando.model.ExpandoColumn updateColumn(
452                    long columnId, java.lang.String name, int type)
453                    throws com.liferay.portal.kernel.exception.PortalException,
454                            com.liferay.portal.kernel.exception.SystemException {
455                    return _expandoColumnLocalService.updateColumn(columnId, name, type);
456            }
457    
458            public com.liferay.portlet.expando.model.ExpandoColumn updateColumn(
459                    long columnId, java.lang.String name, int type,
460                    java.lang.Object defaultData)
461                    throws com.liferay.portal.kernel.exception.PortalException,
462                            com.liferay.portal.kernel.exception.SystemException {
463                    return _expandoColumnLocalService.updateColumn(columnId, name, type,
464                            defaultData);
465            }
466    
467            public com.liferay.portlet.expando.model.ExpandoColumn updateTypeSettings(
468                    long columnId, java.lang.String typeSettings)
469                    throws com.liferay.portal.kernel.exception.PortalException,
470                            com.liferay.portal.kernel.exception.SystemException {
471                    return _expandoColumnLocalService.updateTypeSettings(columnId,
472                            typeSettings);
473            }
474    
475            public ExpandoColumnLocalService getWrappedExpandoColumnLocalService() {
476                    return _expandoColumnLocalService;
477            }
478    
479            public void setWrappedExpandoColumnLocalService(
480                    ExpandoColumnLocalService expandoColumnLocalService) {
481                    _expandoColumnLocalService = expandoColumnLocalService;
482            }
483    
484            private ExpandoColumnLocalService _expandoColumnLocalService;
485    }