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.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
233                    return _expandoRowLocalService.getActionableDynamicQuery();
234            }
235    
236            /**
237            * Returns the Spring bean ID for this bean.
238            *
239            * @return the Spring bean ID for this bean
240            */
241            @Override
242            public java.lang.String getBeanIdentifier() {
243                    return _expandoRowLocalService.getBeanIdentifier();
244            }
245    
246            @Override
247            public java.util.List<com.liferay.portlet.expando.model.ExpandoRow> getDefaultTableRows(
248                    long companyId, java.lang.String className, int start, int end) {
249                    return _expandoRowLocalService.getDefaultTableRows(companyId,
250                            className, start, end);
251            }
252    
253            @Override
254            public java.util.List<com.liferay.portlet.expando.model.ExpandoRow> getDefaultTableRows(
255                    long companyId, long classNameId, int start, int end) {
256                    return _expandoRowLocalService.getDefaultTableRows(companyId,
257                            classNameId, start, end);
258            }
259    
260            @Override
261            public int getDefaultTableRowsCount(long companyId,
262                    java.lang.String className) {
263                    return _expandoRowLocalService.getDefaultTableRowsCount(companyId,
264                            className);
265            }
266    
267            @Override
268            public int getDefaultTableRowsCount(long companyId, long classNameId) {
269                    return _expandoRowLocalService.getDefaultTableRowsCount(companyId,
270                            classNameId);
271            }
272    
273            /**
274            * Returns the expando row with the primary key.
275            *
276            * @param rowId the primary key of the expando row
277            * @return the expando row
278            * @throws PortalException if a expando row with the primary key could not be found
279            */
280            @Override
281            public com.liferay.portlet.expando.model.ExpandoRow getExpandoRow(
282                    long rowId) throws com.liferay.portal.kernel.exception.PortalException {
283                    return _expandoRowLocalService.getExpandoRow(rowId);
284            }
285    
286            /**
287            * Returns a range of all the expando rows.
288            *
289            * <p>
290            * 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.
291            * </p>
292            *
293            * @param start the lower bound of the range of expando rows
294            * @param end the upper bound of the range of expando rows (not inclusive)
295            * @return the range of expando rows
296            */
297            @Override
298            public java.util.List<com.liferay.portlet.expando.model.ExpandoRow> getExpandoRows(
299                    int start, int end) {
300                    return _expandoRowLocalService.getExpandoRows(start, end);
301            }
302    
303            /**
304            * Returns the number of expando rows.
305            *
306            * @return the number of expando rows
307            */
308            @Override
309            public int getExpandoRowsCount() {
310                    return _expandoRowLocalService.getExpandoRowsCount();
311            }
312    
313            @Override
314            public com.liferay.portal.model.PersistedModel getPersistedModel(
315                    java.io.Serializable primaryKeyObj)
316                    throws com.liferay.portal.kernel.exception.PortalException {
317                    return _expandoRowLocalService.getPersistedModel(primaryKeyObj);
318            }
319    
320            @Override
321            public com.liferay.portlet.expando.model.ExpandoRow getRow(long companyId,
322                    java.lang.String className, java.lang.String tableName, long classPK) {
323                    return _expandoRowLocalService.getRow(companyId, className, tableName,
324                            classPK);
325            }
326    
327            @Override
328            public com.liferay.portlet.expando.model.ExpandoRow getRow(long companyId,
329                    long classNameId, java.lang.String tableName, long classPK) {
330                    return _expandoRowLocalService.getRow(companyId, classNameId,
331                            tableName, classPK);
332            }
333    
334            @Override
335            public com.liferay.portlet.expando.model.ExpandoRow getRow(long rowId)
336                    throws com.liferay.portal.kernel.exception.PortalException {
337                    return _expandoRowLocalService.getRow(rowId);
338            }
339    
340            @Override
341            public com.liferay.portlet.expando.model.ExpandoRow getRow(long tableId,
342                    long classPK)
343                    throws com.liferay.portal.kernel.exception.PortalException {
344                    return _expandoRowLocalService.getRow(tableId, classPK);
345            }
346    
347            /**
348            * @deprecated As of 6.1.0, replaced by {@link #getRows(long, String,
349            String, int, int)}
350            */
351            @Deprecated
352            @Override
353            public java.util.List<com.liferay.portlet.expando.model.ExpandoRow> getRows(
354                    java.lang.String className, java.lang.String tableName, int start,
355                    int end) {
356                    return _expandoRowLocalService.getRows(className, tableName, start, end);
357            }
358    
359            @Override
360            public java.util.List<com.liferay.portlet.expando.model.ExpandoRow> getRows(
361                    long companyId, java.lang.String className, java.lang.String tableName,
362                    int start, int end) {
363                    return _expandoRowLocalService.getRows(companyId, className, tableName,
364                            start, end);
365            }
366    
367            @Override
368            public java.util.List<com.liferay.portlet.expando.model.ExpandoRow> getRows(
369                    long companyId, long classNameId, java.lang.String tableName,
370                    int start, int end) {
371                    return _expandoRowLocalService.getRows(companyId, classNameId,
372                            tableName, start, end);
373            }
374    
375            @Override
376            public java.util.List<com.liferay.portlet.expando.model.ExpandoRow> getRows(
377                    long tableId, int start, int end) {
378                    return _expandoRowLocalService.getRows(tableId, start, end);
379            }
380    
381            /**
382            * @deprecated As of 6.1.0, replaced by {@link #getRowsCount(long, String,
383            String)}
384            */
385            @Deprecated
386            @Override
387            public int getRowsCount(java.lang.String className,
388                    java.lang.String tableName) {
389                    return _expandoRowLocalService.getRowsCount(className, tableName);
390            }
391    
392            @Override
393            public int getRowsCount(long companyId, java.lang.String className,
394                    java.lang.String tableName) {
395                    return _expandoRowLocalService.getRowsCount(companyId, className,
396                            tableName);
397            }
398    
399            @Override
400            public int getRowsCount(long companyId, long classNameId,
401                    java.lang.String tableName) {
402                    return _expandoRowLocalService.getRowsCount(companyId, classNameId,
403                            tableName);
404            }
405    
406            @Override
407            public int getRowsCount(long tableId) {
408                    return _expandoRowLocalService.getRowsCount(tableId);
409            }
410    
411            /**
412            * Sets the Spring bean ID for this bean.
413            *
414            * @param beanIdentifier the Spring bean ID for this bean
415            */
416            @Override
417            public void setBeanIdentifier(java.lang.String beanIdentifier) {
418                    _expandoRowLocalService.setBeanIdentifier(beanIdentifier);
419            }
420    
421            /**
422            * Updates the expando row in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
423            *
424            * @param expandoRow the expando row
425            * @return the expando row that was updated
426            */
427            @Override
428            public com.liferay.portlet.expando.model.ExpandoRow updateExpandoRow(
429                    com.liferay.portlet.expando.model.ExpandoRow expandoRow) {
430                    return _expandoRowLocalService.updateExpandoRow(expandoRow);
431            }
432    
433            /**
434             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
435             */
436            @Deprecated
437            public ExpandoRowLocalService getWrappedExpandoRowLocalService() {
438                    return _expandoRowLocalService;
439            }
440    
441            /**
442             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
443             */
444            @Deprecated
445            public void setWrappedExpandoRowLocalService(
446                    ExpandoRowLocalService expandoRowLocalService) {
447                    _expandoRowLocalService = expandoRowLocalService;
448            }
449    
450            @Override
451            public ExpandoRowLocalService getWrappedService() {
452                    return _expandoRowLocalService;
453            }
454    
455            @Override
456            public void setWrappedService(ExpandoRowLocalService expandoRowLocalService) {
457                    _expandoRowLocalService = expandoRowLocalService;
458            }
459    
460            private ExpandoRowLocalService _expandoRowLocalService;
461    }