1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.expando.service.base;
16  
17  import com.liferay.counter.service.CounterLocalService;
18  import com.liferay.counter.service.CounterService;
19  
20  import com.liferay.portal.kernel.annotation.BeanReference;
21  import com.liferay.portal.kernel.dao.db.DB;
22  import com.liferay.portal.kernel.dao.db.DBFactoryUtil;
23  import com.liferay.portal.kernel.exception.SystemException;
24  import com.liferay.portal.service.ResourceLocalService;
25  import com.liferay.portal.service.ResourceService;
26  import com.liferay.portal.service.UserLocalService;
27  import com.liferay.portal.service.UserService;
28  import com.liferay.portal.service.base.PrincipalBean;
29  import com.liferay.portal.service.persistence.ResourceFinder;
30  import com.liferay.portal.service.persistence.ResourcePersistence;
31  import com.liferay.portal.service.persistence.UserFinder;
32  import com.liferay.portal.service.persistence.UserPersistence;
33  
34  import com.liferay.portlet.expando.service.ExpandoColumnLocalService;
35  import com.liferay.portlet.expando.service.ExpandoColumnService;
36  import com.liferay.portlet.expando.service.ExpandoRowLocalService;
37  import com.liferay.portlet.expando.service.ExpandoTableLocalService;
38  import com.liferay.portlet.expando.service.ExpandoValueLocalService;
39  import com.liferay.portlet.expando.service.ExpandoValueService;
40  import com.liferay.portlet.expando.service.persistence.ExpandoColumnPersistence;
41  import com.liferay.portlet.expando.service.persistence.ExpandoRowPersistence;
42  import com.liferay.portlet.expando.service.persistence.ExpandoTablePersistence;
43  import com.liferay.portlet.expando.service.persistence.ExpandoValuePersistence;
44  
45  /**
46   * <a href="ExpandoValueServiceBaseImpl.java.html"><b><i>View Source</i></b></a>
47   *
48   * @author Brian Wing Shun Chan
49   */
50  public abstract class ExpandoValueServiceBaseImpl extends PrincipalBean
51      implements ExpandoValueService {
52      public ExpandoColumnLocalService getExpandoColumnLocalService() {
53          return expandoColumnLocalService;
54      }
55  
56      public void setExpandoColumnLocalService(
57          ExpandoColumnLocalService expandoColumnLocalService) {
58          this.expandoColumnLocalService = expandoColumnLocalService;
59      }
60  
61      public ExpandoColumnService getExpandoColumnService() {
62          return expandoColumnService;
63      }
64  
65      public void setExpandoColumnService(
66          ExpandoColumnService expandoColumnService) {
67          this.expandoColumnService = expandoColumnService;
68      }
69  
70      public ExpandoColumnPersistence getExpandoColumnPersistence() {
71          return expandoColumnPersistence;
72      }
73  
74      public void setExpandoColumnPersistence(
75          ExpandoColumnPersistence expandoColumnPersistence) {
76          this.expandoColumnPersistence = expandoColumnPersistence;
77      }
78  
79      public ExpandoRowLocalService getExpandoRowLocalService() {
80          return expandoRowLocalService;
81      }
82  
83      public void setExpandoRowLocalService(
84          ExpandoRowLocalService expandoRowLocalService) {
85          this.expandoRowLocalService = expandoRowLocalService;
86      }
87  
88      public ExpandoRowPersistence getExpandoRowPersistence() {
89          return expandoRowPersistence;
90      }
91  
92      public void setExpandoRowPersistence(
93          ExpandoRowPersistence expandoRowPersistence) {
94          this.expandoRowPersistence = expandoRowPersistence;
95      }
96  
97      public ExpandoTableLocalService getExpandoTableLocalService() {
98          return expandoTableLocalService;
99      }
100 
101     public void setExpandoTableLocalService(
102         ExpandoTableLocalService expandoTableLocalService) {
103         this.expandoTableLocalService = expandoTableLocalService;
104     }
105 
106     public ExpandoTablePersistence getExpandoTablePersistence() {
107         return expandoTablePersistence;
108     }
109 
110     public void setExpandoTablePersistence(
111         ExpandoTablePersistence expandoTablePersistence) {
112         this.expandoTablePersistence = expandoTablePersistence;
113     }
114 
115     public ExpandoValueLocalService getExpandoValueLocalService() {
116         return expandoValueLocalService;
117     }
118 
119     public void setExpandoValueLocalService(
120         ExpandoValueLocalService expandoValueLocalService) {
121         this.expandoValueLocalService = expandoValueLocalService;
122     }
123 
124     public ExpandoValueService getExpandoValueService() {
125         return expandoValueService;
126     }
127 
128     public void setExpandoValueService(ExpandoValueService expandoValueService) {
129         this.expandoValueService = expandoValueService;
130     }
131 
132     public ExpandoValuePersistence getExpandoValuePersistence() {
133         return expandoValuePersistence;
134     }
135 
136     public void setExpandoValuePersistence(
137         ExpandoValuePersistence expandoValuePersistence) {
138         this.expandoValuePersistence = expandoValuePersistence;
139     }
140 
141     public CounterLocalService getCounterLocalService() {
142         return counterLocalService;
143     }
144 
145     public void setCounterLocalService(CounterLocalService counterLocalService) {
146         this.counterLocalService = counterLocalService;
147     }
148 
149     public CounterService getCounterService() {
150         return counterService;
151     }
152 
153     public void setCounterService(CounterService counterService) {
154         this.counterService = counterService;
155     }
156 
157     public ResourceLocalService getResourceLocalService() {
158         return resourceLocalService;
159     }
160 
161     public void setResourceLocalService(
162         ResourceLocalService resourceLocalService) {
163         this.resourceLocalService = resourceLocalService;
164     }
165 
166     public ResourceService getResourceService() {
167         return resourceService;
168     }
169 
170     public void setResourceService(ResourceService resourceService) {
171         this.resourceService = resourceService;
172     }
173 
174     public ResourcePersistence getResourcePersistence() {
175         return resourcePersistence;
176     }
177 
178     public void setResourcePersistence(ResourcePersistence resourcePersistence) {
179         this.resourcePersistence = resourcePersistence;
180     }
181 
182     public ResourceFinder getResourceFinder() {
183         return resourceFinder;
184     }
185 
186     public void setResourceFinder(ResourceFinder resourceFinder) {
187         this.resourceFinder = resourceFinder;
188     }
189 
190     public UserLocalService getUserLocalService() {
191         return userLocalService;
192     }
193 
194     public void setUserLocalService(UserLocalService userLocalService) {
195         this.userLocalService = userLocalService;
196     }
197 
198     public UserService getUserService() {
199         return userService;
200     }
201 
202     public void setUserService(UserService userService) {
203         this.userService = userService;
204     }
205 
206     public UserPersistence getUserPersistence() {
207         return userPersistence;
208     }
209 
210     public void setUserPersistence(UserPersistence userPersistence) {
211         this.userPersistence = userPersistence;
212     }
213 
214     public UserFinder getUserFinder() {
215         return userFinder;
216     }
217 
218     public void setUserFinder(UserFinder userFinder) {
219         this.userFinder = userFinder;
220     }
221 
222     protected void runSQL(String sql) throws SystemException {
223         try {
224             DB db = DBFactoryUtil.getDB();
225 
226             db.runSQL(sql);
227         }
228         catch (Exception e) {
229             throw new SystemException(e);
230         }
231     }
232 
233     @BeanReference(name = "com.liferay.portlet.expando.service.ExpandoColumnLocalService")
234     protected ExpandoColumnLocalService expandoColumnLocalService;
235     @BeanReference(name = "com.liferay.portlet.expando.service.ExpandoColumnService")
236     protected ExpandoColumnService expandoColumnService;
237     @BeanReference(name = "com.liferay.portlet.expando.service.persistence.ExpandoColumnPersistence")
238     protected ExpandoColumnPersistence expandoColumnPersistence;
239     @BeanReference(name = "com.liferay.portlet.expando.service.ExpandoRowLocalService")
240     protected ExpandoRowLocalService expandoRowLocalService;
241     @BeanReference(name = "com.liferay.portlet.expando.service.persistence.ExpandoRowPersistence")
242     protected ExpandoRowPersistence expandoRowPersistence;
243     @BeanReference(name = "com.liferay.portlet.expando.service.ExpandoTableLocalService")
244     protected ExpandoTableLocalService expandoTableLocalService;
245     @BeanReference(name = "com.liferay.portlet.expando.service.persistence.ExpandoTablePersistence")
246     protected ExpandoTablePersistence expandoTablePersistence;
247     @BeanReference(name = "com.liferay.portlet.expando.service.ExpandoValueLocalService")
248     protected ExpandoValueLocalService expandoValueLocalService;
249     @BeanReference(name = "com.liferay.portlet.expando.service.ExpandoValueService")
250     protected ExpandoValueService expandoValueService;
251     @BeanReference(name = "com.liferay.portlet.expando.service.persistence.ExpandoValuePersistence")
252     protected ExpandoValuePersistence expandoValuePersistence;
253     @BeanReference(name = "com.liferay.counter.service.CounterLocalService")
254     protected CounterLocalService counterLocalService;
255     @BeanReference(name = "com.liferay.counter.service.CounterService")
256     protected CounterService counterService;
257     @BeanReference(name = "com.liferay.portal.service.ResourceLocalService")
258     protected ResourceLocalService resourceLocalService;
259     @BeanReference(name = "com.liferay.portal.service.ResourceService")
260     protected ResourceService resourceService;
261     @BeanReference(name = "com.liferay.portal.service.persistence.ResourcePersistence")
262     protected ResourcePersistence resourcePersistence;
263     @BeanReference(name = "com.liferay.portal.service.persistence.ResourceFinder")
264     protected ResourceFinder resourceFinder;
265     @BeanReference(name = "com.liferay.portal.service.UserLocalService")
266     protected UserLocalService userLocalService;
267     @BeanReference(name = "com.liferay.portal.service.UserService")
268     protected UserService userService;
269     @BeanReference(name = "com.liferay.portal.service.persistence.UserPersistence")
270     protected UserPersistence userPersistence;
271     @BeanReference(name = "com.liferay.portal.service.persistence.UserFinder")
272     protected UserFinder userFinder;
273 }