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