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.
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.
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.
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            * Updates the expando column in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
235            *
236            * @param expandoColumn the expando column
237            * @param merge whether to merge the expando column with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation.
238            * @return the expando column that was updated
239            * @throws SystemException if a system exception occurred
240            */
241            public com.liferay.portlet.expando.model.ExpandoColumn updateExpandoColumn(
242                    com.liferay.portlet.expando.model.ExpandoColumn expandoColumn,
243                    boolean merge)
244                    throws com.liferay.portal.kernel.exception.SystemException {
245                    return _expandoColumnLocalService.updateExpandoColumn(expandoColumn,
246                            merge);
247            }
248    
249            /**
250            * Returns the Spring bean ID for this bean.
251            *
252            * @return the Spring bean ID for this bean
253            */
254            public java.lang.String getBeanIdentifier() {
255                    return _expandoColumnLocalService.getBeanIdentifier();
256            }
257    
258            /**
259            * Sets the Spring bean ID for this bean.
260            *
261            * @param beanIdentifier the Spring bean ID for this bean
262            */
263            public void setBeanIdentifier(java.lang.String beanIdentifier) {
264                    _expandoColumnLocalService.setBeanIdentifier(beanIdentifier);
265            }
266    
267            public com.liferay.portlet.expando.model.ExpandoColumn addColumn(
268                    long tableId, java.lang.String name, int type)
269                    throws com.liferay.portal.kernel.exception.PortalException,
270                            com.liferay.portal.kernel.exception.SystemException {
271                    return _expandoColumnLocalService.addColumn(tableId, name, type);
272            }
273    
274            public com.liferay.portlet.expando.model.ExpandoColumn addColumn(
275                    long tableId, java.lang.String name, int type,
276                    java.lang.Object defaultData)
277                    throws com.liferay.portal.kernel.exception.PortalException,
278                            com.liferay.portal.kernel.exception.SystemException {
279                    return _expandoColumnLocalService.addColumn(tableId, name, type,
280                            defaultData);
281            }
282    
283            public void deleteColumn(
284                    com.liferay.portlet.expando.model.ExpandoColumn column)
285                    throws com.liferay.portal.kernel.exception.SystemException {
286                    _expandoColumnLocalService.deleteColumn(column);
287            }
288    
289            public void deleteColumn(long columnId)
290                    throws com.liferay.portal.kernel.exception.PortalException,
291                            com.liferay.portal.kernel.exception.SystemException {
292                    _expandoColumnLocalService.deleteColumn(columnId);
293            }
294    
295            public void deleteColumn(long companyId, long classNameId,
296                    java.lang.String tableName, java.lang.String name)
297                    throws com.liferay.portal.kernel.exception.PortalException,
298                            com.liferay.portal.kernel.exception.SystemException {
299                    _expandoColumnLocalService.deleteColumn(companyId, classNameId,
300                            tableName, name);
301            }
302    
303            public void deleteColumn(long tableId, java.lang.String name)
304                    throws com.liferay.portal.kernel.exception.SystemException {
305                    _expandoColumnLocalService.deleteColumn(tableId, name);
306            }
307    
308            public void deleteColumn(long companyId, java.lang.String className,
309                    java.lang.String tableName, java.lang.String name)
310                    throws com.liferay.portal.kernel.exception.PortalException,
311                            com.liferay.portal.kernel.exception.SystemException {
312                    _expandoColumnLocalService.deleteColumn(companyId, className,
313                            tableName, name);
314            }
315    
316            public void deleteColumns(long tableId)
317                    throws com.liferay.portal.kernel.exception.SystemException {
318                    _expandoColumnLocalService.deleteColumns(tableId);
319            }
320    
321            public void deleteColumns(long companyId, long classNameId,
322                    java.lang.String tableName)
323                    throws com.liferay.portal.kernel.exception.PortalException,
324                            com.liferay.portal.kernel.exception.SystemException {
325                    _expandoColumnLocalService.deleteColumns(companyId, classNameId,
326                            tableName);
327            }
328    
329            public void deleteColumns(long companyId, java.lang.String className,
330                    java.lang.String tableName)
331                    throws com.liferay.portal.kernel.exception.PortalException,
332                            com.liferay.portal.kernel.exception.SystemException {
333                    _expandoColumnLocalService.deleteColumns(companyId, className, tableName);
334            }
335    
336            public com.liferay.portlet.expando.model.ExpandoColumn getColumn(
337                    long columnId)
338                    throws com.liferay.portal.kernel.exception.PortalException,
339                            com.liferay.portal.kernel.exception.SystemException {
340                    return _expandoColumnLocalService.getColumn(columnId);
341            }
342    
343            public com.liferay.portlet.expando.model.ExpandoColumn getColumn(
344                    long companyId, long classNameId, java.lang.String tableName,
345                    java.lang.String name)
346                    throws com.liferay.portal.kernel.exception.SystemException {
347                    return _expandoColumnLocalService.getColumn(companyId, classNameId,
348                            tableName, name);
349            }
350    
351            public com.liferay.portlet.expando.model.ExpandoColumn getColumn(
352                    long tableId, java.lang.String name)
353                    throws com.liferay.portal.kernel.exception.SystemException {
354                    return _expandoColumnLocalService.getColumn(tableId, name);
355            }
356    
357            public com.liferay.portlet.expando.model.ExpandoColumn getColumn(
358                    long companyId, java.lang.String className, java.lang.String tableName,
359                    java.lang.String name)
360                    throws com.liferay.portal.kernel.exception.SystemException {
361                    return _expandoColumnLocalService.getColumn(companyId, className,
362                            tableName, name);
363            }
364    
365            public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getColumns(
366                    long tableId)
367                    throws com.liferay.portal.kernel.exception.SystemException {
368                    return _expandoColumnLocalService.getColumns(tableId);
369            }
370    
371            public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getColumns(
372                    long tableId, java.util.Collection<java.lang.String> names)
373                    throws com.liferay.portal.kernel.exception.SystemException {
374                    return _expandoColumnLocalService.getColumns(tableId, names);
375            }
376    
377            public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getColumns(
378                    long companyId, long classNameId, java.lang.String tableName)
379                    throws com.liferay.portal.kernel.exception.SystemException {
380                    return _expandoColumnLocalService.getColumns(companyId, classNameId,
381                            tableName);
382            }
383    
384            public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getColumns(
385                    long companyId, long classNameId, java.lang.String tableName,
386                    java.util.Collection<java.lang.String> names)
387                    throws com.liferay.portal.kernel.exception.SystemException {
388                    return _expandoColumnLocalService.getColumns(companyId, classNameId,
389                            tableName, names);
390            }
391    
392            public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getColumns(
393                    long companyId, java.lang.String className, java.lang.String tableName)
394                    throws com.liferay.portal.kernel.exception.SystemException {
395                    return _expandoColumnLocalService.getColumns(companyId, className,
396                            tableName);
397            }
398    
399            public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getColumns(
400                    long companyId, java.lang.String className, java.lang.String tableName,
401                    java.util.Collection<java.lang.String> columnNames)
402                    throws com.liferay.portal.kernel.exception.SystemException {
403                    return _expandoColumnLocalService.getColumns(companyId, className,
404                            tableName, columnNames);
405            }
406    
407            public int getColumnsCount(long tableId)
408                    throws com.liferay.portal.kernel.exception.SystemException {
409                    return _expandoColumnLocalService.getColumnsCount(tableId);
410            }
411    
412            public int getColumnsCount(long companyId, long classNameId,
413                    java.lang.String tableName)
414                    throws com.liferay.portal.kernel.exception.SystemException {
415                    return _expandoColumnLocalService.getColumnsCount(companyId,
416                            classNameId, tableName);
417            }
418    
419            public int getColumnsCount(long companyId, java.lang.String className,
420                    java.lang.String tableName)
421                    throws com.liferay.portal.kernel.exception.SystemException {
422                    return _expandoColumnLocalService.getColumnsCount(companyId, className,
423                            tableName);
424            }
425    
426            public com.liferay.portlet.expando.model.ExpandoColumn getDefaultTableColumn(
427                    long companyId, long classNameId, java.lang.String name)
428                    throws com.liferay.portal.kernel.exception.SystemException {
429                    return _expandoColumnLocalService.getDefaultTableColumn(companyId,
430                            classNameId, name);
431            }
432    
433            public com.liferay.portlet.expando.model.ExpandoColumn getDefaultTableColumn(
434                    long companyId, java.lang.String className, java.lang.String name)
435                    throws com.liferay.portal.kernel.exception.SystemException {
436                    return _expandoColumnLocalService.getDefaultTableColumn(companyId,
437                            className, name);
438            }
439    
440            public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getDefaultTableColumns(
441                    long companyId, long classNameId)
442                    throws com.liferay.portal.kernel.exception.SystemException {
443                    return _expandoColumnLocalService.getDefaultTableColumns(companyId,
444                            classNameId);
445            }
446    
447            public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getDefaultTableColumns(
448                    long companyId, java.lang.String className)
449                    throws com.liferay.portal.kernel.exception.SystemException {
450                    return _expandoColumnLocalService.getDefaultTableColumns(companyId,
451                            className);
452            }
453    
454            public int getDefaultTableColumnsCount(long companyId, long classNameId)
455                    throws com.liferay.portal.kernel.exception.SystemException {
456                    return _expandoColumnLocalService.getDefaultTableColumnsCount(companyId,
457                            classNameId);
458            }
459    
460            public int getDefaultTableColumnsCount(long companyId,
461                    java.lang.String className)
462                    throws com.liferay.portal.kernel.exception.SystemException {
463                    return _expandoColumnLocalService.getDefaultTableColumnsCount(companyId,
464                            className);
465            }
466    
467            public com.liferay.portlet.expando.model.ExpandoColumn updateColumn(
468                    long columnId, java.lang.String name, int type)
469                    throws com.liferay.portal.kernel.exception.PortalException,
470                            com.liferay.portal.kernel.exception.SystemException {
471                    return _expandoColumnLocalService.updateColumn(columnId, name, type);
472            }
473    
474            public com.liferay.portlet.expando.model.ExpandoColumn updateColumn(
475                    long columnId, java.lang.String name, int type,
476                    java.lang.Object defaultData)
477                    throws com.liferay.portal.kernel.exception.PortalException,
478                            com.liferay.portal.kernel.exception.SystemException {
479                    return _expandoColumnLocalService.updateColumn(columnId, name, type,
480                            defaultData);
481            }
482    
483            public com.liferay.portlet.expando.model.ExpandoColumn updateTypeSettings(
484                    long columnId, java.lang.String typeSettings)
485                    throws com.liferay.portal.kernel.exception.PortalException,
486                            com.liferay.portal.kernel.exception.SystemException {
487                    return _expandoColumnLocalService.updateTypeSettings(columnId,
488                            typeSettings);
489            }
490    
491            /**
492             * @deprecated Renamed to {@link #getWrappedService}
493             */
494            public ExpandoColumnLocalService getWrappedExpandoColumnLocalService() {
495                    return _expandoColumnLocalService;
496            }
497    
498            /**
499             * @deprecated Renamed to {@link #setWrappedService}
500             */
501            public void setWrappedExpandoColumnLocalService(
502                    ExpandoColumnLocalService expandoColumnLocalService) {
503                    _expandoColumnLocalService = expandoColumnLocalService;
504            }
505    
506            public ExpandoColumnLocalService getWrappedService() {
507                    return _expandoColumnLocalService;
508            }
509    
510            public void setWrappedService(
511                    ExpandoColumnLocalService expandoColumnLocalService) {
512                    _expandoColumnLocalService = expandoColumnLocalService;
513            }
514    
515            private ExpandoColumnLocalService _expandoColumnLocalService;
516    }