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