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