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