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. 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.
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. 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.
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. 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.
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            * Returns the Spring bean ID for this bean.
235            *
236            * @return the Spring bean ID for this bean
237            */
238            public java.lang.String getBeanIdentifier() {
239                    return _announcementsFlagLocalService.getBeanIdentifier();
240            }
241    
242            /**
243            * Sets the Spring bean ID for this bean.
244            *
245            * @param beanIdentifier the Spring bean ID for this bean
246            */
247            public void setBeanIdentifier(java.lang.String beanIdentifier) {
248                    _announcementsFlagLocalService.setBeanIdentifier(beanIdentifier);
249            }
250    
251            public com.liferay.portlet.announcements.model.AnnouncementsFlag addFlag(
252                    long userId, long entryId, int value)
253                    throws com.liferay.portal.kernel.exception.SystemException {
254                    return _announcementsFlagLocalService.addFlag(userId, entryId, value);
255            }
256    
257            public void deleteFlag(
258                    com.liferay.portlet.announcements.model.AnnouncementsFlag flag)
259                    throws com.liferay.portal.kernel.exception.SystemException {
260                    _announcementsFlagLocalService.deleteFlag(flag);
261            }
262    
263            public void deleteFlag(long flagId)
264                    throws com.liferay.portal.kernel.exception.PortalException,
265                            com.liferay.portal.kernel.exception.SystemException {
266                    _announcementsFlagLocalService.deleteFlag(flagId);
267            }
268    
269            public void deleteFlags(long entryId)
270                    throws com.liferay.portal.kernel.exception.SystemException {
271                    _announcementsFlagLocalService.deleteFlags(entryId);
272            }
273    
274            public com.liferay.portlet.announcements.model.AnnouncementsFlag getFlag(
275                    long userId, long entryId, int value)
276                    throws com.liferay.portal.kernel.exception.PortalException,
277                            com.liferay.portal.kernel.exception.SystemException {
278                    return _announcementsFlagLocalService.getFlag(userId, entryId, value);
279            }
280    
281            /**
282             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
283             */
284            public AnnouncementsFlagLocalService getWrappedAnnouncementsFlagLocalService() {
285                    return _announcementsFlagLocalService;
286            }
287    
288            /**
289             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
290             */
291            public void setWrappedAnnouncementsFlagLocalService(
292                    AnnouncementsFlagLocalService announcementsFlagLocalService) {
293                    _announcementsFlagLocalService = announcementsFlagLocalService;
294            }
295    
296            public AnnouncementsFlagLocalService getWrappedService() {
297                    return _announcementsFlagLocalService;
298            }
299    
300            public void setWrappedService(
301                    AnnouncementsFlagLocalService announcementsFlagLocalService) {
302                    _announcementsFlagLocalService = announcementsFlagLocalService;
303            }
304    
305            private AnnouncementsFlagLocalService _announcementsFlagLocalService;
306    }