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