001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.portlet.expando.service;
016    
017    /**
018     * <p>
019     * This class is a wrapper for {@link ExpandoColumnLocalService}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       ExpandoColumnLocalService
024     * @generated
025     */
026    public class ExpandoColumnLocalServiceWrapper
027            implements ExpandoColumnLocalService {
028            public ExpandoColumnLocalServiceWrapper(
029                    ExpandoColumnLocalService expandoColumnLocalService) {
030                    _expandoColumnLocalService = expandoColumnLocalService;
031            }
032    
033            /**
034            * Adds the expando column to the database. Also notifies the appropriate model listeners.
035            *
036            * @param expandoColumn the expando column
037            * @return the expando column that was added
038            * @throws SystemException if a system exception occurred
039            */
040            public com.liferay.portlet.expando.model.ExpandoColumn addExpandoColumn(
041                    com.liferay.portlet.expando.model.ExpandoColumn expandoColumn)
042                    throws com.liferay.portal.kernel.exception.SystemException {
043                    return _expandoColumnLocalService.addExpandoColumn(expandoColumn);
044            }
045    
046            /**
047            * Creates a new expando column with the primary key. Does not add the expando column to the database.
048            *
049            * @param columnId the primary key for the new expando column
050            * @return the new expando column
051            */
052            public com.liferay.portlet.expando.model.ExpandoColumn createExpandoColumn(
053                    long columnId) {
054                    return _expandoColumnLocalService.createExpandoColumn(columnId);
055            }
056    
057            /**
058            * Deletes the expando column with the primary key from the database. Also notifies the appropriate model listeners.
059            *
060            * @param columnId the primary key of the expando column
061            * @throws PortalException if a expando column with the primary key could not be found
062            * @throws SystemException if a system exception occurred
063            */
064            public void deleteExpandoColumn(long columnId)
065                    throws com.liferay.portal.kernel.exception.PortalException,
066                            com.liferay.portal.kernel.exception.SystemException {
067                    _expandoColumnLocalService.deleteExpandoColumn(columnId);
068            }
069    
070            /**
071            * Deletes the expando column from the database. Also notifies the appropriate model listeners.
072            *
073            * @param expandoColumn the expando column
074            * @throws SystemException if a system exception occurred
075            */
076            public void deleteExpandoColumn(
077                    com.liferay.portlet.expando.model.ExpandoColumn expandoColumn)
078                    throws com.liferay.portal.kernel.exception.SystemException {
079                    _expandoColumnLocalService.deleteExpandoColumn(expandoColumn);
080            }
081    
082            /**
083            * Performs a dynamic query on the database and returns the matching rows.
084            *
085            * @param dynamicQuery the dynamic query
086            * @return the matching rows
087            * @throws SystemException if a system exception occurred
088            */
089            @SuppressWarnings("rawtypes")
090            public java.util.List dynamicQuery(
091                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
092                    throws com.liferay.portal.kernel.exception.SystemException {
093                    return _expandoColumnLocalService.dynamicQuery(dynamicQuery);
094            }
095    
096            /**
097            * Performs a dynamic query on the database and returns a range of the matching rows.
098            *
099            * <p>
100            * 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.
101            * </p>
102            *
103            * @param dynamicQuery the dynamic query
104            * @param start the lower bound of the range of model instances
105            * @param end the upper bound of the range of model instances (not inclusive)
106            * @return the range of matching rows
107            * @throws SystemException if a system exception occurred
108            */
109            @SuppressWarnings("rawtypes")
110            public java.util.List dynamicQuery(
111                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
112                    int end) throws com.liferay.portal.kernel.exception.SystemException {
113                    return _expandoColumnLocalService.dynamicQuery(dynamicQuery, start, end);
114            }
115    
116            /**
117            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
118            *
119            * <p>
120            * 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.
121            * </p>
122            *
123            * @param dynamicQuery the dynamic query
124            * @param start the lower bound of the range of model instances
125            * @param end the upper bound of the range of model instances (not inclusive)
126            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
127            * @return the ordered range of matching rows
128            * @throws SystemException if a system exception occurred
129            */
130            @SuppressWarnings("rawtypes")
131            public java.util.List dynamicQuery(
132                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
133                    int end,
134                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
135                    throws com.liferay.portal.kernel.exception.SystemException {
136                    return _expandoColumnLocalService.dynamicQuery(dynamicQuery, start,
137                            end, orderByComparator);
138            }
139    
140            /**
141            * Returns the number of rows that match the dynamic query.
142            *
143            * @param dynamicQuery the dynamic query
144            * @return the number of rows that match the dynamic query
145            * @throws SystemException if a system exception occurred
146            */
147            public long dynamicQueryCount(
148                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
149                    throws com.liferay.portal.kernel.exception.SystemException {
150                    return _expandoColumnLocalService.dynamicQueryCount(dynamicQuery);
151            }
152    
153            /**
154            * Returns the expando column with the primary key.
155            *
156            * @param columnId the primary key of the expando column
157            * @return the expando column
158            * @throws PortalException if a expando column with the primary key could not be found
159            * @throws SystemException if a system exception occurred
160            */
161            public com.liferay.portlet.expando.model.ExpandoColumn getExpandoColumn(
162                    long columnId)
163                    throws com.liferay.portal.kernel.exception.PortalException,
164                            com.liferay.portal.kernel.exception.SystemException {
165                    return _expandoColumnLocalService.getExpandoColumn(columnId);
166            }
167    
168            public com.liferay.portal.model.PersistedModel getPersistedModel(
169                    java.io.Serializable primaryKeyObj)
170                    throws com.liferay.portal.kernel.exception.PortalException,
171                            com.liferay.portal.kernel.exception.SystemException {
172                    return _expandoColumnLocalService.getPersistedModel(primaryKeyObj);
173            }
174    
175            /**
176            * Returns a range of all the expando columns.
177            *
178            * <p>
179            * 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.
180            * </p>
181            *
182            * @param start the lower bound of the range of expando columns
183            * @param end the upper bound of the range of expando columns (not inclusive)
184            * @return the range of expando columns
185            * @throws SystemException if a system exception occurred
186            */
187            public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getExpandoColumns(
188                    int start, int end)
189                    throws com.liferay.portal.kernel.exception.SystemException {
190                    return _expandoColumnLocalService.getExpandoColumns(start, end);
191            }
192    
193            /**
194            * Returns the number of expando columns.
195            *
196            * @return the number of expando columns
197            * @throws SystemException if a system exception occurred
198            */
199            public int getExpandoColumnsCount()
200                    throws com.liferay.portal.kernel.exception.SystemException {
201                    return _expandoColumnLocalService.getExpandoColumnsCount();
202            }
203    
204            /**
205            * Updates the expando column in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
206            *
207            * @param expandoColumn the expando column
208            * @return the expando column that was updated
209            * @throws SystemException if a system exception occurred
210            */
211            public com.liferay.portlet.expando.model.ExpandoColumn updateExpandoColumn(
212                    com.liferay.portlet.expando.model.ExpandoColumn expandoColumn)
213                    throws com.liferay.portal.kernel.exception.SystemException {
214                    return _expandoColumnLocalService.updateExpandoColumn(expandoColumn);
215            }
216    
217            /**
218            * Updates the expando column in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
219            *
220            * @param expandoColumn the expando column
221            * @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.
222            * @return the expando column that was updated
223            * @throws SystemException if a system exception occurred
224            */
225            public com.liferay.portlet.expando.model.ExpandoColumn updateExpandoColumn(
226                    com.liferay.portlet.expando.model.ExpandoColumn expandoColumn,
227                    boolean merge)
228                    throws com.liferay.portal.kernel.exception.SystemException {
229                    return _expandoColumnLocalService.updateExpandoColumn(expandoColumn,
230                            merge);
231            }
232    
233            /**
234            * Returns the Spring bean ID for this bean.
235            *
236            * @return the Spring bean ID for this bean
237            */
238            public java.lang.String getBeanIdentifier() {
239                    return _expandoColumnLocalService.getBeanIdentifier();
240            }
241    
242            /**
243            * Sets the Spring bean ID for this bean.
244            *
245            * @param beanIdentifier the Spring bean ID for this bean
246            */
247            public void setBeanIdentifier(java.lang.String beanIdentifier) {
248                    _expandoColumnLocalService.setBeanIdentifier(beanIdentifier);
249            }
250    
251            public com.liferay.portlet.expando.model.ExpandoColumn addColumn(
252                    long tableId, java.lang.String name, int type)
253                    throws com.liferay.portal.kernel.exception.PortalException,
254                            com.liferay.portal.kernel.exception.SystemException {
255                    return _expandoColumnLocalService.addColumn(tableId, name, type);
256            }
257    
258            public com.liferay.portlet.expando.model.ExpandoColumn addColumn(
259                    long tableId, java.lang.String name, int type,
260                    java.lang.Object defaultData)
261                    throws com.liferay.portal.kernel.exception.PortalException,
262                            com.liferay.portal.kernel.exception.SystemException {
263                    return _expandoColumnLocalService.addColumn(tableId, name, type,
264                            defaultData);
265            }
266    
267            public void deleteColumn(
268                    com.liferay.portlet.expando.model.ExpandoColumn column)
269                    throws com.liferay.portal.kernel.exception.SystemException {
270                    _expandoColumnLocalService.deleteColumn(column);
271            }
272    
273            public void deleteColumn(long columnId)
274                    throws com.liferay.portal.kernel.exception.PortalException,
275                            com.liferay.portal.kernel.exception.SystemException {
276                    _expandoColumnLocalService.deleteColumn(columnId);
277            }
278    
279            public void deleteColumn(long companyId, long classNameId,
280                    java.lang.String tableName, java.lang.String name)
281                    throws com.liferay.portal.kernel.exception.PortalException,
282                            com.liferay.portal.kernel.exception.SystemException {
283                    _expandoColumnLocalService.deleteColumn(companyId, classNameId,
284                            tableName, name);
285            }
286    
287            public void deleteColumn(long tableId, java.lang.String name)
288                    throws com.liferay.portal.kernel.exception.PortalException,
289                            com.liferay.portal.kernel.exception.SystemException {
290                    _expandoColumnLocalService.deleteColumn(tableId, name);
291            }
292    
293            public void deleteColumn(long companyId, java.lang.String className,
294                    java.lang.String tableName, java.lang.String name)
295                    throws com.liferay.portal.kernel.exception.PortalException,
296                            com.liferay.portal.kernel.exception.SystemException {
297                    _expandoColumnLocalService.deleteColumn(companyId, className,
298                            tableName, name);
299            }
300    
301            public void deleteColumns(long tableId)
302                    throws com.liferay.portal.kernel.exception.SystemException {
303                    _expandoColumnLocalService.deleteColumns(tableId);
304            }
305    
306            public void deleteColumns(long companyId, long classNameId,
307                    java.lang.String tableName)
308                    throws com.liferay.portal.kernel.exception.PortalException,
309                            com.liferay.portal.kernel.exception.SystemException {
310                    _expandoColumnLocalService.deleteColumns(companyId, classNameId,
311                            tableName);
312            }
313    
314            public void deleteColumns(long companyId, java.lang.String className,
315                    java.lang.String tableName)
316                    throws com.liferay.portal.kernel.exception.PortalException,
317                            com.liferay.portal.kernel.exception.SystemException {
318                    _expandoColumnLocalService.deleteColumns(companyId, className, tableName);
319            }
320    
321            public com.liferay.portlet.expando.model.ExpandoColumn getColumn(
322                    long columnId)
323                    throws com.liferay.portal.kernel.exception.PortalException,
324                            com.liferay.portal.kernel.exception.SystemException {
325                    return _expandoColumnLocalService.getColumn(columnId);
326            }
327    
328            public com.liferay.portlet.expando.model.ExpandoColumn getColumn(
329                    long companyId, long classNameId, java.lang.String tableName,
330                    java.lang.String name)
331                    throws com.liferay.portal.kernel.exception.SystemException {
332                    return _expandoColumnLocalService.getColumn(companyId, classNameId,
333                            tableName, name);
334            }
335    
336            public com.liferay.portlet.expando.model.ExpandoColumn getColumn(
337                    long tableId, java.lang.String name)
338                    throws com.liferay.portal.kernel.exception.PortalException,
339                            com.liferay.portal.kernel.exception.SystemException {
340                    return _expandoColumnLocalService.getColumn(tableId, name);
341            }
342    
343            public com.liferay.portlet.expando.model.ExpandoColumn getColumn(
344                    long companyId, java.lang.String className, java.lang.String tableName,
345                    java.lang.String name)
346                    throws com.liferay.portal.kernel.exception.SystemException {
347                    return _expandoColumnLocalService.getColumn(companyId, className,
348                            tableName, name);
349            }
350    
351            public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getColumns(
352                    long tableId)
353                    throws com.liferay.portal.kernel.exception.SystemException {
354                    return _expandoColumnLocalService.getColumns(tableId);
355            }
356    
357            public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getColumns(
358                    long companyId, long classNameId, java.lang.String tableName)
359                    throws com.liferay.portal.kernel.exception.SystemException {
360                    return _expandoColumnLocalService.getColumns(companyId, classNameId,
361                            tableName);
362            }
363    
364            public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getColumns(
365                    long companyId, java.lang.String className, java.lang.String tableName)
366                    throws com.liferay.portal.kernel.exception.SystemException {
367                    return _expandoColumnLocalService.getColumns(companyId, className,
368                            tableName);
369            }
370    
371            public int getColumnsCount(long tableId)
372                    throws com.liferay.portal.kernel.exception.SystemException {
373                    return _expandoColumnLocalService.getColumnsCount(tableId);
374            }
375    
376            public int getColumnsCount(long companyId, long classNameId,
377                    java.lang.String tableName)
378                    throws com.liferay.portal.kernel.exception.SystemException {
379                    return _expandoColumnLocalService.getColumnsCount(companyId,
380                            classNameId, tableName);
381            }
382    
383            public int getColumnsCount(long companyId, java.lang.String className,
384                    java.lang.String tableName)
385                    throws com.liferay.portal.kernel.exception.SystemException {
386                    return _expandoColumnLocalService.getColumnsCount(companyId, className,
387                            tableName);
388            }
389    
390            public com.liferay.portlet.expando.model.ExpandoColumn getDefaultTableColumn(
391                    long companyId, long classNameId, java.lang.String name)
392                    throws com.liferay.portal.kernel.exception.SystemException {
393                    return _expandoColumnLocalService.getDefaultTableColumn(companyId,
394                            classNameId, name);
395            }
396    
397            public com.liferay.portlet.expando.model.ExpandoColumn getDefaultTableColumn(
398                    long companyId, java.lang.String className, java.lang.String name)
399                    throws com.liferay.portal.kernel.exception.SystemException {
400                    return _expandoColumnLocalService.getDefaultTableColumn(companyId,
401                            className, name);
402            }
403    
404            public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getDefaultTableColumns(
405                    long companyId, long classNameId)
406                    throws com.liferay.portal.kernel.exception.SystemException {
407                    return _expandoColumnLocalService.getDefaultTableColumns(companyId,
408                            classNameId);
409            }
410    
411            public java.util.List<com.liferay.portlet.expando.model.ExpandoColumn> getDefaultTableColumns(
412                    long companyId, java.lang.String className)
413                    throws com.liferay.portal.kernel.exception.SystemException {
414                    return _expandoColumnLocalService.getDefaultTableColumns(companyId,
415                            className);
416            }
417    
418            public int getDefaultTableColumnsCount(long companyId, long classNameId)
419                    throws com.liferay.portal.kernel.exception.SystemException {
420                    return _expandoColumnLocalService.getDefaultTableColumnsCount(companyId,
421                            classNameId);
422            }
423    
424            public int getDefaultTableColumnsCount(long companyId,
425                    java.lang.String className)
426                    throws com.liferay.portal.kernel.exception.SystemException {
427                    return _expandoColumnLocalService.getDefaultTableColumnsCount(companyId,
428                            className);
429            }
430    
431            public com.liferay.portlet.expando.model.ExpandoColumn updateColumn(
432                    long columnId, java.lang.String name, int type)
433                    throws com.liferay.portal.kernel.exception.PortalException,
434                            com.liferay.portal.kernel.exception.SystemException {
435                    return _expandoColumnLocalService.updateColumn(columnId, name, type);
436            }
437    
438            public com.liferay.portlet.expando.model.ExpandoColumn updateColumn(
439                    long columnId, java.lang.String name, int type,
440                    java.lang.Object defaultData)
441                    throws com.liferay.portal.kernel.exception.PortalException,
442                            com.liferay.portal.kernel.exception.SystemException {
443                    return _expandoColumnLocalService.updateColumn(columnId, name, type,
444                            defaultData);
445            }
446    
447            public com.liferay.portlet.expando.model.ExpandoColumn updateTypeSettings(
448                    long columnId, java.lang.String typeSettings)
449                    throws com.liferay.portal.kernel.exception.PortalException,
450                            com.liferay.portal.kernel.exception.SystemException {
451                    return _expandoColumnLocalService.updateTypeSettings(columnId,
452                            typeSettings);
453            }
454    
455            public ExpandoColumnLocalService getWrappedExpandoColumnLocalService() {
456                    return _expandoColumnLocalService;
457            }
458    
459            public void setWrappedExpandoColumnLocalService(
460                    ExpandoColumnLocalService expandoColumnLocalService) {
461                    _expandoColumnLocalService = expandoColumnLocalService;
462            }
463    
464            private ExpandoColumnLocalService _expandoColumnLocalService;
465    }