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