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