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