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