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 aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.service.ServiceWrapper;
020    
021    /**
022     * Provides a wrapper for {@link ExpandoColumnLocalService}.
023     *
024     * @author Brian Wing Shun Chan
025     * @see ExpandoColumnLocalService
026     * @generated
027     */
028    @ProviderType
029    public class ExpandoColumnLocalServiceWrapper
030            implements ExpandoColumnLocalService,
031                    ServiceWrapper<ExpandoColumnLocalService> {
032            public ExpandoColumnLocalServiceWrapper(
033                    ExpandoColumnLocalService expandoColumnLocalService) {
034                    _expandoColumnLocalService = expandoColumnLocalService;
035            }
036    
037            /**
038            * Adds the expando column to the database. Also notifies the appropriate model listeners.
039            *
040            * @param expandoColumn the expando column
041            * @return the expando column that was added
042            * @throws SystemException if a system exception occurred
043            */
044            @Override
045            public com.liferay.portlet.expando.model.ExpandoColumn addExpandoColumn(
046                    com.liferay.portlet.expando.model.ExpandoColumn expandoColumn)
047                    throws com.liferay.portal.kernel.exception.SystemException {
048                    return _expandoColumnLocalService.addExpandoColumn(expandoColumn);
049            }
050    
051            /**
052            * Creates a new expando column with the primary key. Does not add the expando column to the database.
053            *
054            * @param columnId the primary key for the new expando column
055            * @return the new expando column
056            */
057            @Override
058            public com.liferay.portlet.expando.model.ExpandoColumn createExpandoColumn(
059                    long columnId) {
060                    return _expandoColumnLocalService.createExpandoColumn(columnId);
061            }
062    
063            /**
064            * Deletes the expando column with the primary key from the database. Also notifies the appropriate model listeners.
065            *
066            * @param columnId the primary key of the expando column
067            * @return the expando column that was removed
068            * @throws PortalException if a expando column with the primary key could not be found
069            * @throws SystemException if a system exception occurred
070            */
071            @Override
072            public com.liferay.portlet.expando.model.ExpandoColumn deleteExpandoColumn(
073                    long columnId)
074                    throws com.liferay.portal.kernel.exception.PortalException,
075                            com.liferay.portal.kernel.exception.SystemException {
076                    return _expandoColumnLocalService.deleteExpandoColumn(columnId);
077            }
078    
079            /**
080            * Deletes the expando column from the database. Also notifies the appropriate model listeners.
081            *
082            * @param expandoColumn the expando column
083            * @return the expando column that was removed
084            * @throws SystemException if a system exception occurred
085            */
086            @Override
087            public com.liferay.portlet.expando.model.ExpandoColumn deleteExpandoColumn(
088                    com.liferay.portlet.expando.model.ExpandoColumn expandoColumn)
089                    throws com.liferay.portal.kernel.exception.SystemException {
090                    return _expandoColumnLocalService.deleteExpandoColumn(expandoColumn);
091            }
092    
093            @Override
094            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
095                    return _expandoColumnLocalService.dynamicQuery();
096            }
097    
098            /**
099            * Performs a dynamic query on the database and returns the matching rows.
100            *
101            * @param dynamicQuery the dynamic query
102            * @return the matching rows
103            * @throws SystemException if a system exception occurred
104            */
105            @Override
106            @SuppressWarnings("rawtypes")
107            public java.util.List dynamicQuery(
108                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
109                    throws com.liferay.portal.kernel.exception.SystemException {
110                    return _expandoColumnLocalService.dynamicQuery(dynamicQuery);
111            }
112    
113            /**
114            * Performs a dynamic query on the database and returns a range of the matching rows.
115            *
116            * <p>
117            * 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.
118            * </p>
119            *
120            * @param dynamicQuery the dynamic query
121            * @param start the lower bound of the range of model instances
122            * @param end the upper bound of the range of model instances (not inclusive)
123            * @return the range of matching rows
124            * @throws SystemException if a system exception occurred
125            */
126            @Override
127            @SuppressWarnings("rawtypes")
128            public java.util.List dynamicQuery(
129                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
130                    int end) throws com.liferay.portal.kernel.exception.SystemException {
131                    return _expandoColumnLocalService.dynamicQuery(dynamicQuery, start, end);
132            }
133    
134            /**
135            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
136            *
137            * <p>
138            * 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.
139            * </p>
140            *
141            * @param dynamicQuery the dynamic query
142            * @param start the lower bound of the range of model instances
143            * @param end the upper bound of the range of model instances (not inclusive)
144            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
145            * @return the ordered range of matching rows
146            * @throws SystemException if a system exception occurred
147            */
148            @Override
149            @SuppressWarnings("rawtypes")
150            public java.util.List dynamicQuery(
151                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
152                    int end,
153                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
154                    throws com.liferay.portal.kernel.exception.SystemException {
155                    return _expandoColumnLocalService.dynamicQuery(dynamicQuery, start,
156                            end, orderByComparator);
157            }
158    
159            /**
160            * Returns the number of rows that match the dynamic query.
161            *
162            * @param dynamicQuery the dynamic query
163            * @return the number of rows that match the dynamic query
164            * @throws SystemException if a system exception occurred
165            */
166            @Override
167            public long dynamicQueryCount(
168                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
169                    throws com.liferay.portal.kernel.exception.SystemException {
170                    return _expandoColumnLocalService.dynamicQueryCount(dynamicQuery);
171            }
172    
173            /**
174            * Returns the number of rows that match the dynamic query.
175            *
176            * @param dynamicQuery the dynamic query
177            * @param projection the projection to apply to the query
178            * @return the number of rows that match the dynamic query
179            * @throws SystemException if a system exception occurred
180            */
181            @Override
182            public long dynamicQueryCount(
183                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
184                    com.liferay.portal.kernel.dao.orm.Projection projection)
185                    throws com.liferay.portal.kernel.exception.SystemException {
186                    return _expandoColumnLocalService.dynamicQueryCount(dynamicQuery,
187                            projection);
188            }
189    
190            @Override
191            public com.liferay.portlet.expando.model.ExpandoColumn fetchExpandoColumn(
192                    long columnId)
193                    throws com.liferay.portal.kernel.exception.SystemException {
194                    return _expandoColumnLocalService.fetchExpandoColumn(columnId);
195            }
196    
197            /**
198            * Returns the expando column with the primary key.
199            *
200            * @param columnId the primary key of the expando column
201            * @return the expando column
202            * @throws PortalException if a expando column with the primary key could not be found
203            * @throws SystemException if a system exception occurred
204            */
205            @Override
206            public com.liferay.portlet.expando.model.ExpandoColumn getExpandoColumn(
207                    long columnId)
208                    throws com.liferay.portal.kernel.exception.PortalException,
209                            com.liferay.portal.kernel.exception.SystemException {
210                    return _expandoColumnLocalService.getExpandoColumn(columnId);
211            }
212    
213            @Override
214            public com.liferay.portal.model.PersistedModel getPersistedModel(
215                    java.io.Serializable primaryKeyObj)
216                    throws com.liferay.portal.kernel.exception.PortalException,
217                            com.liferay.portal.kernel.exception.SystemException {
218                    return _expandoColumnLocalService.getPersistedModel(primaryKeyObj);
219            }
220    
221            /**
222            * Returns a range of all the expando columns.
223            *
224            * <p>
225            * 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.
226            * </p>
227            *
228            * @param start the lower bound of the range of expando columns
229            * @param end the upper bound of the range of expando columns (not inclusive)
230            * @return the range of expando columns
231            * @throws SystemException if a system exception occurred
232            */
233            @Override
234            public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getExpandoColumns(
235                    int start, int end)
236                    throws com.liferay.portal.kernel.exception.SystemException {
237                    return _expandoColumnLocalService.getExpandoColumns(start, end);
238            }
239    
240            /**
241            * Returns the number of expando columns.
242            *
243            * @return the number of expando columns
244            * @throws SystemException if a system exception occurred
245            */
246            @Override
247            public int getExpandoColumnsCount()
248                    throws com.liferay.portal.kernel.exception.SystemException {
249                    return _expandoColumnLocalService.getExpandoColumnsCount();
250            }
251    
252            /**
253            * Updates the expando column in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
254            *
255            * @param expandoColumn the expando column
256            * @return the expando column that was updated
257            * @throws SystemException if a system exception occurred
258            */
259            @Override
260            public com.liferay.portlet.expando.model.ExpandoColumn updateExpandoColumn(
261                    com.liferay.portlet.expando.model.ExpandoColumn expandoColumn)
262                    throws com.liferay.portal.kernel.exception.SystemException {
263                    return _expandoColumnLocalService.updateExpandoColumn(expandoColumn);
264            }
265    
266            /**
267            * Returns the Spring bean ID for this bean.
268            *
269            * @return the Spring bean ID for this bean
270            */
271            @Override
272            public java.lang.String getBeanIdentifier() {
273                    return _expandoColumnLocalService.getBeanIdentifier();
274            }
275    
276            /**
277            * Sets the Spring bean ID for this bean.
278            *
279            * @param beanIdentifier the Spring bean ID for this bean
280            */
281            @Override
282            public void setBeanIdentifier(java.lang.String beanIdentifier) {
283                    _expandoColumnLocalService.setBeanIdentifier(beanIdentifier);
284            }
285    
286            @Override
287            public com.liferay.portlet.expando.model.ExpandoColumn addColumn(
288                    long tableId, java.lang.String name, int type)
289                    throws com.liferay.portal.kernel.exception.PortalException,
290                            com.liferay.portal.kernel.exception.SystemException {
291                    return _expandoColumnLocalService.addColumn(tableId, name, type);
292            }
293    
294            @Override
295            public com.liferay.portlet.expando.model.ExpandoColumn addColumn(
296                    long tableId, java.lang.String name, int type,
297                    java.lang.Object defaultData)
298                    throws com.liferay.portal.kernel.exception.PortalException,
299                            com.liferay.portal.kernel.exception.SystemException {
300                    return _expandoColumnLocalService.addColumn(tableId, name, type,
301                            defaultData);
302            }
303    
304            @Override
305            public void deleteColumn(
306                    com.liferay.portlet.expando.model.ExpandoColumn column)
307                    throws com.liferay.portal.kernel.exception.SystemException {
308                    _expandoColumnLocalService.deleteColumn(column);
309            }
310    
311            @Override
312            public void deleteColumn(long columnId)
313                    throws com.liferay.portal.kernel.exception.PortalException,
314                            com.liferay.portal.kernel.exception.SystemException {
315                    _expandoColumnLocalService.deleteColumn(columnId);
316            }
317    
318            @Override
319            public void deleteColumn(long companyId, long classNameId,
320                    java.lang.String tableName, java.lang.String name)
321                    throws com.liferay.portal.kernel.exception.PortalException,
322                            com.liferay.portal.kernel.exception.SystemException {
323                    _expandoColumnLocalService.deleteColumn(companyId, classNameId,
324                            tableName, name);
325            }
326    
327            @Override
328            public void deleteColumn(long tableId, java.lang.String name)
329                    throws com.liferay.portal.kernel.exception.SystemException {
330                    _expandoColumnLocalService.deleteColumn(tableId, name);
331            }
332    
333            @Override
334            public void deleteColumn(long companyId, java.lang.String className,
335                    java.lang.String tableName, java.lang.String name)
336                    throws com.liferay.portal.kernel.exception.PortalException,
337                            com.liferay.portal.kernel.exception.SystemException {
338                    _expandoColumnLocalService.deleteColumn(companyId, className,
339                            tableName, name);
340            }
341    
342            @Override
343            public void deleteColumns(long tableId)
344                    throws com.liferay.portal.kernel.exception.SystemException {
345                    _expandoColumnLocalService.deleteColumns(tableId);
346            }
347    
348            @Override
349            public void deleteColumns(long companyId, long classNameId,
350                    java.lang.String tableName)
351                    throws com.liferay.portal.kernel.exception.PortalException,
352                            com.liferay.portal.kernel.exception.SystemException {
353                    _expandoColumnLocalService.deleteColumns(companyId, classNameId,
354                            tableName);
355            }
356    
357            @Override
358            public void deleteColumns(long companyId, java.lang.String className,
359                    java.lang.String tableName)
360                    throws com.liferay.portal.kernel.exception.PortalException,
361                            com.liferay.portal.kernel.exception.SystemException {
362                    _expandoColumnLocalService.deleteColumns(companyId, className, tableName);
363            }
364    
365            @Override
366            public com.liferay.portlet.expando.model.ExpandoColumn getColumn(
367                    long columnId)
368                    throws com.liferay.portal.kernel.exception.PortalException,
369                            com.liferay.portal.kernel.exception.SystemException {
370                    return _expandoColumnLocalService.getColumn(columnId);
371            }
372    
373            @Override
374            public com.liferay.portlet.expando.model.ExpandoColumn getColumn(
375                    long companyId, long classNameId, java.lang.String tableName,
376                    java.lang.String name)
377                    throws com.liferay.portal.kernel.exception.SystemException {
378                    return _expandoColumnLocalService.getColumn(companyId, classNameId,
379                            tableName, name);
380            }
381    
382            @Override
383            public com.liferay.portlet.expando.model.ExpandoColumn getColumn(
384                    long tableId, java.lang.String name)
385                    throws com.liferay.portal.kernel.exception.SystemException {
386                    return _expandoColumnLocalService.getColumn(tableId, name);
387            }
388    
389            @Override
390            public com.liferay.portlet.expando.model.ExpandoColumn getColumn(
391                    long companyId, java.lang.String className, java.lang.String tableName,
392                    java.lang.String name)
393                    throws com.liferay.portal.kernel.exception.SystemException {
394                    return _expandoColumnLocalService.getColumn(companyId, className,
395                            tableName, name);
396            }
397    
398            @Override
399            public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getColumns(
400                    long tableId)
401                    throws com.liferay.portal.kernel.exception.SystemException {
402                    return _expandoColumnLocalService.getColumns(tableId);
403            }
404    
405            @Override
406            public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getColumns(
407                    long tableId, java.util.Collection<java.lang.String> names)
408                    throws com.liferay.portal.kernel.exception.SystemException {
409                    return _expandoColumnLocalService.getColumns(tableId, names);
410            }
411    
412            @Override
413            public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getColumns(
414                    long companyId, long classNameId, java.lang.String tableName)
415                    throws com.liferay.portal.kernel.exception.SystemException {
416                    return _expandoColumnLocalService.getColumns(companyId, classNameId,
417                            tableName);
418            }
419    
420            @Override
421            public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getColumns(
422                    long companyId, long classNameId, java.lang.String tableName,
423                    java.util.Collection<java.lang.String> names)
424                    throws com.liferay.portal.kernel.exception.SystemException {
425                    return _expandoColumnLocalService.getColumns(companyId, classNameId,
426                            tableName, names);
427            }
428    
429            @Override
430            public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getColumns(
431                    long companyId, java.lang.String className, java.lang.String tableName)
432                    throws com.liferay.portal.kernel.exception.SystemException {
433                    return _expandoColumnLocalService.getColumns(companyId, className,
434                            tableName);
435            }
436    
437            @Override
438            public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getColumns(
439                    long companyId, java.lang.String className, java.lang.String tableName,
440                    java.util.Collection<java.lang.String> columnNames)
441                    throws com.liferay.portal.kernel.exception.SystemException {
442                    return _expandoColumnLocalService.getColumns(companyId, className,
443                            tableName, columnNames);
444            }
445    
446            @Override
447            public int getColumnsCount(long tableId)
448                    throws com.liferay.portal.kernel.exception.SystemException {
449                    return _expandoColumnLocalService.getColumnsCount(tableId);
450            }
451    
452            @Override
453            public int getColumnsCount(long companyId, long classNameId,
454                    java.lang.String tableName)
455                    throws com.liferay.portal.kernel.exception.SystemException {
456                    return _expandoColumnLocalService.getColumnsCount(companyId,
457                            classNameId, tableName);
458            }
459    
460            @Override
461            public int getColumnsCount(long companyId, java.lang.String className,
462                    java.lang.String tableName)
463                    throws com.liferay.portal.kernel.exception.SystemException {
464                    return _expandoColumnLocalService.getColumnsCount(companyId, className,
465                            tableName);
466            }
467    
468            @Override
469            public com.liferay.portlet.expando.model.ExpandoColumn getDefaultTableColumn(
470                    long companyId, long classNameId, java.lang.String name)
471                    throws com.liferay.portal.kernel.exception.SystemException {
472                    return _expandoColumnLocalService.getDefaultTableColumn(companyId,
473                            classNameId, name);
474            }
475    
476            @Override
477            public com.liferay.portlet.expando.model.ExpandoColumn getDefaultTableColumn(
478                    long companyId, java.lang.String className, java.lang.String name)
479                    throws com.liferay.portal.kernel.exception.SystemException {
480                    return _expandoColumnLocalService.getDefaultTableColumn(companyId,
481                            className, name);
482            }
483    
484            @Override
485            public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getDefaultTableColumns(
486                    long companyId, long classNameId)
487                    throws com.liferay.portal.kernel.exception.SystemException {
488                    return _expandoColumnLocalService.getDefaultTableColumns(companyId,
489                            classNameId);
490            }
491    
492            @Override
493            public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getDefaultTableColumns(
494                    long companyId, java.lang.String className)
495                    throws com.liferay.portal.kernel.exception.SystemException {
496                    return _expandoColumnLocalService.getDefaultTableColumns(companyId,
497                            className);
498            }
499    
500            @Override
501            public int getDefaultTableColumnsCount(long companyId, long classNameId)
502                    throws com.liferay.portal.kernel.exception.SystemException {
503                    return _expandoColumnLocalService.getDefaultTableColumnsCount(companyId,
504                            classNameId);
505            }
506    
507            @Override
508            public int getDefaultTableColumnsCount(long companyId,
509                    java.lang.String className)
510                    throws com.liferay.portal.kernel.exception.SystemException {
511                    return _expandoColumnLocalService.getDefaultTableColumnsCount(companyId,
512                            className);
513            }
514    
515            @Override
516            public com.liferay.portlet.expando.model.ExpandoColumn updateColumn(
517                    long columnId, java.lang.String name, int type)
518                    throws com.liferay.portal.kernel.exception.PortalException,
519                            com.liferay.portal.kernel.exception.SystemException {
520                    return _expandoColumnLocalService.updateColumn(columnId, name, type);
521            }
522    
523            @Override
524            public com.liferay.portlet.expando.model.ExpandoColumn updateColumn(
525                    long columnId, java.lang.String name, int type,
526                    java.lang.Object defaultData)
527                    throws com.liferay.portal.kernel.exception.PortalException,
528                            com.liferay.portal.kernel.exception.SystemException {
529                    return _expandoColumnLocalService.updateColumn(columnId, name, type,
530                            defaultData);
531            }
532    
533            @Override
534            public com.liferay.portlet.expando.model.ExpandoColumn updateTypeSettings(
535                    long columnId, java.lang.String typeSettings)
536                    throws com.liferay.portal.kernel.exception.PortalException,
537                            com.liferay.portal.kernel.exception.SystemException {
538                    return _expandoColumnLocalService.updateTypeSettings(columnId,
539                            typeSettings);
540            }
541    
542            /**
543             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
544             */
545            public ExpandoColumnLocalService getWrappedExpandoColumnLocalService() {
546                    return _expandoColumnLocalService;
547            }
548    
549            /**
550             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
551             */
552            public void setWrappedExpandoColumnLocalService(
553                    ExpandoColumnLocalService expandoColumnLocalService) {
554                    _expandoColumnLocalService = expandoColumnLocalService;
555            }
556    
557            @Override
558            public ExpandoColumnLocalService getWrappedService() {
559                    return _expandoColumnLocalService;
560            }
561    
562            @Override
563            public void setWrappedService(
564                    ExpandoColumnLocalService expandoColumnLocalService) {
565                    _expandoColumnLocalService = expandoColumnLocalService;
566            }
567    
568            private ExpandoColumnLocalService _expandoColumnLocalService;
569    }