001    /**
002     * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.messageboards.service.base;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.bean.BeanReference;
020    import com.liferay.portal.kernel.bean.IdentifiableBean;
021    import com.liferay.portal.kernel.dao.db.DB;
022    import com.liferay.portal.kernel.dao.db.DBFactoryUtil;
023    import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
024    import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
025    import com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery;
026    import com.liferay.portal.kernel.dao.orm.DefaultActionableDynamicQuery;
027    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
028    import com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil;
029    import com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery;
030    import com.liferay.portal.kernel.dao.orm.Projection;
031    import com.liferay.portal.kernel.exception.PortalException;
032    import com.liferay.portal.kernel.exception.SystemException;
033    import com.liferay.portal.kernel.search.Indexable;
034    import com.liferay.portal.kernel.search.IndexableType;
035    import com.liferay.portal.kernel.util.OrderByComparator;
036    import com.liferay.portal.model.PersistedModel;
037    import com.liferay.portal.service.BaseLocalServiceImpl;
038    import com.liferay.portal.service.PersistedModelLocalServiceRegistry;
039    import com.liferay.portal.service.persistence.UserFinder;
040    import com.liferay.portal.service.persistence.UserPersistence;
041    import com.liferay.portal.util.PortalUtil;
042    
043    import com.liferay.portlet.exportimport.lar.ExportImportHelperUtil;
044    import com.liferay.portlet.exportimport.lar.ManifestSummary;
045    import com.liferay.portlet.exportimport.lar.PortletDataContext;
046    import com.liferay.portlet.exportimport.lar.StagedModelDataHandlerUtil;
047    import com.liferay.portlet.exportimport.lar.StagedModelType;
048    import com.liferay.portlet.messageboards.model.MBThreadFlag;
049    import com.liferay.portlet.messageboards.service.MBThreadFlagLocalService;
050    import com.liferay.portlet.messageboards.service.persistence.MBThreadFlagPersistence;
051    
052    import java.io.Serializable;
053    
054    import java.util.List;
055    
056    import javax.sql.DataSource;
057    
058    /**
059     * Provides the base implementation for the message boards thread flag local service.
060     *
061     * <p>
062     * 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.messageboards.service.impl.MBThreadFlagLocalServiceImpl}.
063     * </p>
064     *
065     * @author Brian Wing Shun Chan
066     * @see com.liferay.portlet.messageboards.service.impl.MBThreadFlagLocalServiceImpl
067     * @see com.liferay.portlet.messageboards.service.MBThreadFlagLocalServiceUtil
068     * @generated
069     */
070    @ProviderType
071    public abstract class MBThreadFlagLocalServiceBaseImpl
072            extends BaseLocalServiceImpl implements MBThreadFlagLocalService,
073                    IdentifiableBean {
074            /*
075             * NOTE FOR DEVELOPERS:
076             *
077             * Never modify or reference this class directly. Always use {@link com.liferay.portlet.messageboards.service.MBThreadFlagLocalServiceUtil} to access the message boards thread flag local service.
078             */
079    
080            /**
081             * Adds the message boards thread flag to the database. Also notifies the appropriate model listeners.
082             *
083             * @param mbThreadFlag the message boards thread flag
084             * @return the message boards thread flag that was added
085             */
086            @Indexable(type = IndexableType.REINDEX)
087            @Override
088            public MBThreadFlag addMBThreadFlag(MBThreadFlag mbThreadFlag) {
089                    mbThreadFlag.setNew(true);
090    
091                    return mbThreadFlagPersistence.update(mbThreadFlag);
092            }
093    
094            /**
095             * Creates a new message boards thread flag with the primary key. Does not add the message boards thread flag to the database.
096             *
097             * @param threadFlagId the primary key for the new message boards thread flag
098             * @return the new message boards thread flag
099             */
100            @Override
101            public MBThreadFlag createMBThreadFlag(long threadFlagId) {
102                    return mbThreadFlagPersistence.create(threadFlagId);
103            }
104    
105            /**
106             * Deletes the message boards thread flag with the primary key from the database. Also notifies the appropriate model listeners.
107             *
108             * @param threadFlagId the primary key of the message boards thread flag
109             * @return the message boards thread flag that was removed
110             * @throws PortalException if a message boards thread flag with the primary key could not be found
111             */
112            @Indexable(type = IndexableType.DELETE)
113            @Override
114            public MBThreadFlag deleteMBThreadFlag(long threadFlagId)
115                    throws PortalException {
116                    return mbThreadFlagPersistence.remove(threadFlagId);
117            }
118    
119            /**
120             * Deletes the message boards thread flag from the database. Also notifies the appropriate model listeners.
121             *
122             * @param mbThreadFlag the message boards thread flag
123             * @return the message boards thread flag that was removed
124             */
125            @Indexable(type = IndexableType.DELETE)
126            @Override
127            public MBThreadFlag deleteMBThreadFlag(MBThreadFlag mbThreadFlag) {
128                    return mbThreadFlagPersistence.remove(mbThreadFlag);
129            }
130    
131            @Override
132            public DynamicQuery dynamicQuery() {
133                    Class<?> clazz = getClass();
134    
135                    return DynamicQueryFactoryUtil.forClass(MBThreadFlag.class,
136                            clazz.getClassLoader());
137            }
138    
139            /**
140             * Performs a dynamic query on the database and returns the matching rows.
141             *
142             * @param dynamicQuery the dynamic query
143             * @return the matching rows
144             */
145            @Override
146            public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery) {
147                    return mbThreadFlagPersistence.findWithDynamicQuery(dynamicQuery);
148            }
149    
150            /**
151             * Performs a dynamic query on the database and returns a range of the matching rows.
152             *
153             * <p>
154             * 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.messageboards.model.impl.MBThreadFlagModelImpl}. 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.
155             * </p>
156             *
157             * @param dynamicQuery the dynamic query
158             * @param start the lower bound of the range of model instances
159             * @param end the upper bound of the range of model instances (not inclusive)
160             * @return the range of matching rows
161             */
162            @Override
163            public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start,
164                    int end) {
165                    return mbThreadFlagPersistence.findWithDynamicQuery(dynamicQuery,
166                            start, end);
167            }
168    
169            /**
170             * Performs a dynamic query on the database and returns an ordered range of the matching rows.
171             *
172             * <p>
173             * 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.messageboards.model.impl.MBThreadFlagModelImpl}. 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.
174             * </p>
175             *
176             * @param dynamicQuery the dynamic query
177             * @param start the lower bound of the range of model instances
178             * @param end the upper bound of the range of model instances (not inclusive)
179             * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
180             * @return the ordered range of matching rows
181             */
182            @Override
183            public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start,
184                    int end, OrderByComparator<T> orderByComparator) {
185                    return mbThreadFlagPersistence.findWithDynamicQuery(dynamicQuery,
186                            start, end, orderByComparator);
187            }
188    
189            /**
190             * Returns the number of rows matching the dynamic query.
191             *
192             * @param dynamicQuery the dynamic query
193             * @return the number of rows matching the dynamic query
194             */
195            @Override
196            public long dynamicQueryCount(DynamicQuery dynamicQuery) {
197                    return mbThreadFlagPersistence.countWithDynamicQuery(dynamicQuery);
198            }
199    
200            /**
201             * Returns the number of rows matching the dynamic query.
202             *
203             * @param dynamicQuery the dynamic query
204             * @param projection the projection to apply to the query
205             * @return the number of rows matching the dynamic query
206             */
207            @Override
208            public long dynamicQueryCount(DynamicQuery dynamicQuery,
209                    Projection projection) {
210                    return mbThreadFlagPersistence.countWithDynamicQuery(dynamicQuery,
211                            projection);
212            }
213    
214            @Override
215            public MBThreadFlag fetchMBThreadFlag(long threadFlagId) {
216                    return mbThreadFlagPersistence.fetchByPrimaryKey(threadFlagId);
217            }
218    
219            /**
220             * Returns the message boards thread flag matching the UUID and group.
221             *
222             * @param uuid the message boards thread flag's UUID
223             * @param groupId the primary key of the group
224             * @return the matching message boards thread flag, or <code>null</code> if a matching message boards thread flag could not be found
225             */
226            @Override
227            public MBThreadFlag fetchMBThreadFlagByUuidAndGroupId(String uuid,
228                    long groupId) {
229                    return mbThreadFlagPersistence.fetchByUUID_G(uuid, groupId);
230            }
231    
232            /**
233             * Returns the message boards thread flag with the primary key.
234             *
235             * @param threadFlagId the primary key of the message boards thread flag
236             * @return the message boards thread flag
237             * @throws PortalException if a message boards thread flag with the primary key could not be found
238             */
239            @Override
240            public MBThreadFlag getMBThreadFlag(long threadFlagId)
241                    throws PortalException {
242                    return mbThreadFlagPersistence.findByPrimaryKey(threadFlagId);
243            }
244    
245            @Override
246            public ActionableDynamicQuery getActionableDynamicQuery() {
247                    ActionableDynamicQuery actionableDynamicQuery = new DefaultActionableDynamicQuery();
248    
249                    actionableDynamicQuery.setBaseLocalService(com.liferay.portlet.messageboards.service.MBThreadFlagLocalServiceUtil.getService());
250                    actionableDynamicQuery.setClass(MBThreadFlag.class);
251                    actionableDynamicQuery.setClassLoader(getClassLoader());
252    
253                    actionableDynamicQuery.setPrimaryKeyPropertyName("threadFlagId");
254    
255                    return actionableDynamicQuery;
256            }
257    
258            protected void initActionableDynamicQuery(
259                    ActionableDynamicQuery actionableDynamicQuery) {
260                    actionableDynamicQuery.setBaseLocalService(com.liferay.portlet.messageboards.service.MBThreadFlagLocalServiceUtil.getService());
261                    actionableDynamicQuery.setClass(MBThreadFlag.class);
262                    actionableDynamicQuery.setClassLoader(getClassLoader());
263    
264                    actionableDynamicQuery.setPrimaryKeyPropertyName("threadFlagId");
265            }
266    
267            @Override
268            public ExportActionableDynamicQuery getExportActionableDynamicQuery(
269                    final PortletDataContext portletDataContext) {
270                    final ExportActionableDynamicQuery exportActionableDynamicQuery = new ExportActionableDynamicQuery() {
271                                    @Override
272                                    public long performCount() throws PortalException {
273                                            ManifestSummary manifestSummary = portletDataContext.getManifestSummary();
274    
275                                            StagedModelType stagedModelType = getStagedModelType();
276    
277                                            long modelAdditionCount = super.performCount();
278    
279                                            manifestSummary.addModelAdditionCount(stagedModelType.toString(),
280                                                    modelAdditionCount);
281    
282                                            long modelDeletionCount = ExportImportHelperUtil.getModelDeletionCount(portletDataContext,
283                                                            stagedModelType);
284    
285                                            manifestSummary.addModelDeletionCount(stagedModelType.toString(),
286                                                    modelDeletionCount);
287    
288                                            return modelAdditionCount;
289                                    }
290                            };
291    
292                    initActionableDynamicQuery(exportActionableDynamicQuery);
293    
294                    exportActionableDynamicQuery.setAddCriteriaMethod(new ActionableDynamicQuery.AddCriteriaMethod() {
295                                    @Override
296                                    public void addCriteria(DynamicQuery dynamicQuery) {
297                                            portletDataContext.addDateRangeCriteria(dynamicQuery,
298                                                    "modifiedDate");
299                                    }
300                            });
301    
302                    exportActionableDynamicQuery.setCompanyId(portletDataContext.getCompanyId());
303    
304                    exportActionableDynamicQuery.setGroupId(portletDataContext.getScopeGroupId());
305    
306                    exportActionableDynamicQuery.setPerformActionMethod(new ActionableDynamicQuery.PerformActionMethod() {
307                                    @Override
308                                    public void performAction(Object object)
309                                            throws PortalException {
310                                            MBThreadFlag stagedModel = (MBThreadFlag)object;
311    
312                                            StagedModelDataHandlerUtil.exportStagedModel(portletDataContext,
313                                                    stagedModel);
314                                    }
315                            });
316                    exportActionableDynamicQuery.setStagedModelType(new StagedModelType(
317                                    PortalUtil.getClassNameId(MBThreadFlag.class.getName())));
318    
319                    return exportActionableDynamicQuery;
320            }
321    
322            /**
323             * @throws PortalException
324             */
325            @Override
326            public PersistedModel deletePersistedModel(PersistedModel persistedModel)
327                    throws PortalException {
328                    return mbThreadFlagLocalService.deleteMBThreadFlag((MBThreadFlag)persistedModel);
329            }
330    
331            @Override
332            public PersistedModel getPersistedModel(Serializable primaryKeyObj)
333                    throws PortalException {
334                    return mbThreadFlagPersistence.findByPrimaryKey(primaryKeyObj);
335            }
336    
337            /**
338             * Returns all the message boards thread flags matching the UUID and company.
339             *
340             * @param uuid the UUID of the message boards thread flags
341             * @param companyId the primary key of the company
342             * @return the matching message boards thread flags, or an empty list if no matches were found
343             */
344            @Override
345            public List<MBThreadFlag> getMBThreadFlagsByUuidAndCompanyId(String uuid,
346                    long companyId) {
347                    return mbThreadFlagPersistence.findByUuid_C(uuid, companyId);
348            }
349    
350            /**
351             * Returns a range of message boards thread flags matching the UUID and company.
352             *
353             * @param uuid the UUID of the message boards thread flags
354             * @param companyId the primary key of the company
355             * @param start the lower bound of the range of message boards thread flags
356             * @param end the upper bound of the range of message boards thread flags (not inclusive)
357             * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
358             * @return the range of matching message boards thread flags, or an empty list if no matches were found
359             */
360            @Override
361            public List<MBThreadFlag> getMBThreadFlagsByUuidAndCompanyId(String uuid,
362                    long companyId, int start, int end,
363                    OrderByComparator<MBThreadFlag> orderByComparator) {
364                    return mbThreadFlagPersistence.findByUuid_C(uuid, companyId, start,
365                            end, orderByComparator);
366            }
367    
368            /**
369             * Returns the message boards thread flag matching the UUID and group.
370             *
371             * @param uuid the message boards thread flag's UUID
372             * @param groupId the primary key of the group
373             * @return the matching message boards thread flag
374             * @throws PortalException if a matching message boards thread flag could not be found
375             */
376            @Override
377            public MBThreadFlag getMBThreadFlagByUuidAndGroupId(String uuid,
378                    long groupId) throws PortalException {
379                    return mbThreadFlagPersistence.findByUUID_G(uuid, groupId);
380            }
381    
382            /**
383             * Returns a range of all the message boards thread flags.
384             *
385             * <p>
386             * 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.messageboards.model.impl.MBThreadFlagModelImpl}. 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.
387             * </p>
388             *
389             * @param start the lower bound of the range of message boards thread flags
390             * @param end the upper bound of the range of message boards thread flags (not inclusive)
391             * @return the range of message boards thread flags
392             */
393            @Override
394            public List<MBThreadFlag> getMBThreadFlags(int start, int end) {
395                    return mbThreadFlagPersistence.findAll(start, end);
396            }
397    
398            /**
399             * Returns the number of message boards thread flags.
400             *
401             * @return the number of message boards thread flags
402             */
403            @Override
404            public int getMBThreadFlagsCount() {
405                    return mbThreadFlagPersistence.countAll();
406            }
407    
408            /**
409             * Updates the message boards thread flag in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
410             *
411             * @param mbThreadFlag the message boards thread flag
412             * @return the message boards thread flag that was updated
413             */
414            @Indexable(type = IndexableType.REINDEX)
415            @Override
416            public MBThreadFlag updateMBThreadFlag(MBThreadFlag mbThreadFlag) {
417                    return mbThreadFlagPersistence.update(mbThreadFlag);
418            }
419    
420            /**
421             * Returns the message boards thread flag local service.
422             *
423             * @return the message boards thread flag local service
424             */
425            public MBThreadFlagLocalService getMBThreadFlagLocalService() {
426                    return mbThreadFlagLocalService;
427            }
428    
429            /**
430             * Sets the message boards thread flag local service.
431             *
432             * @param mbThreadFlagLocalService the message boards thread flag local service
433             */
434            public void setMBThreadFlagLocalService(
435                    MBThreadFlagLocalService mbThreadFlagLocalService) {
436                    this.mbThreadFlagLocalService = mbThreadFlagLocalService;
437            }
438    
439            /**
440             * Returns the message boards thread flag persistence.
441             *
442             * @return the message boards thread flag persistence
443             */
444            public MBThreadFlagPersistence getMBThreadFlagPersistence() {
445                    return mbThreadFlagPersistence;
446            }
447    
448            /**
449             * Sets the message boards thread flag persistence.
450             *
451             * @param mbThreadFlagPersistence the message boards thread flag persistence
452             */
453            public void setMBThreadFlagPersistence(
454                    MBThreadFlagPersistence mbThreadFlagPersistence) {
455                    this.mbThreadFlagPersistence = mbThreadFlagPersistence;
456            }
457    
458            /**
459             * Returns the counter local service.
460             *
461             * @return the counter local service
462             */
463            public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
464                    return counterLocalService;
465            }
466    
467            /**
468             * Sets the counter local service.
469             *
470             * @param counterLocalService the counter local service
471             */
472            public void setCounterLocalService(
473                    com.liferay.counter.service.CounterLocalService counterLocalService) {
474                    this.counterLocalService = counterLocalService;
475            }
476    
477            /**
478             * Returns the user local service.
479             *
480             * @return the user local service
481             */
482            public com.liferay.portal.service.UserLocalService getUserLocalService() {
483                    return userLocalService;
484            }
485    
486            /**
487             * Sets the user local service.
488             *
489             * @param userLocalService the user local service
490             */
491            public void setUserLocalService(
492                    com.liferay.portal.service.UserLocalService userLocalService) {
493                    this.userLocalService = userLocalService;
494            }
495    
496            /**
497             * Returns the user remote service.
498             *
499             * @return the user remote service
500             */
501            public com.liferay.portal.service.UserService getUserService() {
502                    return userService;
503            }
504    
505            /**
506             * Sets the user remote service.
507             *
508             * @param userService the user remote service
509             */
510            public void setUserService(
511                    com.liferay.portal.service.UserService userService) {
512                    this.userService = userService;
513            }
514    
515            /**
516             * Returns the user persistence.
517             *
518             * @return the user persistence
519             */
520            public UserPersistence getUserPersistence() {
521                    return userPersistence;
522            }
523    
524            /**
525             * Sets the user persistence.
526             *
527             * @param userPersistence the user persistence
528             */
529            public void setUserPersistence(UserPersistence userPersistence) {
530                    this.userPersistence = userPersistence;
531            }
532    
533            /**
534             * Returns the user finder.
535             *
536             * @return the user finder
537             */
538            public UserFinder getUserFinder() {
539                    return userFinder;
540            }
541    
542            /**
543             * Sets the user finder.
544             *
545             * @param userFinder the user finder
546             */
547            public void setUserFinder(UserFinder userFinder) {
548                    this.userFinder = userFinder;
549            }
550    
551            public void afterPropertiesSet() {
552                    persistedModelLocalServiceRegistry.register("com.liferay.portlet.messageboards.model.MBThreadFlag",
553                            mbThreadFlagLocalService);
554            }
555    
556            public void destroy() {
557                    persistedModelLocalServiceRegistry.unregister(
558                            "com.liferay.portlet.messageboards.model.MBThreadFlag");
559            }
560    
561            /**
562             * Returns the Spring bean ID for this bean.
563             *
564             * @return the Spring bean ID for this bean
565             */
566            @Override
567            public String getBeanIdentifier() {
568                    return _beanIdentifier;
569            }
570    
571            /**
572             * Sets the Spring bean ID for this bean.
573             *
574             * @param beanIdentifier the Spring bean ID for this bean
575             */
576            @Override
577            public void setBeanIdentifier(String beanIdentifier) {
578                    _beanIdentifier = beanIdentifier;
579            }
580    
581            protected Class<?> getModelClass() {
582                    return MBThreadFlag.class;
583            }
584    
585            protected String getModelClassName() {
586                    return MBThreadFlag.class.getName();
587            }
588    
589            /**
590             * Performs a SQL query.
591             *
592             * @param sql the sql query
593             */
594            protected void runSQL(String sql) {
595                    try {
596                            DataSource dataSource = mbThreadFlagPersistence.getDataSource();
597    
598                            DB db = DBFactoryUtil.getDB();
599    
600                            sql = db.buildSQL(sql);
601                            sql = PortalUtil.transformSQL(sql);
602    
603                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
604                                            sql, new int[0]);
605    
606                            sqlUpdate.update();
607                    }
608                    catch (Exception e) {
609                            throw new SystemException(e);
610                    }
611            }
612    
613            @BeanReference(type = MBThreadFlagLocalService.class)
614            protected MBThreadFlagLocalService mbThreadFlagLocalService;
615            @BeanReference(type = MBThreadFlagPersistence.class)
616            protected MBThreadFlagPersistence mbThreadFlagPersistence;
617            @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
618            protected com.liferay.counter.service.CounterLocalService counterLocalService;
619            @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
620            protected com.liferay.portal.service.UserLocalService userLocalService;
621            @BeanReference(type = com.liferay.portal.service.UserService.class)
622            protected com.liferay.portal.service.UserService userService;
623            @BeanReference(type = UserPersistence.class)
624            protected UserPersistence userPersistence;
625            @BeanReference(type = UserFinder.class)
626            protected UserFinder userFinder;
627            @BeanReference(type = PersistedModelLocalServiceRegistry.class)
628            protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
629            private String _beanIdentifier;
630    }