1
14
15 package com.liferay.portlet.expando.service.base;
16
17 import com.liferay.counter.service.CounterLocalService;
18
19 import com.liferay.portal.kernel.annotation.BeanReference;
20 import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
21 import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
22 import com.liferay.portal.kernel.exception.SystemException;
23 import com.liferay.portal.service.ResourceLocalService;
24 import com.liferay.portal.service.ResourceService;
25 import com.liferay.portal.service.UserLocalService;
26 import com.liferay.portal.service.UserService;
27 import com.liferay.portal.service.base.PrincipalBean;
28 import com.liferay.portal.service.persistence.ResourceFinder;
29 import com.liferay.portal.service.persistence.ResourcePersistence;
30 import com.liferay.portal.service.persistence.UserFinder;
31 import com.liferay.portal.service.persistence.UserPersistence;
32
33 import com.liferay.portlet.expando.service.ExpandoColumnLocalService;
34 import com.liferay.portlet.expando.service.ExpandoColumnService;
35 import com.liferay.portlet.expando.service.ExpandoRowLocalService;
36 import com.liferay.portlet.expando.service.ExpandoTableLocalService;
37 import com.liferay.portlet.expando.service.ExpandoValueLocalService;
38 import com.liferay.portlet.expando.service.ExpandoValueService;
39 import com.liferay.portlet.expando.service.persistence.ExpandoColumnPersistence;
40 import com.liferay.portlet.expando.service.persistence.ExpandoRowPersistence;
41 import com.liferay.portlet.expando.service.persistence.ExpandoTablePersistence;
42 import com.liferay.portlet.expando.service.persistence.ExpandoValuePersistence;
43
44 import javax.sql.DataSource;
45
46
52 public abstract class ExpandoColumnServiceBaseImpl extends PrincipalBean
53 implements ExpandoColumnService {
54 public ExpandoColumnLocalService getExpandoColumnLocalService() {
55 return expandoColumnLocalService;
56 }
57
58 public void setExpandoColumnLocalService(
59 ExpandoColumnLocalService expandoColumnLocalService) {
60 this.expandoColumnLocalService = expandoColumnLocalService;
61 }
62
63 public ExpandoColumnService getExpandoColumnService() {
64 return expandoColumnService;
65 }
66
67 public void setExpandoColumnService(
68 ExpandoColumnService expandoColumnService) {
69 this.expandoColumnService = expandoColumnService;
70 }
71
72 public ExpandoColumnPersistence getExpandoColumnPersistence() {
73 return expandoColumnPersistence;
74 }
75
76 public void setExpandoColumnPersistence(
77 ExpandoColumnPersistence expandoColumnPersistence) {
78 this.expandoColumnPersistence = expandoColumnPersistence;
79 }
80
81 public ExpandoRowLocalService getExpandoRowLocalService() {
82 return expandoRowLocalService;
83 }
84
85 public void setExpandoRowLocalService(
86 ExpandoRowLocalService expandoRowLocalService) {
87 this.expandoRowLocalService = expandoRowLocalService;
88 }
89
90 public ExpandoRowPersistence getExpandoRowPersistence() {
91 return expandoRowPersistence;
92 }
93
94 public void setExpandoRowPersistence(
95 ExpandoRowPersistence expandoRowPersistence) {
96 this.expandoRowPersistence = expandoRowPersistence;
97 }
98
99 public ExpandoTableLocalService getExpandoTableLocalService() {
100 return expandoTableLocalService;
101 }
102
103 public void setExpandoTableLocalService(
104 ExpandoTableLocalService expandoTableLocalService) {
105 this.expandoTableLocalService = expandoTableLocalService;
106 }
107
108 public ExpandoTablePersistence getExpandoTablePersistence() {
109 return expandoTablePersistence;
110 }
111
112 public void setExpandoTablePersistence(
113 ExpandoTablePersistence expandoTablePersistence) {
114 this.expandoTablePersistence = expandoTablePersistence;
115 }
116
117 public ExpandoValueLocalService getExpandoValueLocalService() {
118 return expandoValueLocalService;
119 }
120
121 public void setExpandoValueLocalService(
122 ExpandoValueLocalService expandoValueLocalService) {
123 this.expandoValueLocalService = expandoValueLocalService;
124 }
125
126 public ExpandoValueService getExpandoValueService() {
127 return expandoValueService;
128 }
129
130 public void setExpandoValueService(ExpandoValueService expandoValueService) {
131 this.expandoValueService = expandoValueService;
132 }
133
134 public ExpandoValuePersistence getExpandoValuePersistence() {
135 return expandoValuePersistence;
136 }
137
138 public void setExpandoValuePersistence(
139 ExpandoValuePersistence expandoValuePersistence) {
140 this.expandoValuePersistence = expandoValuePersistence;
141 }
142
143 public CounterLocalService getCounterLocalService() {
144 return counterLocalService;
145 }
146
147 public void setCounterLocalService(CounterLocalService counterLocalService) {
148 this.counterLocalService = counterLocalService;
149 }
150
151 public ResourceLocalService getResourceLocalService() {
152 return resourceLocalService;
153 }
154
155 public void setResourceLocalService(
156 ResourceLocalService resourceLocalService) {
157 this.resourceLocalService = resourceLocalService;
158 }
159
160 public ResourceService getResourceService() {
161 return resourceService;
162 }
163
164 public void setResourceService(ResourceService resourceService) {
165 this.resourceService = resourceService;
166 }
167
168 public ResourcePersistence getResourcePersistence() {
169 return resourcePersistence;
170 }
171
172 public void setResourcePersistence(ResourcePersistence resourcePersistence) {
173 this.resourcePersistence = resourcePersistence;
174 }
175
176 public ResourceFinder getResourceFinder() {
177 return resourceFinder;
178 }
179
180 public void setResourceFinder(ResourceFinder resourceFinder) {
181 this.resourceFinder = resourceFinder;
182 }
183
184 public UserLocalService getUserLocalService() {
185 return userLocalService;
186 }
187
188 public void setUserLocalService(UserLocalService userLocalService) {
189 this.userLocalService = userLocalService;
190 }
191
192 public UserService getUserService() {
193 return userService;
194 }
195
196 public void setUserService(UserService userService) {
197 this.userService = userService;
198 }
199
200 public UserPersistence getUserPersistence() {
201 return userPersistence;
202 }
203
204 public void setUserPersistence(UserPersistence userPersistence) {
205 this.userPersistence = userPersistence;
206 }
207
208 public UserFinder getUserFinder() {
209 return userFinder;
210 }
211
212 public void setUserFinder(UserFinder userFinder) {
213 this.userFinder = userFinder;
214 }
215
216 protected void runSQL(String sql) throws SystemException {
217 try {
218 DataSource dataSource = expandoColumnPersistence.getDataSource();
219
220 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
221 sql, new int[0]);
222
223 sqlUpdate.update();
224 }
225 catch (Exception e) {
226 throw new SystemException(e);
227 }
228 }
229
230 @BeanReference(type = ExpandoColumnLocalService.class)
231 protected ExpandoColumnLocalService expandoColumnLocalService;
232 @BeanReference(type = ExpandoColumnService.class)
233 protected ExpandoColumnService expandoColumnService;
234 @BeanReference(type = ExpandoColumnPersistence.class)
235 protected ExpandoColumnPersistence expandoColumnPersistence;
236 @BeanReference(type = ExpandoRowLocalService.class)
237 protected ExpandoRowLocalService expandoRowLocalService;
238 @BeanReference(type = ExpandoRowPersistence.class)
239 protected ExpandoRowPersistence expandoRowPersistence;
240 @BeanReference(type = ExpandoTableLocalService.class)
241 protected ExpandoTableLocalService expandoTableLocalService;
242 @BeanReference(type = ExpandoTablePersistence.class)
243 protected ExpandoTablePersistence expandoTablePersistence;
244 @BeanReference(type = ExpandoValueLocalService.class)
245 protected ExpandoValueLocalService expandoValueLocalService;
246 @BeanReference(type = ExpandoValueService.class)
247 protected ExpandoValueService expandoValueService;
248 @BeanReference(type = ExpandoValuePersistence.class)
249 protected ExpandoValuePersistence expandoValuePersistence;
250 @BeanReference(type = CounterLocalService.class)
251 protected CounterLocalService counterLocalService;
252 @BeanReference(type = ResourceLocalService.class)
253 protected ResourceLocalService resourceLocalService;
254 @BeanReference(type = ResourceService.class)
255 protected ResourceService resourceService;
256 @BeanReference(type = ResourcePersistence.class)
257 protected ResourcePersistence resourcePersistence;
258 @BeanReference(type = ResourceFinder.class)
259 protected ResourceFinder resourceFinder;
260 @BeanReference(type = UserLocalService.class)
261 protected UserLocalService userLocalService;
262 @BeanReference(type = UserService.class)
263 protected UserService userService;
264 @BeanReference(type = UserPersistence.class)
265 protected UserPersistence userPersistence;
266 @BeanReference(type = UserFinder.class)
267 protected UserFinder userFinder;
268 }