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