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