1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   *
13   */
14  
15  package com.liferay.portlet.imagegallery.service.base;
16  
17  import com.liferay.counter.service.CounterLocalService;
18  import com.liferay.counter.service.CounterService;
19  
20  import com.liferay.portal.SystemException;
21  import com.liferay.portal.kernel.annotation.BeanReference;
22  import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
23  import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
24  import com.liferay.portal.service.GroupLocalService;
25  import com.liferay.portal.service.GroupService;
26  import com.liferay.portal.service.ImageLocalService;
27  import com.liferay.portal.service.ImageService;
28  import com.liferay.portal.service.LayoutLocalService;
29  import com.liferay.portal.service.LayoutService;
30  import com.liferay.portal.service.ResourceLocalService;
31  import com.liferay.portal.service.ResourceService;
32  import com.liferay.portal.service.UserLocalService;
33  import com.liferay.portal.service.UserService;
34  import com.liferay.portal.service.base.PrincipalBean;
35  import com.liferay.portal.service.persistence.GroupFinder;
36  import com.liferay.portal.service.persistence.GroupPersistence;
37  import com.liferay.portal.service.persistence.ImagePersistence;
38  import com.liferay.portal.service.persistence.LayoutFinder;
39  import com.liferay.portal.service.persistence.LayoutPersistence;
40  import com.liferay.portal.service.persistence.ResourceFinder;
41  import com.liferay.portal.service.persistence.ResourcePersistence;
42  import com.liferay.portal.service.persistence.UserFinder;
43  import com.liferay.portal.service.persistence.UserPersistence;
44  
45  import com.liferay.portlet.expando.service.ExpandoValueLocalService;
46  import com.liferay.portlet.expando.service.ExpandoValueService;
47  import com.liferay.portlet.expando.service.persistence.ExpandoValuePersistence;
48  import com.liferay.portlet.imagegallery.service.IGFolderLocalService;
49  import com.liferay.portlet.imagegallery.service.IGFolderService;
50  import com.liferay.portlet.imagegallery.service.IGImageLocalService;
51  import com.liferay.portlet.imagegallery.service.IGImageService;
52  import com.liferay.portlet.imagegallery.service.persistence.IGFolderPersistence;
53  import com.liferay.portlet.imagegallery.service.persistence.IGImageFinder;
54  import com.liferay.portlet.imagegallery.service.persistence.IGImagePersistence;
55  
56  import javax.sql.DataSource;
57  
58  /**
59   * <a href="IGFolderServiceBaseImpl.java.html"><b><i>View Source</i></b></a>
60   *
61   * @author Brian Wing Shun Chan
62   */
63  public abstract class IGFolderServiceBaseImpl extends PrincipalBean
64      implements IGFolderService {
65      public IGFolderLocalService getIGFolderLocalService() {
66          return igFolderLocalService;
67      }
68  
69      public void setIGFolderLocalService(
70          IGFolderLocalService igFolderLocalService) {
71          this.igFolderLocalService = igFolderLocalService;
72      }
73  
74      public IGFolderService getIGFolderService() {
75          return igFolderService;
76      }
77  
78      public void setIGFolderService(IGFolderService igFolderService) {
79          this.igFolderService = igFolderService;
80      }
81  
82      public IGFolderPersistence getIGFolderPersistence() {
83          return igFolderPersistence;
84      }
85  
86      public void setIGFolderPersistence(IGFolderPersistence igFolderPersistence) {
87          this.igFolderPersistence = igFolderPersistence;
88      }
89  
90      public IGImageLocalService getIGImageLocalService() {
91          return igImageLocalService;
92      }
93  
94      public void setIGImageLocalService(IGImageLocalService igImageLocalService) {
95          this.igImageLocalService = igImageLocalService;
96      }
97  
98      public IGImageService getIGImageService() {
99          return igImageService;
100     }
101 
102     public void setIGImageService(IGImageService igImageService) {
103         this.igImageService = igImageService;
104     }
105 
106     public IGImagePersistence getIGImagePersistence() {
107         return igImagePersistence;
108     }
109 
110     public void setIGImagePersistence(IGImagePersistence igImagePersistence) {
111         this.igImagePersistence = igImagePersistence;
112     }
113 
114     public IGImageFinder getIGImageFinder() {
115         return igImageFinder;
116     }
117 
118     public void setIGImageFinder(IGImageFinder igImageFinder) {
119         this.igImageFinder = igImageFinder;
120     }
121 
122     public CounterLocalService getCounterLocalService() {
123         return counterLocalService;
124     }
125 
126     public void setCounterLocalService(CounterLocalService counterLocalService) {
127         this.counterLocalService = counterLocalService;
128     }
129 
130     public CounterService getCounterService() {
131         return counterService;
132     }
133 
134     public void setCounterService(CounterService counterService) {
135         this.counterService = counterService;
136     }
137 
138     public GroupLocalService getGroupLocalService() {
139         return groupLocalService;
140     }
141 
142     public void setGroupLocalService(GroupLocalService groupLocalService) {
143         this.groupLocalService = groupLocalService;
144     }
145 
146     public GroupService getGroupService() {
147         return groupService;
148     }
149 
150     public void setGroupService(GroupService groupService) {
151         this.groupService = groupService;
152     }
153 
154     public GroupPersistence getGroupPersistence() {
155         return groupPersistence;
156     }
157 
158     public void setGroupPersistence(GroupPersistence groupPersistence) {
159         this.groupPersistence = groupPersistence;
160     }
161 
162     public GroupFinder getGroupFinder() {
163         return groupFinder;
164     }
165 
166     public void setGroupFinder(GroupFinder groupFinder) {
167         this.groupFinder = groupFinder;
168     }
169 
170     public ImageLocalService getImageLocalService() {
171         return imageLocalService;
172     }
173 
174     public void setImageLocalService(ImageLocalService imageLocalService) {
175         this.imageLocalService = imageLocalService;
176     }
177 
178     public ImageService getImageService() {
179         return imageService;
180     }
181 
182     public void setImageService(ImageService imageService) {
183         this.imageService = imageService;
184     }
185 
186     public ImagePersistence getImagePersistence() {
187         return imagePersistence;
188     }
189 
190     public void setImagePersistence(ImagePersistence imagePersistence) {
191         this.imagePersistence = imagePersistence;
192     }
193 
194     public LayoutLocalService getLayoutLocalService() {
195         return layoutLocalService;
196     }
197 
198     public void setLayoutLocalService(LayoutLocalService layoutLocalService) {
199         this.layoutLocalService = layoutLocalService;
200     }
201 
202     public LayoutService getLayoutService() {
203         return layoutService;
204     }
205 
206     public void setLayoutService(LayoutService layoutService) {
207         this.layoutService = layoutService;
208     }
209 
210     public LayoutPersistence getLayoutPersistence() {
211         return layoutPersistence;
212     }
213 
214     public void setLayoutPersistence(LayoutPersistence layoutPersistence) {
215         this.layoutPersistence = layoutPersistence;
216     }
217 
218     public LayoutFinder getLayoutFinder() {
219         return layoutFinder;
220     }
221 
222     public void setLayoutFinder(LayoutFinder layoutFinder) {
223         this.layoutFinder = layoutFinder;
224     }
225 
226     public ResourceLocalService getResourceLocalService() {
227         return resourceLocalService;
228     }
229 
230     public void setResourceLocalService(
231         ResourceLocalService resourceLocalService) {
232         this.resourceLocalService = resourceLocalService;
233     }
234 
235     public ResourceService getResourceService() {
236         return resourceService;
237     }
238 
239     public void setResourceService(ResourceService resourceService) {
240         this.resourceService = resourceService;
241     }
242 
243     public ResourcePersistence getResourcePersistence() {
244         return resourcePersistence;
245     }
246 
247     public void setResourcePersistence(ResourcePersistence resourcePersistence) {
248         this.resourcePersistence = resourcePersistence;
249     }
250 
251     public ResourceFinder getResourceFinder() {
252         return resourceFinder;
253     }
254 
255     public void setResourceFinder(ResourceFinder resourceFinder) {
256         this.resourceFinder = resourceFinder;
257     }
258 
259     public UserLocalService getUserLocalService() {
260         return userLocalService;
261     }
262 
263     public void setUserLocalService(UserLocalService userLocalService) {
264         this.userLocalService = userLocalService;
265     }
266 
267     public UserService getUserService() {
268         return userService;
269     }
270 
271     public void setUserService(UserService userService) {
272         this.userService = userService;
273     }
274 
275     public UserPersistence getUserPersistence() {
276         return userPersistence;
277     }
278 
279     public void setUserPersistence(UserPersistence userPersistence) {
280         this.userPersistence = userPersistence;
281     }
282 
283     public UserFinder getUserFinder() {
284         return userFinder;
285     }
286 
287     public void setUserFinder(UserFinder userFinder) {
288         this.userFinder = userFinder;
289     }
290 
291     public ExpandoValueLocalService getExpandoValueLocalService() {
292         return expandoValueLocalService;
293     }
294 
295     public void setExpandoValueLocalService(
296         ExpandoValueLocalService expandoValueLocalService) {
297         this.expandoValueLocalService = expandoValueLocalService;
298     }
299 
300     public ExpandoValueService getExpandoValueService() {
301         return expandoValueService;
302     }
303 
304     public void setExpandoValueService(ExpandoValueService expandoValueService) {
305         this.expandoValueService = expandoValueService;
306     }
307 
308     public ExpandoValuePersistence getExpandoValuePersistence() {
309         return expandoValuePersistence;
310     }
311 
312     public void setExpandoValuePersistence(
313         ExpandoValuePersistence expandoValuePersistence) {
314         this.expandoValuePersistence = expandoValuePersistence;
315     }
316 
317     protected void runSQL(String sql) throws SystemException {
318         try {
319             DataSource dataSource = igFolderPersistence.getDataSource();
320 
321             SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
322                     sql, new int[0]);
323 
324             sqlUpdate.update(new Object[0]);
325         }
326         catch (Exception e) {
327             throw new SystemException(e);
328         }
329     }
330 
331     @BeanReference(type = IGFolderLocalService.class)
332     protected IGFolderLocalService igFolderLocalService;
333     @BeanReference(type = IGFolderService.class)
334     protected IGFolderService igFolderService;
335     @BeanReference(type = IGFolderPersistence.class)
336     protected IGFolderPersistence igFolderPersistence;
337     @BeanReference(type = IGImageLocalService.class)
338     protected IGImageLocalService igImageLocalService;
339     @BeanReference(type = IGImageService.class)
340     protected IGImageService igImageService;
341     @BeanReference(type = IGImagePersistence.class)
342     protected IGImagePersistence igImagePersistence;
343     @BeanReference(type = IGImageFinder.class)
344     protected IGImageFinder igImageFinder;
345     @BeanReference(type = CounterLocalService.class)
346     protected CounterLocalService counterLocalService;
347     @BeanReference(type = CounterService.class)
348     protected CounterService counterService;
349     @BeanReference(type = GroupLocalService.class)
350     protected GroupLocalService groupLocalService;
351     @BeanReference(type = GroupService.class)
352     protected GroupService groupService;
353     @BeanReference(type = GroupPersistence.class)
354     protected GroupPersistence groupPersistence;
355     @BeanReference(type = GroupFinder.class)
356     protected GroupFinder groupFinder;
357     @BeanReference(type = ImageLocalService.class)
358     protected ImageLocalService imageLocalService;
359     @BeanReference(type = ImageService.class)
360     protected ImageService imageService;
361     @BeanReference(type = ImagePersistence.class)
362     protected ImagePersistence imagePersistence;
363     @BeanReference(type = LayoutLocalService.class)
364     protected LayoutLocalService layoutLocalService;
365     @BeanReference(type = LayoutService.class)
366     protected LayoutService layoutService;
367     @BeanReference(type = LayoutPersistence.class)
368     protected LayoutPersistence layoutPersistence;
369     @BeanReference(type = LayoutFinder.class)
370     protected LayoutFinder layoutFinder;
371     @BeanReference(type = ResourceLocalService.class)
372     protected ResourceLocalService resourceLocalService;
373     @BeanReference(type = ResourceService.class)
374     protected ResourceService resourceService;
375     @BeanReference(type = ResourcePersistence.class)
376     protected ResourcePersistence resourcePersistence;
377     @BeanReference(type = ResourceFinder.class)
378     protected ResourceFinder resourceFinder;
379     @BeanReference(type = UserLocalService.class)
380     protected UserLocalService userLocalService;
381     @BeanReference(type = UserService.class)
382     protected UserService userService;
383     @BeanReference(type = UserPersistence.class)
384     protected UserPersistence userPersistence;
385     @BeanReference(type = UserFinder.class)
386     protected UserFinder userFinder;
387     @BeanReference(type = ExpandoValueLocalService.class)
388     protected ExpandoValueLocalService expandoValueLocalService;
389     @BeanReference(type = ExpandoValueService.class)
390     protected ExpandoValueService expandoValueService;
391     @BeanReference(type = ExpandoValuePersistence.class)
392     protected ExpandoValuePersistence expandoValuePersistence;
393 }