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.base;
016    
017    import com.liferay.portal.kernel.bean.BeanReference;
018    import com.liferay.portal.kernel.bean.IdentifiableBean;
019    import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
020    import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
021    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
022    import com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil;
023    import com.liferay.portal.kernel.dao.orm.Projection;
024    import com.liferay.portal.kernel.exception.PortalException;
025    import com.liferay.portal.kernel.exception.SystemException;
026    import com.liferay.portal.kernel.search.Indexable;
027    import com.liferay.portal.kernel.search.IndexableType;
028    import com.liferay.portal.kernel.util.OrderByComparator;
029    import com.liferay.portal.model.PersistedModel;
030    import com.liferay.portal.service.BaseLocalServiceImpl;
031    import com.liferay.portal.service.PersistedModelLocalServiceRegistry;
032    import com.liferay.portal.service.persistence.UserFinder;
033    import com.liferay.portal.service.persistence.UserPersistence;
034    
035    import com.liferay.portlet.announcements.model.AnnouncementsDelivery;
036    import com.liferay.portlet.announcements.service.AnnouncementsDeliveryLocalService;
037    import com.liferay.portlet.announcements.service.persistence.AnnouncementsDeliveryPersistence;
038    import com.liferay.portlet.announcements.service.persistence.AnnouncementsEntryFinder;
039    import com.liferay.portlet.announcements.service.persistence.AnnouncementsEntryPersistence;
040    import com.liferay.portlet.announcements.service.persistence.AnnouncementsFlagPersistence;
041    
042    import java.io.Serializable;
043    
044    import java.util.List;
045    
046    import javax.sql.DataSource;
047    
048    /**
049     * Provides the base implementation for the announcements delivery local service.
050     *
051     * <p>
052     * This implementation exists only as a container for the default service methods generated by ServiceBuilder. All custom service methods should be put in {@link com.liferay.portlet.announcements.service.impl.AnnouncementsDeliveryLocalServiceImpl}.
053     * </p>
054     *
055     * @author Brian Wing Shun Chan
056     * @see com.liferay.portlet.announcements.service.impl.AnnouncementsDeliveryLocalServiceImpl
057     * @see com.liferay.portlet.announcements.service.AnnouncementsDeliveryLocalServiceUtil
058     * @generated
059     */
060    public abstract class AnnouncementsDeliveryLocalServiceBaseImpl
061            extends BaseLocalServiceImpl implements AnnouncementsDeliveryLocalService,
062                    IdentifiableBean {
063            /*
064             * NOTE FOR DEVELOPERS:
065             *
066             * Never modify or reference this class directly. Always use {@link com.liferay.portlet.announcements.service.AnnouncementsDeliveryLocalServiceUtil} to access the announcements delivery local service.
067             */
068    
069            /**
070             * Adds the announcements delivery to the database. Also notifies the appropriate model listeners.
071             *
072             * @param announcementsDelivery the announcements delivery
073             * @return the announcements delivery that was added
074             * @throws SystemException if a system exception occurred
075             */
076            @Indexable(type = IndexableType.REINDEX)
077            @Override
078            public AnnouncementsDelivery addAnnouncementsDelivery(
079                    AnnouncementsDelivery announcementsDelivery) throws SystemException {
080                    announcementsDelivery.setNew(true);
081    
082                    return announcementsDeliveryPersistence.update(announcementsDelivery);
083            }
084    
085            /**
086             * Creates a new announcements delivery with the primary key. Does not add the announcements delivery to the database.
087             *
088             * @param deliveryId the primary key for the new announcements delivery
089             * @return the new announcements delivery
090             */
091            @Override
092            public AnnouncementsDelivery createAnnouncementsDelivery(long deliveryId) {
093                    return announcementsDeliveryPersistence.create(deliveryId);
094            }
095    
096            /**
097             * Deletes the announcements delivery with the primary key from the database. Also notifies the appropriate model listeners.
098             *
099             * @param deliveryId the primary key of the announcements delivery
100             * @return the announcements delivery that was removed
101             * @throws PortalException if a announcements delivery with the primary key could not be found
102             * @throws SystemException if a system exception occurred
103             */
104            @Indexable(type = IndexableType.DELETE)
105            @Override
106            public AnnouncementsDelivery deleteAnnouncementsDelivery(long deliveryId)
107                    throws PortalException, SystemException {
108                    return announcementsDeliveryPersistence.remove(deliveryId);
109            }
110    
111            /**
112             * Deletes the announcements delivery from the database. Also notifies the appropriate model listeners.
113             *
114             * @param announcementsDelivery the announcements delivery
115             * @return the announcements delivery that was removed
116             * @throws SystemException if a system exception occurred
117             */
118            @Indexable(type = IndexableType.DELETE)
119            @Override
120            public AnnouncementsDelivery deleteAnnouncementsDelivery(
121                    AnnouncementsDelivery announcementsDelivery) throws SystemException {
122                    return announcementsDeliveryPersistence.remove(announcementsDelivery);
123            }
124    
125            @Override
126            public DynamicQuery dynamicQuery() {
127                    Class<?> clazz = getClass();
128    
129                    return DynamicQueryFactoryUtil.forClass(AnnouncementsDelivery.class,
130                            clazz.getClassLoader());
131            }
132    
133            /**
134             * Performs a dynamic query on the database and returns the matching rows.
135             *
136             * @param dynamicQuery the dynamic query
137             * @return the matching rows
138             * @throws SystemException if a system exception occurred
139             */
140            @Override
141            @SuppressWarnings("rawtypes")
142            public List dynamicQuery(DynamicQuery dynamicQuery)
143                    throws SystemException {
144                    return announcementsDeliveryPersistence.findWithDynamicQuery(dynamicQuery);
145            }
146    
147            /**
148             * Performs a dynamic query on the database and returns a range of the matching rows.
149             *
150             * <p>
151             * 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.AnnouncementsDeliveryModelImpl}. 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.
152             * </p>
153             *
154             * @param dynamicQuery the dynamic query
155             * @param start the lower bound of the range of model instances
156             * @param end the upper bound of the range of model instances (not inclusive)
157             * @return the range of matching rows
158             * @throws SystemException if a system exception occurred
159             */
160            @Override
161            @SuppressWarnings("rawtypes")
162            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
163                    throws SystemException {
164                    return announcementsDeliveryPersistence.findWithDynamicQuery(dynamicQuery,
165                            start, end);
166            }
167    
168            /**
169             * Performs a dynamic query on the database and returns an ordered range of the matching rows.
170             *
171             * <p>
172             * 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.AnnouncementsDeliveryModelImpl}. 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.
173             * </p>
174             *
175             * @param dynamicQuery the dynamic query
176             * @param start the lower bound of the range of model instances
177             * @param end the upper bound of the range of model instances (not inclusive)
178             * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
179             * @return the ordered range of matching rows
180             * @throws SystemException if a system exception occurred
181             */
182            @Override
183            @SuppressWarnings("rawtypes")
184            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end,
185                    OrderByComparator orderByComparator) throws SystemException {
186                    return announcementsDeliveryPersistence.findWithDynamicQuery(dynamicQuery,
187                            start, end, orderByComparator);
188            }
189    
190            /**
191             * Returns the number of rows that match the dynamic query.
192             *
193             * @param dynamicQuery the dynamic query
194             * @return the number of rows that match the dynamic query
195             * @throws SystemException if a system exception occurred
196             */
197            @Override
198            public long dynamicQueryCount(DynamicQuery dynamicQuery)
199                    throws SystemException {
200                    return announcementsDeliveryPersistence.countWithDynamicQuery(dynamicQuery);
201            }
202    
203            /**
204             * Returns the number of rows that match the dynamic query.
205             *
206             * @param dynamicQuery the dynamic query
207             * @param projection the projection to apply to the query
208             * @return the number of rows that match the dynamic query
209             * @throws SystemException if a system exception occurred
210             */
211            @Override
212            public long dynamicQueryCount(DynamicQuery dynamicQuery,
213                    Projection projection) throws SystemException {
214                    return announcementsDeliveryPersistence.countWithDynamicQuery(dynamicQuery,
215                            projection);
216            }
217    
218            @Override
219            public AnnouncementsDelivery fetchAnnouncementsDelivery(long deliveryId)
220                    throws SystemException {
221                    return announcementsDeliveryPersistence.fetchByPrimaryKey(deliveryId);
222            }
223    
224            /**
225             * Returns the announcements delivery with the primary key.
226             *
227             * @param deliveryId the primary key of the announcements delivery
228             * @return the announcements delivery
229             * @throws PortalException if a announcements delivery with the primary key could not be found
230             * @throws SystemException if a system exception occurred
231             */
232            @Override
233            public AnnouncementsDelivery getAnnouncementsDelivery(long deliveryId)
234                    throws PortalException, SystemException {
235                    return announcementsDeliveryPersistence.findByPrimaryKey(deliveryId);
236            }
237    
238            @Override
239            public PersistedModel getPersistedModel(Serializable primaryKeyObj)
240                    throws PortalException, SystemException {
241                    return announcementsDeliveryPersistence.findByPrimaryKey(primaryKeyObj);
242            }
243    
244            /**
245             * Returns a range of all the announcements deliveries.
246             *
247             * <p>
248             * 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.AnnouncementsDeliveryModelImpl}. 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.
249             * </p>
250             *
251             * @param start the lower bound of the range of announcements deliveries
252             * @param end the upper bound of the range of announcements deliveries (not inclusive)
253             * @return the range of announcements deliveries
254             * @throws SystemException if a system exception occurred
255             */
256            @Override
257            public List<AnnouncementsDelivery> getAnnouncementsDeliveries(int start,
258                    int end) throws SystemException {
259                    return announcementsDeliveryPersistence.findAll(start, end);
260            }
261    
262            /**
263             * Returns the number of announcements deliveries.
264             *
265             * @return the number of announcements deliveries
266             * @throws SystemException if a system exception occurred
267             */
268            @Override
269            public int getAnnouncementsDeliveriesCount() throws SystemException {
270                    return announcementsDeliveryPersistence.countAll();
271            }
272    
273            /**
274             * Updates the announcements delivery in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
275             *
276             * @param announcementsDelivery the announcements delivery
277             * @return the announcements delivery that was updated
278             * @throws SystemException if a system exception occurred
279             */
280            @Indexable(type = IndexableType.REINDEX)
281            @Override
282            public AnnouncementsDelivery updateAnnouncementsDelivery(
283                    AnnouncementsDelivery announcementsDelivery) throws SystemException {
284                    return announcementsDeliveryPersistence.update(announcementsDelivery);
285            }
286    
287            /**
288             * Returns the announcements delivery local service.
289             *
290             * @return the announcements delivery local service
291             */
292            public com.liferay.portlet.announcements.service.AnnouncementsDeliveryLocalService getAnnouncementsDeliveryLocalService() {
293                    return announcementsDeliveryLocalService;
294            }
295    
296            /**
297             * Sets the announcements delivery local service.
298             *
299             * @param announcementsDeliveryLocalService the announcements delivery local service
300             */
301            public void setAnnouncementsDeliveryLocalService(
302                    com.liferay.portlet.announcements.service.AnnouncementsDeliveryLocalService announcementsDeliveryLocalService) {
303                    this.announcementsDeliveryLocalService = announcementsDeliveryLocalService;
304            }
305    
306            /**
307             * Returns the announcements delivery remote service.
308             *
309             * @return the announcements delivery remote service
310             */
311            public com.liferay.portlet.announcements.service.AnnouncementsDeliveryService getAnnouncementsDeliveryService() {
312                    return announcementsDeliveryService;
313            }
314    
315            /**
316             * Sets the announcements delivery remote service.
317             *
318             * @param announcementsDeliveryService the announcements delivery remote service
319             */
320            public void setAnnouncementsDeliveryService(
321                    com.liferay.portlet.announcements.service.AnnouncementsDeliveryService announcementsDeliveryService) {
322                    this.announcementsDeliveryService = announcementsDeliveryService;
323            }
324    
325            /**
326             * Returns the announcements delivery persistence.
327             *
328             * @return the announcements delivery persistence
329             */
330            public AnnouncementsDeliveryPersistence getAnnouncementsDeliveryPersistence() {
331                    return announcementsDeliveryPersistence;
332            }
333    
334            /**
335             * Sets the announcements delivery persistence.
336             *
337             * @param announcementsDeliveryPersistence the announcements delivery persistence
338             */
339            public void setAnnouncementsDeliveryPersistence(
340                    AnnouncementsDeliveryPersistence announcementsDeliveryPersistence) {
341                    this.announcementsDeliveryPersistence = announcementsDeliveryPersistence;
342            }
343    
344            /**
345             * Returns the announcements entry local service.
346             *
347             * @return the announcements entry local service
348             */
349            public com.liferay.portlet.announcements.service.AnnouncementsEntryLocalService getAnnouncementsEntryLocalService() {
350                    return announcementsEntryLocalService;
351            }
352    
353            /**
354             * Sets the announcements entry local service.
355             *
356             * @param announcementsEntryLocalService the announcements entry local service
357             */
358            public void setAnnouncementsEntryLocalService(
359                    com.liferay.portlet.announcements.service.AnnouncementsEntryLocalService announcementsEntryLocalService) {
360                    this.announcementsEntryLocalService = announcementsEntryLocalService;
361            }
362    
363            /**
364             * Returns the announcements entry remote service.
365             *
366             * @return the announcements entry remote service
367             */
368            public com.liferay.portlet.announcements.service.AnnouncementsEntryService getAnnouncementsEntryService() {
369                    return announcementsEntryService;
370            }
371    
372            /**
373             * Sets the announcements entry remote service.
374             *
375             * @param announcementsEntryService the announcements entry remote service
376             */
377            public void setAnnouncementsEntryService(
378                    com.liferay.portlet.announcements.service.AnnouncementsEntryService announcementsEntryService) {
379                    this.announcementsEntryService = announcementsEntryService;
380            }
381    
382            /**
383             * Returns the announcements entry persistence.
384             *
385             * @return the announcements entry persistence
386             */
387            public AnnouncementsEntryPersistence getAnnouncementsEntryPersistence() {
388                    return announcementsEntryPersistence;
389            }
390    
391            /**
392             * Sets the announcements entry persistence.
393             *
394             * @param announcementsEntryPersistence the announcements entry persistence
395             */
396            public void setAnnouncementsEntryPersistence(
397                    AnnouncementsEntryPersistence announcementsEntryPersistence) {
398                    this.announcementsEntryPersistence = announcementsEntryPersistence;
399            }
400    
401            /**
402             * Returns the announcements entry finder.
403             *
404             * @return the announcements entry finder
405             */
406            public AnnouncementsEntryFinder getAnnouncementsEntryFinder() {
407                    return announcementsEntryFinder;
408            }
409    
410            /**
411             * Sets the announcements entry finder.
412             *
413             * @param announcementsEntryFinder the announcements entry finder
414             */
415            public void setAnnouncementsEntryFinder(
416                    AnnouncementsEntryFinder announcementsEntryFinder) {
417                    this.announcementsEntryFinder = announcementsEntryFinder;
418            }
419    
420            /**
421             * Returns the announcements flag local service.
422             *
423             * @return the announcements flag local service
424             */
425            public com.liferay.portlet.announcements.service.AnnouncementsFlagLocalService getAnnouncementsFlagLocalService() {
426                    return announcementsFlagLocalService;
427            }
428    
429            /**
430             * Sets the announcements flag local service.
431             *
432             * @param announcementsFlagLocalService the announcements flag local service
433             */
434            public void setAnnouncementsFlagLocalService(
435                    com.liferay.portlet.announcements.service.AnnouncementsFlagLocalService announcementsFlagLocalService) {
436                    this.announcementsFlagLocalService = announcementsFlagLocalService;
437            }
438    
439            /**
440             * Returns the announcements flag remote service.
441             *
442             * @return the announcements flag remote service
443             */
444            public com.liferay.portlet.announcements.service.AnnouncementsFlagService getAnnouncementsFlagService() {
445                    return announcementsFlagService;
446            }
447    
448            /**
449             * Sets the announcements flag remote service.
450             *
451             * @param announcementsFlagService the announcements flag remote service
452             */
453            public void setAnnouncementsFlagService(
454                    com.liferay.portlet.announcements.service.AnnouncementsFlagService announcementsFlagService) {
455                    this.announcementsFlagService = announcementsFlagService;
456            }
457    
458            /**
459             * Returns the announcements flag persistence.
460             *
461             * @return the announcements flag persistence
462             */
463            public AnnouncementsFlagPersistence getAnnouncementsFlagPersistence() {
464                    return announcementsFlagPersistence;
465            }
466    
467            /**
468             * Sets the announcements flag persistence.
469             *
470             * @param announcementsFlagPersistence the announcements flag persistence
471             */
472            public void setAnnouncementsFlagPersistence(
473                    AnnouncementsFlagPersistence announcementsFlagPersistence) {
474                    this.announcementsFlagPersistence = announcementsFlagPersistence;
475            }
476    
477            /**
478             * Returns the counter local service.
479             *
480             * @return the counter local service
481             */
482            public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
483                    return counterLocalService;
484            }
485    
486            /**
487             * Sets the counter local service.
488             *
489             * @param counterLocalService the counter local service
490             */
491            public void setCounterLocalService(
492                    com.liferay.counter.service.CounterLocalService counterLocalService) {
493                    this.counterLocalService = counterLocalService;
494            }
495    
496            /**
497             * Returns the resource local service.
498             *
499             * @return the resource local service
500             */
501            public com.liferay.portal.service.ResourceLocalService getResourceLocalService() {
502                    return resourceLocalService;
503            }
504    
505            /**
506             * Sets the resource local service.
507             *
508             * @param resourceLocalService the resource local service
509             */
510            public void setResourceLocalService(
511                    com.liferay.portal.service.ResourceLocalService resourceLocalService) {
512                    this.resourceLocalService = resourceLocalService;
513            }
514    
515            /**
516             * Returns the user local service.
517             *
518             * @return the user local service
519             */
520            public com.liferay.portal.service.UserLocalService getUserLocalService() {
521                    return userLocalService;
522            }
523    
524            /**
525             * Sets the user local service.
526             *
527             * @param userLocalService the user local service
528             */
529            public void setUserLocalService(
530                    com.liferay.portal.service.UserLocalService userLocalService) {
531                    this.userLocalService = userLocalService;
532            }
533    
534            /**
535             * Returns the user remote service.
536             *
537             * @return the user remote service
538             */
539            public com.liferay.portal.service.UserService getUserService() {
540                    return userService;
541            }
542    
543            /**
544             * Sets the user remote service.
545             *
546             * @param userService the user remote service
547             */
548            public void setUserService(
549                    com.liferay.portal.service.UserService userService) {
550                    this.userService = userService;
551            }
552    
553            /**
554             * Returns the user persistence.
555             *
556             * @return the user persistence
557             */
558            public UserPersistence getUserPersistence() {
559                    return userPersistence;
560            }
561    
562            /**
563             * Sets the user persistence.
564             *
565             * @param userPersistence the user persistence
566             */
567            public void setUserPersistence(UserPersistence userPersistence) {
568                    this.userPersistence = userPersistence;
569            }
570    
571            /**
572             * Returns the user finder.
573             *
574             * @return the user finder
575             */
576            public UserFinder getUserFinder() {
577                    return userFinder;
578            }
579    
580            /**
581             * Sets the user finder.
582             *
583             * @param userFinder the user finder
584             */
585            public void setUserFinder(UserFinder userFinder) {
586                    this.userFinder = userFinder;
587            }
588    
589            public void afterPropertiesSet() {
590                    persistedModelLocalServiceRegistry.register("com.liferay.portlet.announcements.model.AnnouncementsDelivery",
591                            announcementsDeliveryLocalService);
592            }
593    
594            public void destroy() {
595                    persistedModelLocalServiceRegistry.unregister(
596                            "com.liferay.portlet.announcements.model.AnnouncementsDelivery");
597            }
598    
599            /**
600             * Returns the Spring bean ID for this bean.
601             *
602             * @return the Spring bean ID for this bean
603             */
604            @Override
605            public String getBeanIdentifier() {
606                    return _beanIdentifier;
607            }
608    
609            /**
610             * Sets the Spring bean ID for this bean.
611             *
612             * @param beanIdentifier the Spring bean ID for this bean
613             */
614            @Override
615            public void setBeanIdentifier(String beanIdentifier) {
616                    _beanIdentifier = beanIdentifier;
617            }
618    
619            protected Class<?> getModelClass() {
620                    return AnnouncementsDelivery.class;
621            }
622    
623            protected String getModelClassName() {
624                    return AnnouncementsDelivery.class.getName();
625            }
626    
627            /**
628             * Performs an SQL query.
629             *
630             * @param sql the sql query
631             */
632            protected void runSQL(String sql) throws SystemException {
633                    try {
634                            DataSource dataSource = announcementsDeliveryPersistence.getDataSource();
635    
636                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
637                                            sql, new int[0]);
638    
639                            sqlUpdate.update();
640                    }
641                    catch (Exception e) {
642                            throw new SystemException(e);
643                    }
644            }
645    
646            @BeanReference(type = com.liferay.portlet.announcements.service.AnnouncementsDeliveryLocalService.class)
647            protected com.liferay.portlet.announcements.service.AnnouncementsDeliveryLocalService announcementsDeliveryLocalService;
648            @BeanReference(type = com.liferay.portlet.announcements.service.AnnouncementsDeliveryService.class)
649            protected com.liferay.portlet.announcements.service.AnnouncementsDeliveryService announcementsDeliveryService;
650            @BeanReference(type = AnnouncementsDeliveryPersistence.class)
651            protected AnnouncementsDeliveryPersistence announcementsDeliveryPersistence;
652            @BeanReference(type = com.liferay.portlet.announcements.service.AnnouncementsEntryLocalService.class)
653            protected com.liferay.portlet.announcements.service.AnnouncementsEntryLocalService announcementsEntryLocalService;
654            @BeanReference(type = com.liferay.portlet.announcements.service.AnnouncementsEntryService.class)
655            protected com.liferay.portlet.announcements.service.AnnouncementsEntryService announcementsEntryService;
656            @BeanReference(type = AnnouncementsEntryPersistence.class)
657            protected AnnouncementsEntryPersistence announcementsEntryPersistence;
658            @BeanReference(type = AnnouncementsEntryFinder.class)
659            protected AnnouncementsEntryFinder announcementsEntryFinder;
660            @BeanReference(type = com.liferay.portlet.announcements.service.AnnouncementsFlagLocalService.class)
661            protected com.liferay.portlet.announcements.service.AnnouncementsFlagLocalService announcementsFlagLocalService;
662            @BeanReference(type = com.liferay.portlet.announcements.service.AnnouncementsFlagService.class)
663            protected com.liferay.portlet.announcements.service.AnnouncementsFlagService announcementsFlagService;
664            @BeanReference(type = AnnouncementsFlagPersistence.class)
665            protected AnnouncementsFlagPersistence announcementsFlagPersistence;
666            @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
667            protected com.liferay.counter.service.CounterLocalService counterLocalService;
668            @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class)
669            protected com.liferay.portal.service.ResourceLocalService resourceLocalService;
670            @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
671            protected com.liferay.portal.service.UserLocalService userLocalService;
672            @BeanReference(type = com.liferay.portal.service.UserService.class)
673            protected com.liferay.portal.service.UserService userService;
674            @BeanReference(type = UserPersistence.class)
675            protected UserPersistence userPersistence;
676            @BeanReference(type = UserFinder.class)
677            protected UserFinder userFinder;
678            @BeanReference(type = PersistedModelLocalServiceRegistry.class)
679            protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
680            private String _beanIdentifier;
681    }