001    /**
002     * Copyright (c) 2000-2013 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    import com.liferay.portal.service.ServiceWrapper;
018    
019    /**
020     * <p>
021     * This class is a wrapper for {@link ExpandoColumnLocalService}.
022     * </p>
023     *
024     * @author    Brian Wing Shun Chan
025     * @see       ExpandoColumnLocalService
026     * @generated
027     */
028    public class ExpandoColumnLocalServiceWrapper
029            implements ExpandoColumnLocalService,
030                    ServiceWrapper<ExpandoColumnLocalService> {
031            public ExpandoColumnLocalServiceWrapper(
032                    ExpandoColumnLocalService expandoColumnLocalService) {
033                    _expandoColumnLocalService = expandoColumnLocalService;
034            }
035    
036            /**
037            * Adds the expando column to the database. Also notifies the appropriate model listeners.
038            *
039            * @param expandoColumn the expando column
040            * @return the expando column that was added
041            * @throws SystemException if a system exception occurred
042            */
043            public com.liferay.portlet.expando.model.ExpandoColumn addExpandoColumn(
044                    com.liferay.portlet.expando.model.ExpandoColumn expandoColumn)
045                    throws com.liferay.portal.kernel.exception.SystemException {
046                    return _expandoColumnLocalService.addExpandoColumn(expandoColumn);
047            }
048    
049            /**
050            * Creates a new expando column with the primary key. Does not add the expando column to the database.
051            *
052            * @param columnId the primary key for the new expando column
053            * @return the new expando column
054            */
055            public com.liferay.portlet.expando.model.ExpandoColumn createExpandoColumn(
056                    long columnId) {
057                    return _expandoColumnLocalService.createExpandoColumn(columnId);
058            }
059    
060            /**
061            * Deletes the expando column with the primary key from the database. Also notifies the appropriate model listeners.
062            *
063            * @param columnId the primary key of the expando column
064            * @return the expando column that was removed
065            * @throws PortalException if a expando column with the primary key could not be found
066            * @throws SystemException if a system exception occurred
067            */
068            public com.liferay.portlet.expando.model.ExpandoColumn deleteExpandoColumn(
069                    long columnId)
070                    throws com.liferay.portal.kernel.exception.PortalException,
071                            com.liferay.portal.kernel.exception.SystemException {
072                    return _expandoColumnLocalService.deleteExpandoColumn(columnId);
073            }
074    
075            /**
076            * Deletes the expando column from the database. Also notifies the appropriate model listeners.
077            *
078            * @param expandoColumn the expando column
079            * @return the expando column that was removed
080            * @throws SystemException if a system exception occurred
081            */
082            public com.liferay.portlet.expando.model.ExpandoColumn deleteExpandoColumn(
083                    com.liferay.portlet.expando.model.ExpandoColumn expandoColumn)
084                    throws com.liferay.portal.kernel.exception.SystemException {
085                    return _expandoColumnLocalService.deleteExpandoColumn(expandoColumn);
086            }
087    
088            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
089                    return _expandoColumnLocalService.dynamicQuery();
090            }
091    
092            /**
093            * Performs a dynamic query on the database and returns the matching rows.
094            *
095            * @param dynamicQuery the dynamic query
096            * @return the matching rows
097            * @throws SystemException if a system exception occurred
098            */
099            @SuppressWarnings("rawtypes")
100            public java.util.List dynamicQuery(
101                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
102                    throws com.liferay.portal.kernel.exception.SystemException {
103                    return _expandoColumnLocalService.dynamicQuery(dynamicQuery);
104            }
105    
106            /**
107            * Performs a dynamic query on the database and returns a range of the matching rows.
108            *
109            * <p>
110            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.expando.model.impl.ExpandoColumnModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
111            * </p>
112            *
113            * @param dynamicQuery the dynamic query
114            * @param start the lower bound of the range of model instances
115            * @param end the upper bound of the range of model instances (not inclusive)
116            * @return the range of matching rows
117            * @throws SystemException if a system exception occurred
118            */
119            @SuppressWarnings("rawtypes")
120            public java.util.List dynamicQuery(
121                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
122                    int end) throws com.liferay.portal.kernel.exception.SystemException {
123                    return _expandoColumnLocalService.dynamicQuery(dynamicQuery, start, end);
124            }
125    
126            /**
127            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
128            *
129            * <p>
130            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.expando.model.impl.ExpandoColumnModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
131            * </p>
132            *
133            * @param dynamicQuery the dynamic query
134            * @param start the lower bound of the range of model instances
135            * @param end the upper bound of the range of model instances (not inclusive)
136            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
137            * @return the ordered range of matching rows
138            * @throws SystemException if a system exception occurred
139            */
140            @SuppressWarnings("rawtypes")
141            public java.util.List dynamicQuery(
142                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
143                    int end,
144                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
145                    throws com.liferay.portal.kernel.exception.SystemException {
146                    return _expandoColumnLocalService.dynamicQuery(dynamicQuery, start,
147                            end, orderByComparator);
148            }
149    
150            /**
151            * Returns the number of rows that match the dynamic query.
152            *
153            * @param dynamicQuery the dynamic query
154            * @return the number of rows that match the dynamic query
155            * @throws SystemException if a system exception occurred
156            */
157            public long dynamicQueryCount(
158                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
159                    throws com.liferay.portal.kernel.exception.SystemException {
160                    return _expandoColumnLocalService.dynamicQueryCount(dynamicQuery);
161            }
162    
163            public com.liferay.portlet.expando.model.ExpandoColumn fetchExpandoColumn(
164                    long columnId)
165                    throws com.liferay.portal.kernel.exception.SystemException {
166                    return _expandoColumnLocalService.fetchExpandoColumn(columnId);
167            }
168    
169            /**
170            * Returns the expando column with the primary key.
171            *
172            * @param columnId the primary key of the expando column
173            * @return the expando column
174            * @throws PortalException if a expando column with the primary key could not be found
175            * @throws SystemException if a system exception occurred
176            */
177            public com.liferay.portlet.expando.model.ExpandoColumn getExpandoColumn(
178                    long columnId)
179                    throws com.liferay.portal.kernel.exception.PortalException,
180                            com.liferay.portal.kernel.exception.SystemException {
181                    return _expandoColumnLocalService.getExpandoColumn(columnId);
182            }
183    
184            public com.liferay.portal.model.PersistedModel getPersistedModel(
185                    java.io.Serializable primaryKeyObj)
186                    throws com.liferay.portal.kernel.exception.PortalException,
187                            com.liferay.portal.kernel.exception.SystemException {
188                    return _expandoColumnLocalService.getPersistedModel(primaryKeyObj);
189            }
190    
191            /**
192            * Returns a range of all the expando columns.
193            *
194            * <p>
195            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.expando.model.impl.ExpandoColumnModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
196            * </p>
197            *
198            * @param start the lower bound of the range of expando columns
199            * @param end the upper bound of the range of expando columns (not inclusive)
200            * @return the range of expando columns
201            * @throws SystemException if a system exception occurred
202            */
203            public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getExpandoColumns(
204                    int start, int end)
205                    throws com.liferay.portal.kernel.exception.SystemException {
206                    return _expandoColumnLocalService.getExpandoColumns(start, end);
207            }
208    
209            /**
210            * Returns the number of expando columns.
211            *
212            * @return the number of expando columns
213            * @throws SystemException if a system exception occurred
214            */
215            public int getExpandoColumnsCount()
216                    throws com.liferay.portal.kernel.exception.SystemException {
217                    return _expandoColumnLocalService.getExpandoColumnsCount();
218            }
219    
220            /**
221            * Updates the expando column in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
222            *
223            * @param expandoColumn the expando column
224            * @return the expando column that was updated
225            * @throws SystemException if a system exception occurred
226            */
227            public com.liferay.portlet.expando.model.ExpandoColumn updateExpandoColumn(
228                    com.liferay.portlet.expando.model.ExpandoColumn expandoColumn)
229                    throws com.liferay.portal.kernel.exception.SystemException {
230                    return _expandoColumnLocalService.updateExpandoColumn(expandoColumn);
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            /**
476             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
477             */
478            public ExpandoColumnLocalService getWrappedExpandoColumnLocalService() {
479                    return _expandoColumnLocalService;
480            }
481    
482            /**
483             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
484             */
485            public void setWrappedExpandoColumnLocalService(
486                    ExpandoColumnLocalService expandoColumnLocalService) {
487                    _expandoColumnLocalService = expandoColumnLocalService;
488            }
489    
490            public ExpandoColumnLocalService getWrappedService() {
491                    return _expandoColumnLocalService;
492            }
493    
494            public void setWrappedService(
495                    ExpandoColumnLocalService expandoColumnLocalService) {
496                    _expandoColumnLocalService = expandoColumnLocalService;
497            }
498    
499            private ExpandoColumnLocalService _expandoColumnLocalService;
500    }