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