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