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