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