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            @Override
209            public int getBuildNumberOrCreate()
210                    throws com.liferay.portal.kernel.exception.PortalException {
211                    return _releaseLocalService.getBuildNumberOrCreate();
212            }
213    
214            @Override
215            public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
216                    return _releaseLocalService.getIndexableActionableDynamicQuery();
217            }
218    
219            /**
220            * Returns the OSGi service identifier.
221            *
222            * @return the OSGi service identifier
223            */
224            @Override
225            public java.lang.String getOSGiServiceIdentifier() {
226                    return _releaseLocalService.getOSGiServiceIdentifier();
227            }
228    
229            @Override
230            public com.liferay.portal.model.PersistedModel getPersistedModel(
231                    java.io.Serializable primaryKeyObj)
232                    throws com.liferay.portal.kernel.exception.PortalException {
233                    return _releaseLocalService.getPersistedModel(primaryKeyObj);
234            }
235    
236            /**
237            * Returns the release with the primary key.
238            *
239            * @param releaseId the primary key of the release
240            * @return the release
241            * @throws PortalException if a release with the primary key could not be found
242            */
243            @Override
244            public com.liferay.portal.model.Release getRelease(long releaseId)
245                    throws com.liferay.portal.kernel.exception.PortalException {
246                    return _releaseLocalService.getRelease(releaseId);
247            }
248    
249            /**
250            * Returns a range of all the releases.
251            *
252            * <p>
253            * 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.
254            * </p>
255            *
256            * @param start the lower bound of the range of releases
257            * @param end the upper bound of the range of releases (not inclusive)
258            * @return the range of releases
259            */
260            @Override
261            public java.util.List<com.liferay.portal.model.Release> getReleases(
262                    int start, int end) {
263                    return _releaseLocalService.getReleases(start, end);
264            }
265    
266            /**
267            * Returns the number of releases.
268            *
269            * @return the number of releases
270            */
271            @Override
272            public int getReleasesCount() {
273                    return _releaseLocalService.getReleasesCount();
274            }
275    
276            /**
277            * Updates the release in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
278            *
279            * @param release the release
280            * @return the release that was updated
281            */
282            @Override
283            public com.liferay.portal.model.Release updateRelease(
284                    com.liferay.portal.model.Release release) {
285                    return _releaseLocalService.updateRelease(release);
286            }
287    
288            @Override
289            public com.liferay.portal.model.Release updateRelease(long releaseId,
290                    int buildNumber, java.util.Date buildDate, boolean verified)
291                    throws com.liferay.portal.kernel.exception.PortalException {
292                    return _releaseLocalService.updateRelease(releaseId, buildNumber,
293                            buildDate, verified);
294            }
295    
296            @Override
297            public void updateRelease(java.lang.String servletContextName,
298                    java.lang.String schemaVersion, java.lang.String previousSchemaVersion) {
299                    _releaseLocalService.updateRelease(servletContextName, schemaVersion,
300                            previousSchemaVersion);
301            }
302    
303            @Override
304            public void updateRelease(java.lang.String servletContextName,
305                    java.util.List<com.liferay.portal.kernel.upgrade.UpgradeProcess> upgradeProcesses,
306                    int buildNumber, int previousBuildNumber, boolean indexOnUpgrade)
307                    throws com.liferay.portal.kernel.exception.PortalException {
308                    _releaseLocalService.updateRelease(servletContextName,
309                            upgradeProcesses, buildNumber, previousBuildNumber, indexOnUpgrade);
310            }
311    
312            @Override
313            public void updateRelease(java.lang.String servletContextName,
314                    java.util.List<com.liferay.portal.kernel.upgrade.UpgradeProcess> upgradeProcesses,
315                    java.util.Properties unfilteredPortalProperties)
316                    throws java.lang.Exception {
317                    _releaseLocalService.updateRelease(servletContextName,
318                            upgradeProcesses, unfilteredPortalProperties);
319            }
320    
321            @Override
322            public ReleaseLocalService getWrappedService() {
323                    return _releaseLocalService;
324            }
325    
326            @Override
327            public void setWrappedService(ReleaseLocalService releaseLocalService) {
328                    _releaseLocalService = releaseLocalService;
329            }
330    
331            private ReleaseLocalService _releaseLocalService;
332    }