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