001
014
015 package com.liferay.portlet.expando.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.exception.SystemException;
023 import com.liferay.portal.service.ResourceLocalService;
024 import com.liferay.portal.service.ResourceService;
025 import com.liferay.portal.service.UserLocalService;
026 import com.liferay.portal.service.UserService;
027 import com.liferay.portal.service.base.PrincipalBean;
028 import com.liferay.portal.service.persistence.ResourceFinder;
029 import com.liferay.portal.service.persistence.ResourcePersistence;
030 import com.liferay.portal.service.persistence.UserFinder;
031 import com.liferay.portal.service.persistence.UserPersistence;
032
033 import com.liferay.portlet.expando.service.ExpandoColumnLocalService;
034 import com.liferay.portlet.expando.service.ExpandoColumnService;
035 import com.liferay.portlet.expando.service.ExpandoRowLocalService;
036 import com.liferay.portlet.expando.service.ExpandoTableLocalService;
037 import com.liferay.portlet.expando.service.ExpandoValueLocalService;
038 import com.liferay.portlet.expando.service.ExpandoValueService;
039 import com.liferay.portlet.expando.service.persistence.ExpandoColumnPersistence;
040 import com.liferay.portlet.expando.service.persistence.ExpandoRowPersistence;
041 import com.liferay.portlet.expando.service.persistence.ExpandoTablePersistence;
042 import com.liferay.portlet.expando.service.persistence.ExpandoValuePersistence;
043
044 import javax.sql.DataSource;
045
046
062 public abstract class ExpandoColumnServiceBaseImpl extends PrincipalBean
063 implements ExpandoColumnService {
064
069 public ExpandoColumnLocalService getExpandoColumnLocalService() {
070 return expandoColumnLocalService;
071 }
072
073
078 public void setExpandoColumnLocalService(
079 ExpandoColumnLocalService expandoColumnLocalService) {
080 this.expandoColumnLocalService = expandoColumnLocalService;
081 }
082
083
088 public ExpandoColumnService getExpandoColumnService() {
089 return expandoColumnService;
090 }
091
092
097 public void setExpandoColumnService(
098 ExpandoColumnService expandoColumnService) {
099 this.expandoColumnService = expandoColumnService;
100 }
101
102
107 public ExpandoColumnPersistence getExpandoColumnPersistence() {
108 return expandoColumnPersistence;
109 }
110
111
116 public void setExpandoColumnPersistence(
117 ExpandoColumnPersistence expandoColumnPersistence) {
118 this.expandoColumnPersistence = expandoColumnPersistence;
119 }
120
121
126 public ExpandoRowLocalService getExpandoRowLocalService() {
127 return expandoRowLocalService;
128 }
129
130
135 public void setExpandoRowLocalService(
136 ExpandoRowLocalService expandoRowLocalService) {
137 this.expandoRowLocalService = expandoRowLocalService;
138 }
139
140
145 public ExpandoRowPersistence getExpandoRowPersistence() {
146 return expandoRowPersistence;
147 }
148
149
154 public void setExpandoRowPersistence(
155 ExpandoRowPersistence expandoRowPersistence) {
156 this.expandoRowPersistence = expandoRowPersistence;
157 }
158
159
164 public ExpandoTableLocalService getExpandoTableLocalService() {
165 return expandoTableLocalService;
166 }
167
168
173 public void setExpandoTableLocalService(
174 ExpandoTableLocalService expandoTableLocalService) {
175 this.expandoTableLocalService = expandoTableLocalService;
176 }
177
178
183 public ExpandoTablePersistence getExpandoTablePersistence() {
184 return expandoTablePersistence;
185 }
186
187
192 public void setExpandoTablePersistence(
193 ExpandoTablePersistence expandoTablePersistence) {
194 this.expandoTablePersistence = expandoTablePersistence;
195 }
196
197
202 public ExpandoValueLocalService getExpandoValueLocalService() {
203 return expandoValueLocalService;
204 }
205
206
211 public void setExpandoValueLocalService(
212 ExpandoValueLocalService expandoValueLocalService) {
213 this.expandoValueLocalService = expandoValueLocalService;
214 }
215
216
221 public ExpandoValueService getExpandoValueService() {
222 return expandoValueService;
223 }
224
225
230 public void setExpandoValueService(ExpandoValueService expandoValueService) {
231 this.expandoValueService = expandoValueService;
232 }
233
234
239 public ExpandoValuePersistence getExpandoValuePersistence() {
240 return expandoValuePersistence;
241 }
242
243
248 public void setExpandoValuePersistence(
249 ExpandoValuePersistence expandoValuePersistence) {
250 this.expandoValuePersistence = expandoValuePersistence;
251 }
252
253
258 public CounterLocalService getCounterLocalService() {
259 return counterLocalService;
260 }
261
262
267 public void setCounterLocalService(CounterLocalService counterLocalService) {
268 this.counterLocalService = counterLocalService;
269 }
270
271
276 public ResourceLocalService getResourceLocalService() {
277 return resourceLocalService;
278 }
279
280
285 public void setResourceLocalService(
286 ResourceLocalService resourceLocalService) {
287 this.resourceLocalService = resourceLocalService;
288 }
289
290
295 public ResourceService getResourceService() {
296 return resourceService;
297 }
298
299
304 public void setResourceService(ResourceService resourceService) {
305 this.resourceService = resourceService;
306 }
307
308
313 public ResourcePersistence getResourcePersistence() {
314 return resourcePersistence;
315 }
316
317
322 public void setResourcePersistence(ResourcePersistence resourcePersistence) {
323 this.resourcePersistence = resourcePersistence;
324 }
325
326
331 public ResourceFinder getResourceFinder() {
332 return resourceFinder;
333 }
334
335
340 public void setResourceFinder(ResourceFinder resourceFinder) {
341 this.resourceFinder = resourceFinder;
342 }
343
344
349 public UserLocalService getUserLocalService() {
350 return userLocalService;
351 }
352
353
358 public void setUserLocalService(UserLocalService userLocalService) {
359 this.userLocalService = userLocalService;
360 }
361
362
367 public UserService getUserService() {
368 return userService;
369 }
370
371
376 public void setUserService(UserService userService) {
377 this.userService = userService;
378 }
379
380
385 public UserPersistence getUserPersistence() {
386 return userPersistence;
387 }
388
389
394 public void setUserPersistence(UserPersistence userPersistence) {
395 this.userPersistence = userPersistence;
396 }
397
398
403 public UserFinder getUserFinder() {
404 return userFinder;
405 }
406
407
412 public void setUserFinder(UserFinder userFinder) {
413 this.userFinder = userFinder;
414 }
415
416
421 protected void runSQL(String sql) throws SystemException {
422 try {
423 DataSource dataSource = expandoColumnPersistence.getDataSource();
424
425 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
426 sql, new int[0]);
427
428 sqlUpdate.update();
429 }
430 catch (Exception e) {
431 throw new SystemException(e);
432 }
433 }
434
435 @BeanReference(type = ExpandoColumnLocalService.class)
436 protected ExpandoColumnLocalService expandoColumnLocalService;
437 @BeanReference(type = ExpandoColumnService.class)
438 protected ExpandoColumnService expandoColumnService;
439 @BeanReference(type = ExpandoColumnPersistence.class)
440 protected ExpandoColumnPersistence expandoColumnPersistence;
441 @BeanReference(type = ExpandoRowLocalService.class)
442 protected ExpandoRowLocalService expandoRowLocalService;
443 @BeanReference(type = ExpandoRowPersistence.class)
444 protected ExpandoRowPersistence expandoRowPersistence;
445 @BeanReference(type = ExpandoTableLocalService.class)
446 protected ExpandoTableLocalService expandoTableLocalService;
447 @BeanReference(type = ExpandoTablePersistence.class)
448 protected ExpandoTablePersistence expandoTablePersistence;
449 @BeanReference(type = ExpandoValueLocalService.class)
450 protected ExpandoValueLocalService expandoValueLocalService;
451 @BeanReference(type = ExpandoValueService.class)
452 protected ExpandoValueService expandoValueService;
453 @BeanReference(type = ExpandoValuePersistence.class)
454 protected ExpandoValuePersistence expandoValuePersistence;
455 @BeanReference(type = CounterLocalService.class)
456 protected CounterLocalService counterLocalService;
457 @BeanReference(type = ResourceLocalService.class)
458 protected ResourceLocalService resourceLocalService;
459 @BeanReference(type = ResourceService.class)
460 protected ResourceService resourceService;
461 @BeanReference(type = ResourcePersistence.class)
462 protected ResourcePersistence resourcePersistence;
463 @BeanReference(type = ResourceFinder.class)
464 protected ResourceFinder resourceFinder;
465 @BeanReference(type = UserLocalService.class)
466 protected UserLocalService userLocalService;
467 @BeanReference(type = UserService.class)
468 protected UserService userService;
469 @BeanReference(type = UserPersistence.class)
470 protected UserPersistence userPersistence;
471 @BeanReference(type = UserFinder.class)
472 protected UserFinder userFinder;
473 }