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            @Override
063            public com.liferay.portlet.expando.model.ExpandoTable addTable(
064                    long companyId, java.lang.String className, java.lang.String name)
065                    throws com.liferay.portal.kernel.exception.PortalException {
066                    return _expandoTableLocalService.addTable(companyId, className, name);
067            }
068    
069            @Override
070            public com.liferay.portlet.expando.model.ExpandoTable addTable(
071                    long companyId, long classNameId, java.lang.String name)
072                    throws com.liferay.portal.kernel.exception.PortalException {
073                    return _expandoTableLocalService.addTable(companyId, classNameId, name);
074            }
075    
076            /**
077            * Creates a new expando table with the primary key. Does not add the expando table to the database.
078            *
079            * @param tableId the primary key for the new expando table
080            * @return the new expando table
081            */
082            @Override
083            public com.liferay.portlet.expando.model.ExpandoTable createExpandoTable(
084                    long tableId) {
085                    return _expandoTableLocalService.createExpandoTable(tableId);
086            }
087    
088            /**
089            * Deletes the expando table from the database. Also notifies the appropriate model listeners.
090            *
091            * @param expandoTable the expando table
092            * @return the expando table that was removed
093            */
094            @Override
095            public com.liferay.portlet.expando.model.ExpandoTable deleteExpandoTable(
096                    com.liferay.portlet.expando.model.ExpandoTable expandoTable) {
097                    return _expandoTableLocalService.deleteExpandoTable(expandoTable);
098            }
099    
100            /**
101            * Deletes the expando table with the primary key from the database. Also notifies the appropriate model listeners.
102            *
103            * @param tableId the primary key of the expando table
104            * @return the expando table that was removed
105            * @throws PortalException if a expando table with the primary key could not be found
106            */
107            @Override
108            public com.liferay.portlet.expando.model.ExpandoTable deleteExpandoTable(
109                    long tableId)
110                    throws com.liferay.portal.kernel.exception.PortalException {
111                    return _expandoTableLocalService.deleteExpandoTable(tableId);
112            }
113    
114            /**
115            * @throws PortalException
116            */
117            @Override
118            public com.liferay.portal.model.PersistedModel deletePersistedModel(
119                    com.liferay.portal.model.PersistedModel persistedModel)
120                    throws com.liferay.portal.kernel.exception.PortalException {
121                    return _expandoTableLocalService.deletePersistedModel(persistedModel);
122            }
123    
124            @Override
125            public void deleteTable(long companyId, java.lang.String className,
126                    java.lang.String name)
127                    throws com.liferay.portal.kernel.exception.PortalException {
128                    _expandoTableLocalService.deleteTable(companyId, className, name);
129            }
130    
131            @Override
132            public void deleteTable(long companyId, long classNameId,
133                    java.lang.String name)
134                    throws com.liferay.portal.kernel.exception.PortalException {
135                    _expandoTableLocalService.deleteTable(companyId, classNameId, name);
136            }
137    
138            @Override
139            public void deleteTable(
140                    com.liferay.portlet.expando.model.ExpandoTable table) {
141                    _expandoTableLocalService.deleteTable(table);
142            }
143    
144            @Override
145            public void deleteTable(long tableId)
146                    throws com.liferay.portal.kernel.exception.PortalException {
147                    _expandoTableLocalService.deleteTable(tableId);
148            }
149    
150            @Override
151            public void deleteTables(long companyId, java.lang.String className) {
152                    _expandoTableLocalService.deleteTables(companyId, className);
153            }
154    
155            @Override
156            public void deleteTables(long companyId, long classNameId) {
157                    _expandoTableLocalService.deleteTables(companyId, classNameId);
158            }
159    
160            @Override
161            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
162                    return _expandoTableLocalService.dynamicQuery();
163            }
164    
165            /**
166            * Performs a dynamic query on the database and returns the matching rows.
167            *
168            * @param dynamicQuery the dynamic query
169            * @return the matching rows
170            */
171            @Override
172            public <T> java.util.List<T> dynamicQuery(
173                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
174                    return _expandoTableLocalService.dynamicQuery(dynamicQuery);
175            }
176    
177            /**
178            * Performs a dynamic query on the database and returns a range of the matching rows.
179            *
180            * <p>
181            * 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.
182            * </p>
183            *
184            * @param dynamicQuery the dynamic query
185            * @param start the lower bound of the range of model instances
186            * @param end the upper bound of the range of model instances (not inclusive)
187            * @return the range of matching rows
188            */
189            @Override
190            public <T> java.util.List<T> dynamicQuery(
191                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
192                    int end) {
193                    return _expandoTableLocalService.dynamicQuery(dynamicQuery, start, end);
194            }
195    
196            /**
197            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
198            *
199            * <p>
200            * 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.
201            * </p>
202            *
203            * @param dynamicQuery the dynamic query
204            * @param start the lower bound of the range of model instances
205            * @param end the upper bound of the range of model instances (not inclusive)
206            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
207            * @return the ordered range of matching rows
208            */
209            @Override
210            public <T> java.util.List<T> dynamicQuery(
211                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
212                    int end,
213                    com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
214                    return _expandoTableLocalService.dynamicQuery(dynamicQuery, start, end,
215                            orderByComparator);
216            }
217    
218            /**
219            * Returns the number of rows matching the dynamic query.
220            *
221            * @param dynamicQuery the dynamic query
222            * @return the number of rows matching the dynamic query
223            */
224            @Override
225            public long dynamicQueryCount(
226                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
227                    return _expandoTableLocalService.dynamicQueryCount(dynamicQuery);
228            }
229    
230            /**
231            * Returns the number of rows matching the dynamic query.
232            *
233            * @param dynamicQuery the dynamic query
234            * @param projection the projection to apply to the query
235            * @return the number of rows matching the dynamic query
236            */
237            @Override
238            public long dynamicQueryCount(
239                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
240                    com.liferay.portal.kernel.dao.orm.Projection projection) {
241                    return _expandoTableLocalService.dynamicQueryCount(dynamicQuery,
242                            projection);
243            }
244    
245            @Override
246            public com.liferay.portlet.expando.model.ExpandoTable fetchDefaultTable(
247                    long companyId, java.lang.String className) {
248                    return _expandoTableLocalService.fetchDefaultTable(companyId, className);
249            }
250    
251            @Override
252            public com.liferay.portlet.expando.model.ExpandoTable fetchDefaultTable(
253                    long companyId, long classNameId) {
254                    return _expandoTableLocalService.fetchDefaultTable(companyId,
255                            classNameId);
256            }
257    
258            @Override
259            public com.liferay.portlet.expando.model.ExpandoTable fetchExpandoTable(
260                    long tableId) {
261                    return _expandoTableLocalService.fetchExpandoTable(tableId);
262            }
263    
264            @Override
265            public com.liferay.portlet.expando.model.ExpandoTable fetchTable(
266                    long companyId, long classNameId, java.lang.String name) {
267                    return _expandoTableLocalService.fetchTable(companyId, classNameId, name);
268            }
269    
270            @Override
271            public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
272                    return _expandoTableLocalService.getActionableDynamicQuery();
273            }
274    
275            @Override
276            public com.liferay.portlet.expando.model.ExpandoTable getDefaultTable(
277                    long companyId, java.lang.String className)
278                    throws com.liferay.portal.kernel.exception.PortalException {
279                    return _expandoTableLocalService.getDefaultTable(companyId, className);
280            }
281    
282            @Override
283            public com.liferay.portlet.expando.model.ExpandoTable getDefaultTable(
284                    long companyId, long classNameId)
285                    throws com.liferay.portal.kernel.exception.PortalException {
286                    return _expandoTableLocalService.getDefaultTable(companyId, classNameId);
287            }
288    
289            /**
290            * Returns the expando table with the primary key.
291            *
292            * @param tableId the primary key of the expando table
293            * @return the expando table
294            * @throws PortalException if a expando table with the primary key could not be found
295            */
296            @Override
297            public com.liferay.portlet.expando.model.ExpandoTable getExpandoTable(
298                    long tableId)
299                    throws com.liferay.portal.kernel.exception.PortalException {
300                    return _expandoTableLocalService.getExpandoTable(tableId);
301            }
302    
303            /**
304            * Returns a range of all the expando tables.
305            *
306            * <p>
307            * 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.
308            * </p>
309            *
310            * @param start the lower bound of the range of expando tables
311            * @param end the upper bound of the range of expando tables (not inclusive)
312            * @return the range of expando tables
313            */
314            @Override
315            public java.util.List<com.liferay.portlet.expando.model.ExpandoTable> getExpandoTables(
316                    int start, int end) {
317                    return _expandoTableLocalService.getExpandoTables(start, end);
318            }
319    
320            /**
321            * Returns the number of expando tables.
322            *
323            * @return the number of expando tables
324            */
325            @Override
326            public int getExpandoTablesCount() {
327                    return _expandoTableLocalService.getExpandoTablesCount();
328            }
329    
330            @Override
331            public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
332                    return _expandoTableLocalService.getIndexableActionableDynamicQuery();
333            }
334    
335            /**
336            * Returns the OSGi service identifier.
337            *
338            * @return the OSGi service identifier
339            */
340            @Override
341            public java.lang.String getOSGiServiceIdentifier() {
342                    return _expandoTableLocalService.getOSGiServiceIdentifier();
343            }
344    
345            @Override
346            public com.liferay.portal.model.PersistedModel getPersistedModel(
347                    java.io.Serializable primaryKeyObj)
348                    throws com.liferay.portal.kernel.exception.PortalException {
349                    return _expandoTableLocalService.getPersistedModel(primaryKeyObj);
350            }
351    
352            @Override
353            public com.liferay.portlet.expando.model.ExpandoTable getTable(
354                    long companyId, java.lang.String className, java.lang.String name)
355                    throws com.liferay.portal.kernel.exception.PortalException {
356                    return _expandoTableLocalService.getTable(companyId, className, name);
357            }
358    
359            @Override
360            public com.liferay.portlet.expando.model.ExpandoTable getTable(
361                    long companyId, long classNameId, java.lang.String name)
362                    throws com.liferay.portal.kernel.exception.PortalException {
363                    return _expandoTableLocalService.getTable(companyId, classNameId, name);
364            }
365    
366            @Override
367            public com.liferay.portlet.expando.model.ExpandoTable getTable(long tableId)
368                    throws com.liferay.portal.kernel.exception.PortalException {
369                    return _expandoTableLocalService.getTable(tableId);
370            }
371    
372            @Override
373            public java.util.List<com.liferay.portlet.expando.model.ExpandoTable> getTables(
374                    long companyId, java.lang.String className) {
375                    return _expandoTableLocalService.getTables(companyId, className);
376            }
377    
378            @Override
379            public java.util.List<com.liferay.portlet.expando.model.ExpandoTable> getTables(
380                    long companyId, long classNameId) {
381                    return _expandoTableLocalService.getTables(companyId, classNameId);
382            }
383    
384            /**
385            * Updates the expando table in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
386            *
387            * @param expandoTable the expando table
388            * @return the expando table that was updated
389            */
390            @Override
391            public com.liferay.portlet.expando.model.ExpandoTable updateExpandoTable(
392                    com.liferay.portlet.expando.model.ExpandoTable expandoTable) {
393                    return _expandoTableLocalService.updateExpandoTable(expandoTable);
394            }
395    
396            @Override
397            public com.liferay.portlet.expando.model.ExpandoTable updateTable(
398                    long tableId, java.lang.String name)
399                    throws com.liferay.portal.kernel.exception.PortalException {
400                    return _expandoTableLocalService.updateTable(tableId, name);
401            }
402    
403            @Override
404            public ExpandoTableLocalService getWrappedService() {
405                    return _expandoTableLocalService;
406            }
407    
408            @Override
409            public void setWrappedService(
410                    ExpandoTableLocalService expandoTableLocalService) {
411                    _expandoTableLocalService = expandoTableLocalService;
412            }
413    
414            private ExpandoTableLocalService _expandoTableLocalService;
415    }