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.bean.BeanReference;
020 import com.liferay.portal.kernel.bean.IdentifiableBean;
021 import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
022 import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
023 import com.liferay.portal.kernel.exception.SystemException;
024 import com.liferay.portal.service.BaseServiceImpl;
025 import com.liferay.portal.service.ResourceLocalService;
026 import com.liferay.portal.service.ResourceService;
027 import com.liferay.portal.service.UserLocalService;
028 import com.liferay.portal.service.UserService;
029 import com.liferay.portal.service.persistence.ResourceFinder;
030 import com.liferay.portal.service.persistence.ResourcePersistence;
031 import com.liferay.portal.service.persistence.UserFinder;
032 import com.liferay.portal.service.persistence.UserPersistence;
033
034 import com.liferay.portlet.expando.model.ExpandoColumn;
035 import com.liferay.portlet.expando.service.ExpandoColumnLocalService;
036 import com.liferay.portlet.expando.service.ExpandoColumnService;
037 import com.liferay.portlet.expando.service.ExpandoRowLocalService;
038 import com.liferay.portlet.expando.service.ExpandoTableLocalService;
039 import com.liferay.portlet.expando.service.ExpandoValueLocalService;
040 import com.liferay.portlet.expando.service.ExpandoValueService;
041 import com.liferay.portlet.expando.service.persistence.ExpandoColumnPersistence;
042 import com.liferay.portlet.expando.service.persistence.ExpandoRowPersistence;
043 import com.liferay.portlet.expando.service.persistence.ExpandoTablePersistence;
044 import com.liferay.portlet.expando.service.persistence.ExpandoValuePersistence;
045
046 import javax.sql.DataSource;
047
048
060 public abstract class ExpandoColumnServiceBaseImpl extends BaseServiceImpl
061 implements ExpandoColumnService, IdentifiableBean {
062
067
068
073 public ExpandoColumnLocalService getExpandoColumnLocalService() {
074 return expandoColumnLocalService;
075 }
076
077
082 public void setExpandoColumnLocalService(
083 ExpandoColumnLocalService expandoColumnLocalService) {
084 this.expandoColumnLocalService = expandoColumnLocalService;
085 }
086
087
092 public ExpandoColumnService getExpandoColumnService() {
093 return expandoColumnService;
094 }
095
096
101 public void setExpandoColumnService(
102 ExpandoColumnService expandoColumnService) {
103 this.expandoColumnService = expandoColumnService;
104 }
105
106
111 public ExpandoColumnPersistence getExpandoColumnPersistence() {
112 return expandoColumnPersistence;
113 }
114
115
120 public void setExpandoColumnPersistence(
121 ExpandoColumnPersistence expandoColumnPersistence) {
122 this.expandoColumnPersistence = expandoColumnPersistence;
123 }
124
125
130 public ExpandoRowLocalService getExpandoRowLocalService() {
131 return expandoRowLocalService;
132 }
133
134
139 public void setExpandoRowLocalService(
140 ExpandoRowLocalService expandoRowLocalService) {
141 this.expandoRowLocalService = expandoRowLocalService;
142 }
143
144
149 public ExpandoRowPersistence getExpandoRowPersistence() {
150 return expandoRowPersistence;
151 }
152
153
158 public void setExpandoRowPersistence(
159 ExpandoRowPersistence expandoRowPersistence) {
160 this.expandoRowPersistence = expandoRowPersistence;
161 }
162
163
168 public ExpandoTableLocalService getExpandoTableLocalService() {
169 return expandoTableLocalService;
170 }
171
172
177 public void setExpandoTableLocalService(
178 ExpandoTableLocalService expandoTableLocalService) {
179 this.expandoTableLocalService = expandoTableLocalService;
180 }
181
182
187 public ExpandoTablePersistence getExpandoTablePersistence() {
188 return expandoTablePersistence;
189 }
190
191
196 public void setExpandoTablePersistence(
197 ExpandoTablePersistence expandoTablePersistence) {
198 this.expandoTablePersistence = expandoTablePersistence;
199 }
200
201
206 public ExpandoValueLocalService getExpandoValueLocalService() {
207 return expandoValueLocalService;
208 }
209
210
215 public void setExpandoValueLocalService(
216 ExpandoValueLocalService expandoValueLocalService) {
217 this.expandoValueLocalService = expandoValueLocalService;
218 }
219
220
225 public ExpandoValueService getExpandoValueService() {
226 return expandoValueService;
227 }
228
229
234 public void setExpandoValueService(ExpandoValueService expandoValueService) {
235 this.expandoValueService = expandoValueService;
236 }
237
238
243 public ExpandoValuePersistence getExpandoValuePersistence() {
244 return expandoValuePersistence;
245 }
246
247
252 public void setExpandoValuePersistence(
253 ExpandoValuePersistence expandoValuePersistence) {
254 this.expandoValuePersistence = expandoValuePersistence;
255 }
256
257
262 public CounterLocalService getCounterLocalService() {
263 return counterLocalService;
264 }
265
266
271 public void setCounterLocalService(CounterLocalService counterLocalService) {
272 this.counterLocalService = counterLocalService;
273 }
274
275
280 public ResourceLocalService getResourceLocalService() {
281 return resourceLocalService;
282 }
283
284
289 public void setResourceLocalService(
290 ResourceLocalService resourceLocalService) {
291 this.resourceLocalService = resourceLocalService;
292 }
293
294
299 public ResourceService getResourceService() {
300 return resourceService;
301 }
302
303
308 public void setResourceService(ResourceService resourceService) {
309 this.resourceService = resourceService;
310 }
311
312
317 public ResourcePersistence getResourcePersistence() {
318 return resourcePersistence;
319 }
320
321
326 public void setResourcePersistence(ResourcePersistence resourcePersistence) {
327 this.resourcePersistence = resourcePersistence;
328 }
329
330
335 public ResourceFinder getResourceFinder() {
336 return resourceFinder;
337 }
338
339
344 public void setResourceFinder(ResourceFinder resourceFinder) {
345 this.resourceFinder = resourceFinder;
346 }
347
348
353 public UserLocalService getUserLocalService() {
354 return userLocalService;
355 }
356
357
362 public void setUserLocalService(UserLocalService userLocalService) {
363 this.userLocalService = userLocalService;
364 }
365
366
371 public UserService getUserService() {
372 return userService;
373 }
374
375
380 public void setUserService(UserService userService) {
381 this.userService = userService;
382 }
383
384
389 public UserPersistence getUserPersistence() {
390 return userPersistence;
391 }
392
393
398 public void setUserPersistence(UserPersistence userPersistence) {
399 this.userPersistence = userPersistence;
400 }
401
402
407 public UserFinder getUserFinder() {
408 return userFinder;
409 }
410
411
416 public void setUserFinder(UserFinder userFinder) {
417 this.userFinder = userFinder;
418 }
419
420 public void afterPropertiesSet() {
421 }
422
423 public void destroy() {
424 }
425
426
431 public String getBeanIdentifier() {
432 return _beanIdentifier;
433 }
434
435
440 public void setBeanIdentifier(String beanIdentifier) {
441 _beanIdentifier = beanIdentifier;
442 }
443
444 protected Class<?> getModelClass() {
445 return ExpandoColumn.class;
446 }
447
448 protected String getModelClassName() {
449 return ExpandoColumn.class.getName();
450 }
451
452
457 protected void runSQL(String sql) throws SystemException {
458 try {
459 DataSource dataSource = expandoColumnPersistence.getDataSource();
460
461 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
462 sql, new int[0]);
463
464 sqlUpdate.update();
465 }
466 catch (Exception e) {
467 throw new SystemException(e);
468 }
469 }
470
471 @BeanReference(type = ExpandoColumnLocalService.class)
472 protected ExpandoColumnLocalService expandoColumnLocalService;
473 @BeanReference(type = ExpandoColumnService.class)
474 protected ExpandoColumnService expandoColumnService;
475 @BeanReference(type = ExpandoColumnPersistence.class)
476 protected ExpandoColumnPersistence expandoColumnPersistence;
477 @BeanReference(type = ExpandoRowLocalService.class)
478 protected ExpandoRowLocalService expandoRowLocalService;
479 @BeanReference(type = ExpandoRowPersistence.class)
480 protected ExpandoRowPersistence expandoRowPersistence;
481 @BeanReference(type = ExpandoTableLocalService.class)
482 protected ExpandoTableLocalService expandoTableLocalService;
483 @BeanReference(type = ExpandoTablePersistence.class)
484 protected ExpandoTablePersistence expandoTablePersistence;
485 @BeanReference(type = ExpandoValueLocalService.class)
486 protected ExpandoValueLocalService expandoValueLocalService;
487 @BeanReference(type = ExpandoValueService.class)
488 protected ExpandoValueService expandoValueService;
489 @BeanReference(type = ExpandoValuePersistence.class)
490 protected ExpandoValuePersistence expandoValuePersistence;
491 @BeanReference(type = CounterLocalService.class)
492 protected CounterLocalService counterLocalService;
493 @BeanReference(type = ResourceLocalService.class)
494 protected ResourceLocalService resourceLocalService;
495 @BeanReference(type = ResourceService.class)
496 protected ResourceService resourceService;
497 @BeanReference(type = ResourcePersistence.class)
498 protected ResourcePersistence resourcePersistence;
499 @BeanReference(type = ResourceFinder.class)
500 protected ResourceFinder resourceFinder;
501 @BeanReference(type = UserLocalService.class)
502 protected UserLocalService userLocalService;
503 @BeanReference(type = UserService.class)
504 protected UserService userService;
505 @BeanReference(type = UserPersistence.class)
506 protected UserPersistence userPersistence;
507 @BeanReference(type = UserFinder.class)
508 protected UserFinder userFinder;
509 private String _beanIdentifier;
510 }