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