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