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            @Override
300            public com.liferay.portlet.expando.model.ExpandoTable getDefaultTable(
301                    long companyId, java.lang.String className)
302                    throws com.liferay.portal.kernel.exception.PortalException {
303                    return _expandoTableLocalService.getDefaultTable(companyId, className);
304            }
305    
306            @Override
307            public com.liferay.portlet.expando.model.ExpandoTable getDefaultTable(
308                    long companyId, long classNameId)
309                    throws com.liferay.portal.kernel.exception.PortalException {
310                    return _expandoTableLocalService.getDefaultTable(companyId, classNameId);
311            }
312    
313            /**
314            * Returns the expando table with the primary key.
315            *
316            * @param tableId the primary key of the expando table
317            * @return the expando table
318            * @throws PortalException if a expando table with the primary key could not be found
319            */
320            @Override
321            public com.liferay.portlet.expando.model.ExpandoTable getExpandoTable(
322                    long tableId)
323                    throws com.liferay.portal.kernel.exception.PortalException {
324                    return _expandoTableLocalService.getExpandoTable(tableId);
325            }
326    
327            /**
328            * Returns a range of all the expando tables.
329            *
330            * <p>
331            * 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.
332            * </p>
333            *
334            * @param start the lower bound of the range of expando tables
335            * @param end the upper bound of the range of expando tables (not inclusive)
336            * @return the range of expando tables
337            */
338            @Override
339            public java.util.List<com.liferay.portlet.expando.model.ExpandoTable> getExpandoTables(
340                    int start, int end) {
341                    return _expandoTableLocalService.getExpandoTables(start, end);
342            }
343    
344            /**
345            * Returns the number of expando tables.
346            *
347            * @return the number of expando tables
348            */
349            @Override
350            public int getExpandoTablesCount() {
351                    return _expandoTableLocalService.getExpandoTablesCount();
352            }
353    
354            @Override
355            public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
356                    return _expandoTableLocalService.getIndexableActionableDynamicQuery();
357            }
358    
359            /**
360            * Returns the OSGi service identifier.
361            *
362            * @return the OSGi service identifier
363            */
364            @Override
365            public java.lang.String getOSGiServiceIdentifier() {
366                    return _expandoTableLocalService.getOSGiServiceIdentifier();
367            }
368    
369            @Override
370            public com.liferay.portal.model.PersistedModel getPersistedModel(
371                    java.io.Serializable primaryKeyObj)
372                    throws com.liferay.portal.kernel.exception.PortalException {
373                    return _expandoTableLocalService.getPersistedModel(primaryKeyObj);
374            }
375    
376            /**
377            * @deprecated As of 6.1.0, replaced by {@link #getTable(long, String,
378            String)}
379            */
380            @Deprecated
381            @Override
382            public com.liferay.portlet.expando.model.ExpandoTable getTable(
383                    java.lang.String className, java.lang.String name)
384                    throws com.liferay.portal.kernel.exception.PortalException {
385                    return _expandoTableLocalService.getTable(className, name);
386            }
387    
388            /**
389            * @deprecated As of 6.1.0, replaced by {@link #getTable(long, long,
390            String)}
391            */
392            @Deprecated
393            @Override
394            public com.liferay.portlet.expando.model.ExpandoTable getTable(
395                    long classNameId, java.lang.String name)
396                    throws com.liferay.portal.kernel.exception.PortalException {
397                    return _expandoTableLocalService.getTable(classNameId, name);
398            }
399    
400            @Override
401            public com.liferay.portlet.expando.model.ExpandoTable getTable(
402                    long companyId, java.lang.String className, java.lang.String name)
403                    throws com.liferay.portal.kernel.exception.PortalException {
404                    return _expandoTableLocalService.getTable(companyId, className, name);
405            }
406    
407            @Override
408            public com.liferay.portlet.expando.model.ExpandoTable getTable(
409                    long companyId, long classNameId, java.lang.String name)
410                    throws com.liferay.portal.kernel.exception.PortalException {
411                    return _expandoTableLocalService.getTable(companyId, classNameId, name);
412            }
413    
414            @Override
415            public com.liferay.portlet.expando.model.ExpandoTable getTable(long tableId)
416                    throws com.liferay.portal.kernel.exception.PortalException {
417                    return _expandoTableLocalService.getTable(tableId);
418            }
419    
420            @Override
421            public java.util.List<com.liferay.portlet.expando.model.ExpandoTable> getTables(
422                    long companyId, java.lang.String className) {
423                    return _expandoTableLocalService.getTables(companyId, className);
424            }
425    
426            @Override
427            public java.util.List<com.liferay.portlet.expando.model.ExpandoTable> getTables(
428                    long companyId, long classNameId) {
429                    return _expandoTableLocalService.getTables(companyId, classNameId);
430            }
431    
432            /**
433            * Updates the expando table in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
434            *
435            * @param expandoTable the expando table
436            * @return the expando table that was updated
437            */
438            @Override
439            public com.liferay.portlet.expando.model.ExpandoTable updateExpandoTable(
440                    com.liferay.portlet.expando.model.ExpandoTable expandoTable) {
441                    return _expandoTableLocalService.updateExpandoTable(expandoTable);
442            }
443    
444            @Override
445            public com.liferay.portlet.expando.model.ExpandoTable updateTable(
446                    long tableId, java.lang.String name)
447                    throws com.liferay.portal.kernel.exception.PortalException {
448                    return _expandoTableLocalService.updateTable(tableId, name);
449            }
450    
451            /**
452             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
453             */
454            @Deprecated
455            public ExpandoTableLocalService getWrappedExpandoTableLocalService() {
456                    return _expandoTableLocalService;
457            }
458    
459            /**
460             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
461             */
462            @Deprecated
463            public void setWrappedExpandoTableLocalService(
464                    ExpandoTableLocalService expandoTableLocalService) {
465                    _expandoTableLocalService = expandoTableLocalService;
466            }
467    
468            @Override
469            public ExpandoTableLocalService getWrappedService() {
470                    return _expandoTableLocalService;
471            }
472    
473            @Override
474            public void setWrappedService(
475                    ExpandoTableLocalService expandoTableLocalService) {
476                    _expandoTableLocalService = expandoTableLocalService;
477            }
478    
479            private ExpandoTableLocalService _expandoTableLocalService;
480    }