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