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