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