001    /**
002     * Copyright (c) 2000-2012 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.asset.service.base;
016    
017    import com.liferay.counter.service.CounterLocalService;
018    
019    import com.liferay.portal.kernel.bean.BeanReference;
020    import com.liferay.portal.kernel.bean.IdentifiableBean;
021    import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
022    import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
023    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
024    import com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil;
025    import com.liferay.portal.kernel.exception.PortalException;
026    import com.liferay.portal.kernel.exception.SystemException;
027    import com.liferay.portal.kernel.search.Indexable;
028    import com.liferay.portal.kernel.search.IndexableType;
029    import com.liferay.portal.kernel.util.OrderByComparator;
030    import com.liferay.portal.model.PersistedModel;
031    import com.liferay.portal.service.BaseLocalServiceImpl;
032    import com.liferay.portal.service.PersistedModelLocalServiceRegistry;
033    import com.liferay.portal.service.ResourceLocalService;
034    import com.liferay.portal.service.UserLocalService;
035    import com.liferay.portal.service.UserService;
036    import com.liferay.portal.service.persistence.UserFinder;
037    import com.liferay.portal.service.persistence.UserPersistence;
038    
039    import com.liferay.portlet.asset.model.AssetTagProperty;
040    import com.liferay.portlet.asset.service.AssetCategoryLocalService;
041    import com.liferay.portlet.asset.service.AssetCategoryPropertyLocalService;
042    import com.liferay.portlet.asset.service.AssetCategoryPropertyService;
043    import com.liferay.portlet.asset.service.AssetCategoryService;
044    import com.liferay.portlet.asset.service.AssetEntryLocalService;
045    import com.liferay.portlet.asset.service.AssetEntryService;
046    import com.liferay.portlet.asset.service.AssetLinkLocalService;
047    import com.liferay.portlet.asset.service.AssetTagLocalService;
048    import com.liferay.portlet.asset.service.AssetTagPropertyLocalService;
049    import com.liferay.portlet.asset.service.AssetTagPropertyService;
050    import com.liferay.portlet.asset.service.AssetTagService;
051    import com.liferay.portlet.asset.service.AssetTagStatsLocalService;
052    import com.liferay.portlet.asset.service.AssetVocabularyLocalService;
053    import com.liferay.portlet.asset.service.AssetVocabularyService;
054    import com.liferay.portlet.asset.service.persistence.AssetCategoryFinder;
055    import com.liferay.portlet.asset.service.persistence.AssetCategoryPersistence;
056    import com.liferay.portlet.asset.service.persistence.AssetCategoryPropertyFinder;
057    import com.liferay.portlet.asset.service.persistence.AssetCategoryPropertyPersistence;
058    import com.liferay.portlet.asset.service.persistence.AssetEntryFinder;
059    import com.liferay.portlet.asset.service.persistence.AssetEntryPersistence;
060    import com.liferay.portlet.asset.service.persistence.AssetLinkFinder;
061    import com.liferay.portlet.asset.service.persistence.AssetLinkPersistence;
062    import com.liferay.portlet.asset.service.persistence.AssetTagFinder;
063    import com.liferay.portlet.asset.service.persistence.AssetTagPersistence;
064    import com.liferay.portlet.asset.service.persistence.AssetTagPropertyFinder;
065    import com.liferay.portlet.asset.service.persistence.AssetTagPropertyKeyFinder;
066    import com.liferay.portlet.asset.service.persistence.AssetTagPropertyPersistence;
067    import com.liferay.portlet.asset.service.persistence.AssetTagStatsPersistence;
068    import com.liferay.portlet.asset.service.persistence.AssetVocabularyFinder;
069    import com.liferay.portlet.asset.service.persistence.AssetVocabularyPersistence;
070    
071    import java.io.Serializable;
072    
073    import java.util.List;
074    
075    import javax.sql.DataSource;
076    
077    /**
078     * The base implementation of the asset tag property local service.
079     *
080     * <p>
081     * 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.asset.service.impl.AssetTagPropertyLocalServiceImpl}.
082     * </p>
083     *
084     * @author Brian Wing Shun Chan
085     * @see com.liferay.portlet.asset.service.impl.AssetTagPropertyLocalServiceImpl
086     * @see com.liferay.portlet.asset.service.AssetTagPropertyLocalServiceUtil
087     * @generated
088     */
089    public abstract class AssetTagPropertyLocalServiceBaseImpl
090            extends BaseLocalServiceImpl implements AssetTagPropertyLocalService,
091                    IdentifiableBean {
092            /*
093             * NOTE FOR DEVELOPERS:
094             *
095             * Never modify or reference this class directly. Always use {@link com.liferay.portlet.asset.service.AssetTagPropertyLocalServiceUtil} to access the asset tag property local service.
096             */
097    
098            /**
099             * Adds the asset tag property to the database. Also notifies the appropriate model listeners.
100             *
101             * @param assetTagProperty the asset tag property
102             * @return the asset tag property that was added
103             * @throws SystemException if a system exception occurred
104             */
105            @Indexable(type = IndexableType.REINDEX)
106            public AssetTagProperty addAssetTagProperty(
107                    AssetTagProperty assetTagProperty) throws SystemException {
108                    assetTagProperty.setNew(true);
109    
110                    return assetTagPropertyPersistence.update(assetTagProperty);
111            }
112    
113            /**
114             * Creates a new asset tag property with the primary key. Does not add the asset tag property to the database.
115             *
116             * @param tagPropertyId the primary key for the new asset tag property
117             * @return the new asset tag property
118             */
119            public AssetTagProperty createAssetTagProperty(long tagPropertyId) {
120                    return assetTagPropertyPersistence.create(tagPropertyId);
121            }
122    
123            /**
124             * Deletes the asset tag property with the primary key from the database. Also notifies the appropriate model listeners.
125             *
126             * @param tagPropertyId the primary key of the asset tag property
127             * @return the asset tag property that was removed
128             * @throws PortalException if a asset tag property with the primary key could not be found
129             * @throws SystemException if a system exception occurred
130             */
131            @Indexable(type = IndexableType.DELETE)
132            public AssetTagProperty deleteAssetTagProperty(long tagPropertyId)
133                    throws PortalException, SystemException {
134                    return assetTagPropertyPersistence.remove(tagPropertyId);
135            }
136    
137            /**
138             * Deletes the asset tag property from the database. Also notifies the appropriate model listeners.
139             *
140             * @param assetTagProperty the asset tag property
141             * @return the asset tag property that was removed
142             * @throws SystemException if a system exception occurred
143             */
144            @Indexable(type = IndexableType.DELETE)
145            public AssetTagProperty deleteAssetTagProperty(
146                    AssetTagProperty assetTagProperty) throws SystemException {
147                    return assetTagPropertyPersistence.remove(assetTagProperty);
148            }
149    
150            public DynamicQuery dynamicQuery() {
151                    Class<?> clazz = getClass();
152    
153                    return DynamicQueryFactoryUtil.forClass(AssetTagProperty.class,
154                            clazz.getClassLoader());
155            }
156    
157            /**
158             * Performs a dynamic query on the database and returns the matching rows.
159             *
160             * @param dynamicQuery the dynamic query
161             * @return the matching rows
162             * @throws SystemException if a system exception occurred
163             */
164            @SuppressWarnings("rawtypes")
165            public List dynamicQuery(DynamicQuery dynamicQuery)
166                    throws SystemException {
167                    return assetTagPropertyPersistence.findWithDynamicQuery(dynamicQuery);
168            }
169    
170            /**
171             * Performs a dynamic query on the database and returns a range of the matching rows.
172             *
173             * <p>
174             * 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.asset.model.impl.AssetTagPropertyModelImpl}. 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.
175             * </p>
176             *
177             * @param dynamicQuery the dynamic query
178             * @param start the lower bound of the range of model instances
179             * @param end the upper bound of the range of model instances (not inclusive)
180             * @return the range of matching rows
181             * @throws SystemException if a system exception occurred
182             */
183            @SuppressWarnings("rawtypes")
184            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
185                    throws SystemException {
186                    return assetTagPropertyPersistence.findWithDynamicQuery(dynamicQuery,
187                            start, end);
188            }
189    
190            /**
191             * Performs a dynamic query on the database and returns an ordered range of the matching rows.
192             *
193             * <p>
194             * 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.asset.model.impl.AssetTagPropertyModelImpl}. 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.
195             * </p>
196             *
197             * @param dynamicQuery the dynamic query
198             * @param start the lower bound of the range of model instances
199             * @param end the upper bound of the range of model instances (not inclusive)
200             * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
201             * @return the ordered range of matching rows
202             * @throws SystemException if a system exception occurred
203             */
204            @SuppressWarnings("rawtypes")
205            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end,
206                    OrderByComparator orderByComparator) throws SystemException {
207                    return assetTagPropertyPersistence.findWithDynamicQuery(dynamicQuery,
208                            start, end, orderByComparator);
209            }
210    
211            /**
212             * Returns the number of rows that match the dynamic query.
213             *
214             * @param dynamicQuery the dynamic query
215             * @return the number of rows that match the dynamic query
216             * @throws SystemException if a system exception occurred
217             */
218            public long dynamicQueryCount(DynamicQuery dynamicQuery)
219                    throws SystemException {
220                    return assetTagPropertyPersistence.countWithDynamicQuery(dynamicQuery);
221            }
222    
223            public AssetTagProperty fetchAssetTagProperty(long tagPropertyId)
224                    throws SystemException {
225                    return assetTagPropertyPersistence.fetchByPrimaryKey(tagPropertyId);
226            }
227    
228            /**
229             * Returns the asset tag property with the primary key.
230             *
231             * @param tagPropertyId the primary key of the asset tag property
232             * @return the asset tag property
233             * @throws PortalException if a asset tag property with the primary key could not be found
234             * @throws SystemException if a system exception occurred
235             */
236            public AssetTagProperty getAssetTagProperty(long tagPropertyId)
237                    throws PortalException, SystemException {
238                    return assetTagPropertyPersistence.findByPrimaryKey(tagPropertyId);
239            }
240    
241            public PersistedModel getPersistedModel(Serializable primaryKeyObj)
242                    throws PortalException, SystemException {
243                    return assetTagPropertyPersistence.findByPrimaryKey(primaryKeyObj);
244            }
245    
246            /**
247             * Returns a range of all the asset tag properties.
248             *
249             * <p>
250             * 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.asset.model.impl.AssetTagPropertyModelImpl}. 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.
251             * </p>
252             *
253             * @param start the lower bound of the range of asset tag properties
254             * @param end the upper bound of the range of asset tag properties (not inclusive)
255             * @return the range of asset tag properties
256             * @throws SystemException if a system exception occurred
257             */
258            public List<AssetTagProperty> getAssetTagProperties(int start, int end)
259                    throws SystemException {
260                    return assetTagPropertyPersistence.findAll(start, end);
261            }
262    
263            /**
264             * Returns the number of asset tag properties.
265             *
266             * @return the number of asset tag properties
267             * @throws SystemException if a system exception occurred
268             */
269            public int getAssetTagPropertiesCount() throws SystemException {
270                    return assetTagPropertyPersistence.countAll();
271            }
272    
273            /**
274             * Updates the asset tag property in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
275             *
276             * @param assetTagProperty the asset tag property
277             * @return the asset tag property that was updated
278             * @throws SystemException if a system exception occurred
279             */
280            @Indexable(type = IndexableType.REINDEX)
281            public AssetTagProperty updateAssetTagProperty(
282                    AssetTagProperty assetTagProperty) throws SystemException {
283                    return assetTagPropertyPersistence.update(assetTagProperty);
284            }
285    
286            /**
287             * Returns the asset category local service.
288             *
289             * @return the asset category local service
290             */
291            public AssetCategoryLocalService getAssetCategoryLocalService() {
292                    return assetCategoryLocalService;
293            }
294    
295            /**
296             * Sets the asset category local service.
297             *
298             * @param assetCategoryLocalService the asset category local service
299             */
300            public void setAssetCategoryLocalService(
301                    AssetCategoryLocalService assetCategoryLocalService) {
302                    this.assetCategoryLocalService = assetCategoryLocalService;
303            }
304    
305            /**
306             * Returns the asset category remote service.
307             *
308             * @return the asset category remote service
309             */
310            public AssetCategoryService getAssetCategoryService() {
311                    return assetCategoryService;
312            }
313    
314            /**
315             * Sets the asset category remote service.
316             *
317             * @param assetCategoryService the asset category remote service
318             */
319            public void setAssetCategoryService(
320                    AssetCategoryService assetCategoryService) {
321                    this.assetCategoryService = assetCategoryService;
322            }
323    
324            /**
325             * Returns the asset category persistence.
326             *
327             * @return the asset category persistence
328             */
329            public AssetCategoryPersistence getAssetCategoryPersistence() {
330                    return assetCategoryPersistence;
331            }
332    
333            /**
334             * Sets the asset category persistence.
335             *
336             * @param assetCategoryPersistence the asset category persistence
337             */
338            public void setAssetCategoryPersistence(
339                    AssetCategoryPersistence assetCategoryPersistence) {
340                    this.assetCategoryPersistence = assetCategoryPersistence;
341            }
342    
343            /**
344             * Returns the asset category finder.
345             *
346             * @return the asset category finder
347             */
348            public AssetCategoryFinder getAssetCategoryFinder() {
349                    return assetCategoryFinder;
350            }
351    
352            /**
353             * Sets the asset category finder.
354             *
355             * @param assetCategoryFinder the asset category finder
356             */
357            public void setAssetCategoryFinder(AssetCategoryFinder assetCategoryFinder) {
358                    this.assetCategoryFinder = assetCategoryFinder;
359            }
360    
361            /**
362             * Returns the asset category property local service.
363             *
364             * @return the asset category property local service
365             */
366            public AssetCategoryPropertyLocalService getAssetCategoryPropertyLocalService() {
367                    return assetCategoryPropertyLocalService;
368            }
369    
370            /**
371             * Sets the asset category property local service.
372             *
373             * @param assetCategoryPropertyLocalService the asset category property local service
374             */
375            public void setAssetCategoryPropertyLocalService(
376                    AssetCategoryPropertyLocalService assetCategoryPropertyLocalService) {
377                    this.assetCategoryPropertyLocalService = assetCategoryPropertyLocalService;
378            }
379    
380            /**
381             * Returns the asset category property remote service.
382             *
383             * @return the asset category property remote service
384             */
385            public AssetCategoryPropertyService getAssetCategoryPropertyService() {
386                    return assetCategoryPropertyService;
387            }
388    
389            /**
390             * Sets the asset category property remote service.
391             *
392             * @param assetCategoryPropertyService the asset category property remote service
393             */
394            public void setAssetCategoryPropertyService(
395                    AssetCategoryPropertyService assetCategoryPropertyService) {
396                    this.assetCategoryPropertyService = assetCategoryPropertyService;
397            }
398    
399            /**
400             * Returns the asset category property persistence.
401             *
402             * @return the asset category property persistence
403             */
404            public AssetCategoryPropertyPersistence getAssetCategoryPropertyPersistence() {
405                    return assetCategoryPropertyPersistence;
406            }
407    
408            /**
409             * Sets the asset category property persistence.
410             *
411             * @param assetCategoryPropertyPersistence the asset category property persistence
412             */
413            public void setAssetCategoryPropertyPersistence(
414                    AssetCategoryPropertyPersistence assetCategoryPropertyPersistence) {
415                    this.assetCategoryPropertyPersistence = assetCategoryPropertyPersistence;
416            }
417    
418            /**
419             * Returns the asset category property finder.
420             *
421             * @return the asset category property finder
422             */
423            public AssetCategoryPropertyFinder getAssetCategoryPropertyFinder() {
424                    return assetCategoryPropertyFinder;
425            }
426    
427            /**
428             * Sets the asset category property finder.
429             *
430             * @param assetCategoryPropertyFinder the asset category property finder
431             */
432            public void setAssetCategoryPropertyFinder(
433                    AssetCategoryPropertyFinder assetCategoryPropertyFinder) {
434                    this.assetCategoryPropertyFinder = assetCategoryPropertyFinder;
435            }
436    
437            /**
438             * Returns the asset entry local service.
439             *
440             * @return the asset entry local service
441             */
442            public AssetEntryLocalService getAssetEntryLocalService() {
443                    return assetEntryLocalService;
444            }
445    
446            /**
447             * Sets the asset entry local service.
448             *
449             * @param assetEntryLocalService the asset entry local service
450             */
451            public void setAssetEntryLocalService(
452                    AssetEntryLocalService assetEntryLocalService) {
453                    this.assetEntryLocalService = assetEntryLocalService;
454            }
455    
456            /**
457             * Returns the asset entry remote service.
458             *
459             * @return the asset entry remote service
460             */
461            public AssetEntryService getAssetEntryService() {
462                    return assetEntryService;
463            }
464    
465            /**
466             * Sets the asset entry remote service.
467             *
468             * @param assetEntryService the asset entry remote service
469             */
470            public void setAssetEntryService(AssetEntryService assetEntryService) {
471                    this.assetEntryService = assetEntryService;
472            }
473    
474            /**
475             * Returns the asset entry persistence.
476             *
477             * @return the asset entry persistence
478             */
479            public AssetEntryPersistence getAssetEntryPersistence() {
480                    return assetEntryPersistence;
481            }
482    
483            /**
484             * Sets the asset entry persistence.
485             *
486             * @param assetEntryPersistence the asset entry persistence
487             */
488            public void setAssetEntryPersistence(
489                    AssetEntryPersistence assetEntryPersistence) {
490                    this.assetEntryPersistence = assetEntryPersistence;
491            }
492    
493            /**
494             * Returns the asset entry finder.
495             *
496             * @return the asset entry finder
497             */
498            public AssetEntryFinder getAssetEntryFinder() {
499                    return assetEntryFinder;
500            }
501    
502            /**
503             * Sets the asset entry finder.
504             *
505             * @param assetEntryFinder the asset entry finder
506             */
507            public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
508                    this.assetEntryFinder = assetEntryFinder;
509            }
510    
511            /**
512             * Returns the asset link local service.
513             *
514             * @return the asset link local service
515             */
516            public AssetLinkLocalService getAssetLinkLocalService() {
517                    return assetLinkLocalService;
518            }
519    
520            /**
521             * Sets the asset link local service.
522             *
523             * @param assetLinkLocalService the asset link local service
524             */
525            public void setAssetLinkLocalService(
526                    AssetLinkLocalService assetLinkLocalService) {
527                    this.assetLinkLocalService = assetLinkLocalService;
528            }
529    
530            /**
531             * Returns the asset link persistence.
532             *
533             * @return the asset link persistence
534             */
535            public AssetLinkPersistence getAssetLinkPersistence() {
536                    return assetLinkPersistence;
537            }
538    
539            /**
540             * Sets the asset link persistence.
541             *
542             * @param assetLinkPersistence the asset link persistence
543             */
544            public void setAssetLinkPersistence(
545                    AssetLinkPersistence assetLinkPersistence) {
546                    this.assetLinkPersistence = assetLinkPersistence;
547            }
548    
549            /**
550             * Returns the asset link finder.
551             *
552             * @return the asset link finder
553             */
554            public AssetLinkFinder getAssetLinkFinder() {
555                    return assetLinkFinder;
556            }
557    
558            /**
559             * Sets the asset link finder.
560             *
561             * @param assetLinkFinder the asset link finder
562             */
563            public void setAssetLinkFinder(AssetLinkFinder assetLinkFinder) {
564                    this.assetLinkFinder = assetLinkFinder;
565            }
566    
567            /**
568             * Returns the asset tag local service.
569             *
570             * @return the asset tag local service
571             */
572            public AssetTagLocalService getAssetTagLocalService() {
573                    return assetTagLocalService;
574            }
575    
576            /**
577             * Sets the asset tag local service.
578             *
579             * @param assetTagLocalService the asset tag local service
580             */
581            public void setAssetTagLocalService(
582                    AssetTagLocalService assetTagLocalService) {
583                    this.assetTagLocalService = assetTagLocalService;
584            }
585    
586            /**
587             * Returns the asset tag remote service.
588             *
589             * @return the asset tag remote service
590             */
591            public AssetTagService getAssetTagService() {
592                    return assetTagService;
593            }
594    
595            /**
596             * Sets the asset tag remote service.
597             *
598             * @param assetTagService the asset tag remote service
599             */
600            public void setAssetTagService(AssetTagService assetTagService) {
601                    this.assetTagService = assetTagService;
602            }
603    
604            /**
605             * Returns the asset tag persistence.
606             *
607             * @return the asset tag persistence
608             */
609            public AssetTagPersistence getAssetTagPersistence() {
610                    return assetTagPersistence;
611            }
612    
613            /**
614             * Sets the asset tag persistence.
615             *
616             * @param assetTagPersistence the asset tag persistence
617             */
618            public void setAssetTagPersistence(AssetTagPersistence assetTagPersistence) {
619                    this.assetTagPersistence = assetTagPersistence;
620            }
621    
622            /**
623             * Returns the asset tag finder.
624             *
625             * @return the asset tag finder
626             */
627            public AssetTagFinder getAssetTagFinder() {
628                    return assetTagFinder;
629            }
630    
631            /**
632             * Sets the asset tag finder.
633             *
634             * @param assetTagFinder the asset tag finder
635             */
636            public void setAssetTagFinder(AssetTagFinder assetTagFinder) {
637                    this.assetTagFinder = assetTagFinder;
638            }
639    
640            /**
641             * Returns the asset tag property local service.
642             *
643             * @return the asset tag property local service
644             */
645            public AssetTagPropertyLocalService getAssetTagPropertyLocalService() {
646                    return assetTagPropertyLocalService;
647            }
648    
649            /**
650             * Sets the asset tag property local service.
651             *
652             * @param assetTagPropertyLocalService the asset tag property local service
653             */
654            public void setAssetTagPropertyLocalService(
655                    AssetTagPropertyLocalService assetTagPropertyLocalService) {
656                    this.assetTagPropertyLocalService = assetTagPropertyLocalService;
657            }
658    
659            /**
660             * Returns the asset tag property remote service.
661             *
662             * @return the asset tag property remote service
663             */
664            public AssetTagPropertyService getAssetTagPropertyService() {
665                    return assetTagPropertyService;
666            }
667    
668            /**
669             * Sets the asset tag property remote service.
670             *
671             * @param assetTagPropertyService the asset tag property remote service
672             */
673            public void setAssetTagPropertyService(
674                    AssetTagPropertyService assetTagPropertyService) {
675                    this.assetTagPropertyService = assetTagPropertyService;
676            }
677    
678            /**
679             * Returns the asset tag property persistence.
680             *
681             * @return the asset tag property persistence
682             */
683            public AssetTagPropertyPersistence getAssetTagPropertyPersistence() {
684                    return assetTagPropertyPersistence;
685            }
686    
687            /**
688             * Sets the asset tag property persistence.
689             *
690             * @param assetTagPropertyPersistence the asset tag property persistence
691             */
692            public void setAssetTagPropertyPersistence(
693                    AssetTagPropertyPersistence assetTagPropertyPersistence) {
694                    this.assetTagPropertyPersistence = assetTagPropertyPersistence;
695            }
696    
697            /**
698             * Returns the asset tag property finder.
699             *
700             * @return the asset tag property finder
701             */
702            public AssetTagPropertyFinder getAssetTagPropertyFinder() {
703                    return assetTagPropertyFinder;
704            }
705    
706            /**
707             * Sets the asset tag property finder.
708             *
709             * @param assetTagPropertyFinder the asset tag property finder
710             */
711            public void setAssetTagPropertyFinder(
712                    AssetTagPropertyFinder assetTagPropertyFinder) {
713                    this.assetTagPropertyFinder = assetTagPropertyFinder;
714            }
715    
716            /**
717             * Returns the asset tag property key finder.
718             *
719             * @return the asset tag property key finder
720             */
721            public AssetTagPropertyKeyFinder getAssetTagPropertyKeyFinder() {
722                    return assetTagPropertyKeyFinder;
723            }
724    
725            /**
726             * Sets the asset tag property key finder.
727             *
728             * @param assetTagPropertyKeyFinder the asset tag property key finder
729             */
730            public void setAssetTagPropertyKeyFinder(
731                    AssetTagPropertyKeyFinder assetTagPropertyKeyFinder) {
732                    this.assetTagPropertyKeyFinder = assetTagPropertyKeyFinder;
733            }
734    
735            /**
736             * Returns the asset tag stats local service.
737             *
738             * @return the asset tag stats local service
739             */
740            public AssetTagStatsLocalService getAssetTagStatsLocalService() {
741                    return assetTagStatsLocalService;
742            }
743    
744            /**
745             * Sets the asset tag stats local service.
746             *
747             * @param assetTagStatsLocalService the asset tag stats local service
748             */
749            public void setAssetTagStatsLocalService(
750                    AssetTagStatsLocalService assetTagStatsLocalService) {
751                    this.assetTagStatsLocalService = assetTagStatsLocalService;
752            }
753    
754            /**
755             * Returns the asset tag stats persistence.
756             *
757             * @return the asset tag stats persistence
758             */
759            public AssetTagStatsPersistence getAssetTagStatsPersistence() {
760                    return assetTagStatsPersistence;
761            }
762    
763            /**
764             * Sets the asset tag stats persistence.
765             *
766             * @param assetTagStatsPersistence the asset tag stats persistence
767             */
768            public void setAssetTagStatsPersistence(
769                    AssetTagStatsPersistence assetTagStatsPersistence) {
770                    this.assetTagStatsPersistence = assetTagStatsPersistence;
771            }
772    
773            /**
774             * Returns the asset vocabulary local service.
775             *
776             * @return the asset vocabulary local service
777             */
778            public AssetVocabularyLocalService getAssetVocabularyLocalService() {
779                    return assetVocabularyLocalService;
780            }
781    
782            /**
783             * Sets the asset vocabulary local service.
784             *
785             * @param assetVocabularyLocalService the asset vocabulary local service
786             */
787            public void setAssetVocabularyLocalService(
788                    AssetVocabularyLocalService assetVocabularyLocalService) {
789                    this.assetVocabularyLocalService = assetVocabularyLocalService;
790            }
791    
792            /**
793             * Returns the asset vocabulary remote service.
794             *
795             * @return the asset vocabulary remote service
796             */
797            public AssetVocabularyService getAssetVocabularyService() {
798                    return assetVocabularyService;
799            }
800    
801            /**
802             * Sets the asset vocabulary remote service.
803             *
804             * @param assetVocabularyService the asset vocabulary remote service
805             */
806            public void setAssetVocabularyService(
807                    AssetVocabularyService assetVocabularyService) {
808                    this.assetVocabularyService = assetVocabularyService;
809            }
810    
811            /**
812             * Returns the asset vocabulary persistence.
813             *
814             * @return the asset vocabulary persistence
815             */
816            public AssetVocabularyPersistence getAssetVocabularyPersistence() {
817                    return assetVocabularyPersistence;
818            }
819    
820            /**
821             * Sets the asset vocabulary persistence.
822             *
823             * @param assetVocabularyPersistence the asset vocabulary persistence
824             */
825            public void setAssetVocabularyPersistence(
826                    AssetVocabularyPersistence assetVocabularyPersistence) {
827                    this.assetVocabularyPersistence = assetVocabularyPersistence;
828            }
829    
830            /**
831             * Returns the asset vocabulary finder.
832             *
833             * @return the asset vocabulary finder
834             */
835            public AssetVocabularyFinder getAssetVocabularyFinder() {
836                    return assetVocabularyFinder;
837            }
838    
839            /**
840             * Sets the asset vocabulary finder.
841             *
842             * @param assetVocabularyFinder the asset vocabulary finder
843             */
844            public void setAssetVocabularyFinder(
845                    AssetVocabularyFinder assetVocabularyFinder) {
846                    this.assetVocabularyFinder = assetVocabularyFinder;
847            }
848    
849            /**
850             * Returns the counter local service.
851             *
852             * @return the counter local service
853             */
854            public CounterLocalService getCounterLocalService() {
855                    return counterLocalService;
856            }
857    
858            /**
859             * Sets the counter local service.
860             *
861             * @param counterLocalService the counter local service
862             */
863            public void setCounterLocalService(CounterLocalService counterLocalService) {
864                    this.counterLocalService = counterLocalService;
865            }
866    
867            /**
868             * Returns the resource local service.
869             *
870             * @return the resource local service
871             */
872            public ResourceLocalService getResourceLocalService() {
873                    return resourceLocalService;
874            }
875    
876            /**
877             * Sets the resource local service.
878             *
879             * @param resourceLocalService the resource local service
880             */
881            public void setResourceLocalService(
882                    ResourceLocalService resourceLocalService) {
883                    this.resourceLocalService = resourceLocalService;
884            }
885    
886            /**
887             * Returns the user local service.
888             *
889             * @return the user local service
890             */
891            public UserLocalService getUserLocalService() {
892                    return userLocalService;
893            }
894    
895            /**
896             * Sets the user local service.
897             *
898             * @param userLocalService the user local service
899             */
900            public void setUserLocalService(UserLocalService userLocalService) {
901                    this.userLocalService = userLocalService;
902            }
903    
904            /**
905             * Returns the user remote service.
906             *
907             * @return the user remote service
908             */
909            public UserService getUserService() {
910                    return userService;
911            }
912    
913            /**
914             * Sets the user remote service.
915             *
916             * @param userService the user remote service
917             */
918            public void setUserService(UserService userService) {
919                    this.userService = userService;
920            }
921    
922            /**
923             * Returns the user persistence.
924             *
925             * @return the user persistence
926             */
927            public UserPersistence getUserPersistence() {
928                    return userPersistence;
929            }
930    
931            /**
932             * Sets the user persistence.
933             *
934             * @param userPersistence the user persistence
935             */
936            public void setUserPersistence(UserPersistence userPersistence) {
937                    this.userPersistence = userPersistence;
938            }
939    
940            /**
941             * Returns the user finder.
942             *
943             * @return the user finder
944             */
945            public UserFinder getUserFinder() {
946                    return userFinder;
947            }
948    
949            /**
950             * Sets the user finder.
951             *
952             * @param userFinder the user finder
953             */
954            public void setUserFinder(UserFinder userFinder) {
955                    this.userFinder = userFinder;
956            }
957    
958            public void afterPropertiesSet() {
959                    persistedModelLocalServiceRegistry.register("com.liferay.portlet.asset.model.AssetTagProperty",
960                            assetTagPropertyLocalService);
961            }
962    
963            public void destroy() {
964                    persistedModelLocalServiceRegistry.unregister(
965                            "com.liferay.portlet.asset.model.AssetTagProperty");
966            }
967    
968            /**
969             * Returns the Spring bean ID for this bean.
970             *
971             * @return the Spring bean ID for this bean
972             */
973            public String getBeanIdentifier() {
974                    return _beanIdentifier;
975            }
976    
977            /**
978             * Sets the Spring bean ID for this bean.
979             *
980             * @param beanIdentifier the Spring bean ID for this bean
981             */
982            public void setBeanIdentifier(String beanIdentifier) {
983                    _beanIdentifier = beanIdentifier;
984            }
985    
986            protected Class<?> getModelClass() {
987                    return AssetTagProperty.class;
988            }
989    
990            protected String getModelClassName() {
991                    return AssetTagProperty.class.getName();
992            }
993    
994            /**
995             * Performs an SQL query.
996             *
997             * @param sql the sql query
998             */
999            protected void runSQL(String sql) throws SystemException {
1000                    try {
1001                            DataSource dataSource = assetTagPropertyPersistence.getDataSource();
1002    
1003                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
1004                                            sql, new int[0]);
1005    
1006                            sqlUpdate.update();
1007                    }
1008                    catch (Exception e) {
1009                            throw new SystemException(e);
1010                    }
1011            }
1012    
1013            @BeanReference(type = AssetCategoryLocalService.class)
1014            protected AssetCategoryLocalService assetCategoryLocalService;
1015            @BeanReference(type = AssetCategoryService.class)
1016            protected AssetCategoryService assetCategoryService;
1017            @BeanReference(type = AssetCategoryPersistence.class)
1018            protected AssetCategoryPersistence assetCategoryPersistence;
1019            @BeanReference(type = AssetCategoryFinder.class)
1020            protected AssetCategoryFinder assetCategoryFinder;
1021            @BeanReference(type = AssetCategoryPropertyLocalService.class)
1022            protected AssetCategoryPropertyLocalService assetCategoryPropertyLocalService;
1023            @BeanReference(type = AssetCategoryPropertyService.class)
1024            protected AssetCategoryPropertyService assetCategoryPropertyService;
1025            @BeanReference(type = AssetCategoryPropertyPersistence.class)
1026            protected AssetCategoryPropertyPersistence assetCategoryPropertyPersistence;
1027            @BeanReference(type = AssetCategoryPropertyFinder.class)
1028            protected AssetCategoryPropertyFinder assetCategoryPropertyFinder;
1029            @BeanReference(type = AssetEntryLocalService.class)
1030            protected AssetEntryLocalService assetEntryLocalService;
1031            @BeanReference(type = AssetEntryService.class)
1032            protected AssetEntryService assetEntryService;
1033            @BeanReference(type = AssetEntryPersistence.class)
1034            protected AssetEntryPersistence assetEntryPersistence;
1035            @BeanReference(type = AssetEntryFinder.class)
1036            protected AssetEntryFinder assetEntryFinder;
1037            @BeanReference(type = AssetLinkLocalService.class)
1038            protected AssetLinkLocalService assetLinkLocalService;
1039            @BeanReference(type = AssetLinkPersistence.class)
1040            protected AssetLinkPersistence assetLinkPersistence;
1041            @BeanReference(type = AssetLinkFinder.class)
1042            protected AssetLinkFinder assetLinkFinder;
1043            @BeanReference(type = AssetTagLocalService.class)
1044            protected AssetTagLocalService assetTagLocalService;
1045            @BeanReference(type = AssetTagService.class)
1046            protected AssetTagService assetTagService;
1047            @BeanReference(type = AssetTagPersistence.class)
1048            protected AssetTagPersistence assetTagPersistence;
1049            @BeanReference(type = AssetTagFinder.class)
1050            protected AssetTagFinder assetTagFinder;
1051            @BeanReference(type = AssetTagPropertyLocalService.class)
1052            protected AssetTagPropertyLocalService assetTagPropertyLocalService;
1053            @BeanReference(type = AssetTagPropertyService.class)
1054            protected AssetTagPropertyService assetTagPropertyService;
1055            @BeanReference(type = AssetTagPropertyPersistence.class)
1056            protected AssetTagPropertyPersistence assetTagPropertyPersistence;
1057            @BeanReference(type = AssetTagPropertyFinder.class)
1058            protected AssetTagPropertyFinder assetTagPropertyFinder;
1059            @BeanReference(type = AssetTagPropertyKeyFinder.class)
1060            protected AssetTagPropertyKeyFinder assetTagPropertyKeyFinder;
1061            @BeanReference(type = AssetTagStatsLocalService.class)
1062            protected AssetTagStatsLocalService assetTagStatsLocalService;
1063            @BeanReference(type = AssetTagStatsPersistence.class)
1064            protected AssetTagStatsPersistence assetTagStatsPersistence;
1065            @BeanReference(type = AssetVocabularyLocalService.class)
1066            protected AssetVocabularyLocalService assetVocabularyLocalService;
1067            @BeanReference(type = AssetVocabularyService.class)
1068            protected AssetVocabularyService assetVocabularyService;
1069            @BeanReference(type = AssetVocabularyPersistence.class)
1070            protected AssetVocabularyPersistence assetVocabularyPersistence;
1071            @BeanReference(type = AssetVocabularyFinder.class)
1072            protected AssetVocabularyFinder assetVocabularyFinder;
1073            @BeanReference(type = CounterLocalService.class)
1074            protected CounterLocalService counterLocalService;
1075            @BeanReference(type = ResourceLocalService.class)
1076            protected ResourceLocalService resourceLocalService;
1077            @BeanReference(type = UserLocalService.class)
1078            protected UserLocalService userLocalService;
1079            @BeanReference(type = UserService.class)
1080            protected UserService userService;
1081            @BeanReference(type = UserPersistence.class)
1082            protected UserPersistence userPersistence;
1083            @BeanReference(type = UserFinder.class)
1084            protected UserFinder userFinder;
1085            @BeanReference(type = PersistedModelLocalServiceRegistry.class)
1086            protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
1087            private String _beanIdentifier;
1088    }