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