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