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