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.expando.kernel.service;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.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.expando.kernel.model.ExpandoRow addExpandoRow(
044                    com.liferay.expando.kernel.model.ExpandoRow expandoRow) {
045                    return _expandoRowLocalService.addExpandoRow(expandoRow);
046            }
047    
048            @Override
049            public com.liferay.expando.kernel.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.expando.kernel.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.expando.kernel.model.ExpandoRow deleteExpandoRow(
075                    com.liferay.expando.kernel.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.expando.kernel.model.ExpandoRow deleteExpandoRow(
088                    long rowId) throws com.liferay.portal.kernel.exception.PortalException {
089                    return _expandoRowLocalService.deleteExpandoRow(rowId);
090            }
091    
092            @Override
093            public com.liferay.expando.kernel.model.ExpandoRow fetchExpandoRow(
094                    long rowId) {
095                    return _expandoRowLocalService.fetchExpandoRow(rowId);
096            }
097    
098            @Override
099            public com.liferay.expando.kernel.model.ExpandoRow fetchRow(long tableId,
100                    long classPK) {
101                    return _expandoRowLocalService.fetchRow(tableId, classPK);
102            }
103    
104            /**
105            * Returns the expando row with the primary key.
106            *
107            * @param rowId the primary key of the expando row
108            * @return the expando row
109            * @throws PortalException if a expando row with the primary key could not be found
110            */
111            @Override
112            public com.liferay.expando.kernel.model.ExpandoRow getExpandoRow(long rowId)
113                    throws com.liferay.portal.kernel.exception.PortalException {
114                    return _expandoRowLocalService.getExpandoRow(rowId);
115            }
116    
117            @Override
118            public com.liferay.expando.kernel.model.ExpandoRow getRow(long companyId,
119                    java.lang.String className, java.lang.String tableName, long classPK) {
120                    return _expandoRowLocalService.getRow(companyId, className, tableName,
121                            classPK);
122            }
123    
124            @Override
125            public com.liferay.expando.kernel.model.ExpandoRow getRow(long companyId,
126                    long classNameId, java.lang.String tableName, long classPK) {
127                    return _expandoRowLocalService.getRow(companyId, classNameId,
128                            tableName, classPK);
129            }
130    
131            @Override
132            public com.liferay.expando.kernel.model.ExpandoRow getRow(long rowId)
133                    throws com.liferay.portal.kernel.exception.PortalException {
134                    return _expandoRowLocalService.getRow(rowId);
135            }
136    
137            @Override
138            public com.liferay.expando.kernel.model.ExpandoRow getRow(long tableId,
139                    long classPK)
140                    throws com.liferay.portal.kernel.exception.PortalException {
141                    return _expandoRowLocalService.getRow(tableId, classPK);
142            }
143    
144            /**
145            * Updates the expando row in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
146            *
147            * @param expandoRow the expando row
148            * @return the expando row that was updated
149            */
150            @Override
151            public com.liferay.expando.kernel.model.ExpandoRow updateExpandoRow(
152                    com.liferay.expando.kernel.model.ExpandoRow expandoRow) {
153                    return _expandoRowLocalService.updateExpandoRow(expandoRow);
154            }
155    
156            @Override
157            public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
158                    return _expandoRowLocalService.getActionableDynamicQuery();
159            }
160    
161            @Override
162            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
163                    return _expandoRowLocalService.dynamicQuery();
164            }
165    
166            @Override
167            public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
168                    return _expandoRowLocalService.getIndexableActionableDynamicQuery();
169            }
170    
171            /**
172            * @throws PortalException
173            */
174            @Override
175            public com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(
176                    com.liferay.portal.kernel.model.PersistedModel persistedModel)
177                    throws com.liferay.portal.kernel.exception.PortalException {
178                    return _expandoRowLocalService.deletePersistedModel(persistedModel);
179            }
180    
181            @Override
182            public com.liferay.portal.kernel.model.PersistedModel getPersistedModel(
183                    java.io.Serializable primaryKeyObj)
184                    throws com.liferay.portal.kernel.exception.PortalException {
185                    return _expandoRowLocalService.getPersistedModel(primaryKeyObj);
186            }
187    
188            @Override
189            public int getDefaultTableRowsCount(long companyId,
190                    java.lang.String className) {
191                    return _expandoRowLocalService.getDefaultTableRowsCount(companyId,
192                            className);
193            }
194    
195            @Override
196            public int getDefaultTableRowsCount(long companyId, long classNameId) {
197                    return _expandoRowLocalService.getDefaultTableRowsCount(companyId,
198                            classNameId);
199            }
200    
201            /**
202            * Returns the number of expando rows.
203            *
204            * @return the number of expando rows
205            */
206            @Override
207            public int getExpandoRowsCount() {
208                    return _expandoRowLocalService.getExpandoRowsCount();
209            }
210    
211            @Override
212            public int getRowsCount(long companyId, java.lang.String className,
213                    java.lang.String tableName) {
214                    return _expandoRowLocalService.getRowsCount(companyId, className,
215                            tableName);
216            }
217    
218            @Override
219            public int getRowsCount(long companyId, long classNameId,
220                    java.lang.String tableName) {
221                    return _expandoRowLocalService.getRowsCount(companyId, classNameId,
222                            tableName);
223            }
224    
225            @Override
226            public int getRowsCount(long tableId) {
227                    return _expandoRowLocalService.getRowsCount(tableId);
228            }
229    
230            /**
231            * Returns the OSGi service identifier.
232            *
233            * @return the OSGi service identifier
234            */
235            @Override
236            public java.lang.String getOSGiServiceIdentifier() {
237                    return _expandoRowLocalService.getOSGiServiceIdentifier();
238            }
239    
240            /**
241            * Performs a dynamic query on the database and returns the matching rows.
242            *
243            * @param dynamicQuery the dynamic query
244            * @return the matching rows
245            */
246            @Override
247            public <T> java.util.List<T> dynamicQuery(
248                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
249                    return _expandoRowLocalService.dynamicQuery(dynamicQuery);
250            }
251    
252            /**
253            * Performs a dynamic query on the database and returns a range of the matching rows.
254            *
255            * <p>
256            * 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.
257            * </p>
258            *
259            * @param dynamicQuery the dynamic query
260            * @param start the lower bound of the range of model instances
261            * @param end the upper bound of the range of model instances (not inclusive)
262            * @return the range of matching rows
263            */
264            @Override
265            public <T> java.util.List<T> dynamicQuery(
266                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
267                    int end) {
268                    return _expandoRowLocalService.dynamicQuery(dynamicQuery, start, end);
269            }
270    
271            /**
272            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
273            *
274            * <p>
275            * 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.
276            * </p>
277            *
278            * @param dynamicQuery the dynamic query
279            * @param start the lower bound of the range of model instances
280            * @param end the upper bound of the range of model instances (not inclusive)
281            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
282            * @return the ordered range of matching rows
283            */
284            @Override
285            public <T> java.util.List<T> dynamicQuery(
286                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
287                    int end,
288                    com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
289                    return _expandoRowLocalService.dynamicQuery(dynamicQuery, start, end,
290                            orderByComparator);
291            }
292    
293            @Override
294            public java.util.List<com.liferay.expando.kernel.model.ExpandoRow> getDefaultTableRows(
295                    long companyId, java.lang.String className, int start, int end) {
296                    return _expandoRowLocalService.getDefaultTableRows(companyId,
297                            className, start, end);
298            }
299    
300            @Override
301            public java.util.List<com.liferay.expando.kernel.model.ExpandoRow> getDefaultTableRows(
302                    long companyId, long classNameId, int start, int end) {
303                    return _expandoRowLocalService.getDefaultTableRows(companyId,
304                            classNameId, start, end);
305            }
306    
307            /**
308            * Returns a range of all the expando rows.
309            *
310            * <p>
311            * 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.
312            * </p>
313            *
314            * @param start the lower bound of the range of expando rows
315            * @param end the upper bound of the range of expando rows (not inclusive)
316            * @return the range of expando rows
317            */
318            @Override
319            public java.util.List<com.liferay.expando.kernel.model.ExpandoRow> getExpandoRows(
320                    int start, int end) {
321                    return _expandoRowLocalService.getExpandoRows(start, end);
322            }
323    
324            @Override
325            public java.util.List<com.liferay.expando.kernel.model.ExpandoRow> getRows(
326                    long companyId, java.lang.String className, java.lang.String tableName,
327                    int start, int end) {
328                    return _expandoRowLocalService.getRows(companyId, className, tableName,
329                            start, end);
330            }
331    
332            @Override
333            public java.util.List<com.liferay.expando.kernel.model.ExpandoRow> getRows(
334                    long companyId, long classNameId, java.lang.String tableName,
335                    int start, int end) {
336                    return _expandoRowLocalService.getRows(companyId, classNameId,
337                            tableName, start, end);
338            }
339    
340            @Override
341            public java.util.List<com.liferay.expando.kernel.model.ExpandoRow> getRows(
342                    long tableId, int start, int end) {
343                    return _expandoRowLocalService.getRows(tableId, start, end);
344            }
345    
346            /**
347            * Returns the number of rows matching the dynamic query.
348            *
349            * @param dynamicQuery the dynamic query
350            * @return the number of rows matching the dynamic query
351            */
352            @Override
353            public long dynamicQueryCount(
354                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
355                    return _expandoRowLocalService.dynamicQueryCount(dynamicQuery);
356            }
357    
358            /**
359            * Returns the number of rows matching the dynamic query.
360            *
361            * @param dynamicQuery the dynamic query
362            * @param projection the projection to apply to the query
363            * @return the number of rows matching the dynamic query
364            */
365            @Override
366            public long dynamicQueryCount(
367                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
368                    com.liferay.portal.kernel.dao.orm.Projection projection) {
369                    return _expandoRowLocalService.dynamicQueryCount(dynamicQuery,
370                            projection);
371            }
372    
373            @Override
374            public void deleteRow(com.liferay.expando.kernel.model.ExpandoRow row) {
375                    _expandoRowLocalService.deleteRow(row);
376            }
377    
378            @Override
379            public void deleteRow(long companyId, java.lang.String className,
380                    java.lang.String tableName, long classPK)
381                    throws com.liferay.portal.kernel.exception.PortalException {
382                    _expandoRowLocalService.deleteRow(companyId, className, tableName,
383                            classPK);
384            }
385    
386            @Override
387            public void deleteRow(long companyId, long classNameId,
388                    java.lang.String tableName, long classPK)
389                    throws com.liferay.portal.kernel.exception.PortalException {
390                    _expandoRowLocalService.deleteRow(companyId, classNameId, tableName,
391                            classPK);
392            }
393    
394            @Override
395            public void deleteRow(long rowId)
396                    throws com.liferay.portal.kernel.exception.PortalException {
397                    _expandoRowLocalService.deleteRow(rowId);
398            }
399    
400            @Override
401            public void deleteRow(long tableId, long classPK)
402                    throws com.liferay.portal.kernel.exception.PortalException {
403                    _expandoRowLocalService.deleteRow(tableId, classPK);
404            }
405    
406            @Override
407            public void deleteRows(long classPK) {
408                    _expandoRowLocalService.deleteRows(classPK);
409            }
410    
411            @Override
412            public ExpandoRowLocalService getWrappedService() {
413                    return _expandoRowLocalService;
414            }
415    
416            @Override
417            public void setWrappedService(ExpandoRowLocalService expandoRowLocalService) {
418                    _expandoRowLocalService = expandoRowLocalService;
419            }
420    
421            private ExpandoRowLocalService _expandoRowLocalService;
422    }