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