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.trash.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 TrashVersionLocalService}.
023     *
024     * @author Brian Wing Shun Chan
025     * @see TrashVersionLocalService
026     * @generated
027     */
028    @ProviderType
029    public class TrashVersionLocalServiceWrapper implements TrashVersionLocalService,
030            ServiceWrapper<TrashVersionLocalService> {
031            public TrashVersionLocalServiceWrapper(
032                    TrashVersionLocalService trashVersionLocalService) {
033                    _trashVersionLocalService = trashVersionLocalService;
034            }
035    
036            @Override
037            public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
038                    return _trashVersionLocalService.getActionableDynamicQuery();
039            }
040    
041            @Override
042            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
043                    return _trashVersionLocalService.dynamicQuery();
044            }
045    
046            @Override
047            public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
048                    return _trashVersionLocalService.getIndexableActionableDynamicQuery();
049            }
050    
051            /**
052            * @throws PortalException
053            */
054            @Override
055            public com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(
056                    com.liferay.portal.kernel.model.PersistedModel persistedModel)
057                    throws com.liferay.portal.kernel.exception.PortalException {
058                    return _trashVersionLocalService.deletePersistedModel(persistedModel);
059            }
060    
061            @Override
062            public com.liferay.portal.kernel.model.PersistedModel getPersistedModel(
063                    java.io.Serializable primaryKeyObj)
064                    throws com.liferay.portal.kernel.exception.PortalException {
065                    return _trashVersionLocalService.getPersistedModel(primaryKeyObj);
066            }
067    
068            /**
069            * Adds the trash version to the database. Also notifies the appropriate model listeners.
070            *
071            * @param trashVersion the trash version
072            * @return the trash version that was added
073            */
074            @Override
075            public com.liferay.trash.kernel.model.TrashVersion addTrashVersion(
076                    com.liferay.trash.kernel.model.TrashVersion trashVersion) {
077                    return _trashVersionLocalService.addTrashVersion(trashVersion);
078            }
079    
080            @Override
081            public com.liferay.trash.kernel.model.TrashVersion addTrashVersion(
082                    long trashEntryId, java.lang.String className, long classPK,
083                    int status,
084                    com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties) {
085                    return _trashVersionLocalService.addTrashVersion(trashEntryId,
086                            className, classPK, status, typeSettingsProperties);
087            }
088    
089            /**
090            * Creates a new trash version with the primary key. Does not add the trash version to the database.
091            *
092            * @param versionId the primary key for the new trash version
093            * @return the new trash version
094            */
095            @Override
096            public com.liferay.trash.kernel.model.TrashVersion createTrashVersion(
097                    long versionId) {
098                    return _trashVersionLocalService.createTrashVersion(versionId);
099            }
100    
101            /**
102            * Deletes the trash version from the database. Also notifies the appropriate model listeners.
103            *
104            * @param trashVersion the trash version
105            * @return the trash version that was removed
106            */
107            @Override
108            public com.liferay.trash.kernel.model.TrashVersion deleteTrashVersion(
109                    com.liferay.trash.kernel.model.TrashVersion trashVersion) {
110                    return _trashVersionLocalService.deleteTrashVersion(trashVersion);
111            }
112    
113            @Override
114            public com.liferay.trash.kernel.model.TrashVersion deleteTrashVersion(
115                    java.lang.String className, long classPK) {
116                    return _trashVersionLocalService.deleteTrashVersion(className, classPK);
117            }
118    
119            /**
120            * Deletes the trash version with the primary key from the database. Also notifies the appropriate model listeners.
121            *
122            * @param versionId the primary key of the trash version
123            * @return the trash version that was removed
124            * @throws PortalException if a trash version with the primary key could not be found
125            */
126            @Override
127            public com.liferay.trash.kernel.model.TrashVersion deleteTrashVersion(
128                    long versionId)
129                    throws com.liferay.portal.kernel.exception.PortalException {
130                    return _trashVersionLocalService.deleteTrashVersion(versionId);
131            }
132    
133            @Override
134            public com.liferay.trash.kernel.model.TrashVersion fetchTrashVersion(
135                    long versionId) {
136                    return _trashVersionLocalService.fetchTrashVersion(versionId);
137            }
138    
139            @Override
140            public com.liferay.trash.kernel.model.TrashVersion fetchVersion(
141                    java.lang.String className, long classPK) {
142                    return _trashVersionLocalService.fetchVersion(className, classPK);
143            }
144    
145            /**
146            * @deprecated As of 7.0.0, replaced by {@link #fetchVersion(String, long)}
147            */
148            @Deprecated
149            @Override
150            public com.liferay.trash.kernel.model.TrashVersion fetchVersion(
151                    long entryId, java.lang.String className, long classPK) {
152                    return _trashVersionLocalService.fetchVersion(entryId, className,
153                            classPK);
154            }
155    
156            /**
157            * Returns the trash version with the primary key.
158            *
159            * @param versionId the primary key of the trash version
160            * @return the trash version
161            * @throws PortalException if a trash version with the primary key could not be found
162            */
163            @Override
164            public com.liferay.trash.kernel.model.TrashVersion getTrashVersion(
165                    long versionId)
166                    throws com.liferay.portal.kernel.exception.PortalException {
167                    return _trashVersionLocalService.getTrashVersion(versionId);
168            }
169    
170            /**
171            * Updates the trash version in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
172            *
173            * @param trashVersion the trash version
174            * @return the trash version that was updated
175            */
176            @Override
177            public com.liferay.trash.kernel.model.TrashVersion updateTrashVersion(
178                    com.liferay.trash.kernel.model.TrashVersion trashVersion) {
179                    return _trashVersionLocalService.updateTrashVersion(trashVersion);
180            }
181    
182            /**
183            * Returns the number of trash versions.
184            *
185            * @return the number of trash versions
186            */
187            @Override
188            public int getTrashVersionsCount() {
189                    return _trashVersionLocalService.getTrashVersionsCount();
190            }
191    
192            /**
193            * Returns the OSGi service identifier.
194            *
195            * @return the OSGi service identifier
196            */
197            @Override
198            public java.lang.String getOSGiServiceIdentifier() {
199                    return _trashVersionLocalService.getOSGiServiceIdentifier();
200            }
201    
202            /**
203            * Performs a dynamic query on the database and returns the matching rows.
204            *
205            * @param dynamicQuery the dynamic query
206            * @return the matching rows
207            */
208            @Override
209            public <T> java.util.List<T> dynamicQuery(
210                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
211                    return _trashVersionLocalService.dynamicQuery(dynamicQuery);
212            }
213    
214            /**
215            * Performs a dynamic query on the database and returns a range of the matching rows.
216            *
217            * <p>
218            * 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.trash.model.impl.TrashVersionModelImpl}. 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.
219            * </p>
220            *
221            * @param dynamicQuery the dynamic query
222            * @param start the lower bound of the range of model instances
223            * @param end the upper bound of the range of model instances (not inclusive)
224            * @return the range of matching rows
225            */
226            @Override
227            public <T> java.util.List<T> dynamicQuery(
228                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
229                    int end) {
230                    return _trashVersionLocalService.dynamicQuery(dynamicQuery, start, end);
231            }
232    
233            /**
234            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
235            *
236            * <p>
237            * 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.trash.model.impl.TrashVersionModelImpl}. 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.
238            * </p>
239            *
240            * @param dynamicQuery the dynamic query
241            * @param start the lower bound of the range of model instances
242            * @param end the upper bound of the range of model instances (not inclusive)
243            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
244            * @return the ordered range of matching rows
245            */
246            @Override
247            public <T> java.util.List<T> dynamicQuery(
248                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
249                    int end,
250                    com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
251                    return _trashVersionLocalService.dynamicQuery(dynamicQuery, start, end,
252                            orderByComparator);
253            }
254    
255            /**
256            * Returns a range of all the trash versions.
257            *
258            * <p>
259            * 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.trash.model.impl.TrashVersionModelImpl}. 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.
260            * </p>
261            *
262            * @param start the lower bound of the range of trash versions
263            * @param end the upper bound of the range of trash versions (not inclusive)
264            * @return the range of trash versions
265            */
266            @Override
267            public java.util.List<com.liferay.trash.kernel.model.TrashVersion> getTrashVersions(
268                    int start, int end) {
269                    return _trashVersionLocalService.getTrashVersions(start, end);
270            }
271    
272            @Override
273            public java.util.List<com.liferay.trash.kernel.model.TrashVersion> getVersions(
274                    long entryId) {
275                    return _trashVersionLocalService.getVersions(entryId);
276            }
277    
278            @Override
279            public java.util.List<com.liferay.trash.kernel.model.TrashVersion> getVersions(
280                    long entryId, java.lang.String className) {
281                    return _trashVersionLocalService.getVersions(entryId, className);
282            }
283    
284            /**
285            * Returns the number of rows matching the dynamic query.
286            *
287            * @param dynamicQuery the dynamic query
288            * @return the number of rows matching the dynamic query
289            */
290            @Override
291            public long dynamicQueryCount(
292                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
293                    return _trashVersionLocalService.dynamicQueryCount(dynamicQuery);
294            }
295    
296            /**
297            * Returns the number of rows matching the dynamic query.
298            *
299            * @param dynamicQuery the dynamic query
300            * @param projection the projection to apply to the query
301            * @return the number of rows matching the dynamic query
302            */
303            @Override
304            public long dynamicQueryCount(
305                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
306                    com.liferay.portal.kernel.dao.orm.Projection projection) {
307                    return _trashVersionLocalService.dynamicQueryCount(dynamicQuery,
308                            projection);
309            }
310    
311            @Override
312            public TrashVersionLocalService getWrappedService() {
313                    return _trashVersionLocalService;
314            }
315    
316            @Override
317            public void setWrappedService(
318                    TrashVersionLocalService trashVersionLocalService) {
319                    _trashVersionLocalService = trashVersionLocalService;
320            }
321    
322            private TrashVersionLocalService _trashVersionLocalService;
323    }