001
014
015 package com.liferay.portlet.expando.service.base;
016
017 import com.liferay.portal.kernel.bean.BeanReference;
018 import com.liferay.portal.kernel.dao.db.DB;
019 import com.liferay.portal.kernel.dao.db.DBManagerUtil;
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.kernel.module.framework.service.IdentifiableOSGiService;
024 import com.liferay.portal.service.BaseServiceImpl;
025 import com.liferay.portal.service.persistence.ClassNamePersistence;
026 import com.liferay.portal.service.persistence.UserFinder;
027 import com.liferay.portal.service.persistence.UserPersistence;
028 import com.liferay.portal.util.PortalUtil;
029
030 import com.liferay.portlet.expando.model.ExpandoValue;
031 import com.liferay.portlet.expando.service.ExpandoValueService;
032 import com.liferay.portlet.expando.service.persistence.ExpandoColumnPersistence;
033 import com.liferay.portlet.expando.service.persistence.ExpandoRowPersistence;
034 import com.liferay.portlet.expando.service.persistence.ExpandoTablePersistence;
035 import com.liferay.portlet.expando.service.persistence.ExpandoValuePersistence;
036
037 import javax.sql.DataSource;
038
039
051 public abstract class ExpandoValueServiceBaseImpl extends BaseServiceImpl
052 implements ExpandoValueService, IdentifiableOSGiService {
053
058
059
064 public com.liferay.portlet.expando.service.ExpandoColumnLocalService getExpandoColumnLocalService() {
065 return expandoColumnLocalService;
066 }
067
068
073 public void setExpandoColumnLocalService(
074 com.liferay.portlet.expando.service.ExpandoColumnLocalService expandoColumnLocalService) {
075 this.expandoColumnLocalService = expandoColumnLocalService;
076 }
077
078
083 public com.liferay.portlet.expando.service.ExpandoColumnService getExpandoColumnService() {
084 return expandoColumnService;
085 }
086
087
092 public void setExpandoColumnService(
093 com.liferay.portlet.expando.service.ExpandoColumnService expandoColumnService) {
094 this.expandoColumnService = expandoColumnService;
095 }
096
097
102 public ExpandoColumnPersistence getExpandoColumnPersistence() {
103 return expandoColumnPersistence;
104 }
105
106
111 public void setExpandoColumnPersistence(
112 ExpandoColumnPersistence expandoColumnPersistence) {
113 this.expandoColumnPersistence = expandoColumnPersistence;
114 }
115
116
121 public com.liferay.portlet.expando.service.ExpandoRowLocalService getExpandoRowLocalService() {
122 return expandoRowLocalService;
123 }
124
125
130 public void setExpandoRowLocalService(
131 com.liferay.portlet.expando.service.ExpandoRowLocalService expandoRowLocalService) {
132 this.expandoRowLocalService = expandoRowLocalService;
133 }
134
135
140 public ExpandoRowPersistence getExpandoRowPersistence() {
141 return expandoRowPersistence;
142 }
143
144
149 public void setExpandoRowPersistence(
150 ExpandoRowPersistence expandoRowPersistence) {
151 this.expandoRowPersistence = expandoRowPersistence;
152 }
153
154
159 public com.liferay.portlet.expando.service.ExpandoTableLocalService getExpandoTableLocalService() {
160 return expandoTableLocalService;
161 }
162
163
168 public void setExpandoTableLocalService(
169 com.liferay.portlet.expando.service.ExpandoTableLocalService expandoTableLocalService) {
170 this.expandoTableLocalService = expandoTableLocalService;
171 }
172
173
178 public ExpandoTablePersistence getExpandoTablePersistence() {
179 return expandoTablePersistence;
180 }
181
182
187 public void setExpandoTablePersistence(
188 ExpandoTablePersistence expandoTablePersistence) {
189 this.expandoTablePersistence = expandoTablePersistence;
190 }
191
192
197 public com.liferay.portlet.expando.service.ExpandoValueLocalService getExpandoValueLocalService() {
198 return expandoValueLocalService;
199 }
200
201
206 public void setExpandoValueLocalService(
207 com.liferay.portlet.expando.service.ExpandoValueLocalService expandoValueLocalService) {
208 this.expandoValueLocalService = expandoValueLocalService;
209 }
210
211
216 public ExpandoValueService getExpandoValueService() {
217 return expandoValueService;
218 }
219
220
225 public void setExpandoValueService(ExpandoValueService expandoValueService) {
226 this.expandoValueService = expandoValueService;
227 }
228
229
234 public ExpandoValuePersistence getExpandoValuePersistence() {
235 return expandoValuePersistence;
236 }
237
238
243 public void setExpandoValuePersistence(
244 ExpandoValuePersistence expandoValuePersistence) {
245 this.expandoValuePersistence = expandoValuePersistence;
246 }
247
248
253 public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
254 return counterLocalService;
255 }
256
257
262 public void setCounterLocalService(
263 com.liferay.counter.service.CounterLocalService counterLocalService) {
264 this.counterLocalService = counterLocalService;
265 }
266
267
272 public com.liferay.portal.service.ClassNameLocalService getClassNameLocalService() {
273 return classNameLocalService;
274 }
275
276
281 public void setClassNameLocalService(
282 com.liferay.portal.service.ClassNameLocalService classNameLocalService) {
283 this.classNameLocalService = classNameLocalService;
284 }
285
286
291 public com.liferay.portal.service.ClassNameService getClassNameService() {
292 return classNameService;
293 }
294
295
300 public void setClassNameService(
301 com.liferay.portal.service.ClassNameService classNameService) {
302 this.classNameService = classNameService;
303 }
304
305
310 public ClassNamePersistence getClassNamePersistence() {
311 return classNamePersistence;
312 }
313
314
319 public void setClassNamePersistence(
320 ClassNamePersistence classNamePersistence) {
321 this.classNamePersistence = classNamePersistence;
322 }
323
324
329 public com.liferay.portal.service.ResourceLocalService getResourceLocalService() {
330 return resourceLocalService;
331 }
332
333
338 public void setResourceLocalService(
339 com.liferay.portal.service.ResourceLocalService resourceLocalService) {
340 this.resourceLocalService = resourceLocalService;
341 }
342
343
348 public com.liferay.portal.service.UserLocalService getUserLocalService() {
349 return userLocalService;
350 }
351
352
357 public void setUserLocalService(
358 com.liferay.portal.service.UserLocalService userLocalService) {
359 this.userLocalService = userLocalService;
360 }
361
362
367 public com.liferay.portal.service.UserService getUserService() {
368 return userService;
369 }
370
371
376 public void setUserService(
377 com.liferay.portal.service.UserService userService) {
378 this.userService = userService;
379 }
380
381
386 public UserPersistence getUserPersistence() {
387 return userPersistence;
388 }
389
390
395 public void setUserPersistence(UserPersistence userPersistence) {
396 this.userPersistence = userPersistence;
397 }
398
399
404 public UserFinder getUserFinder() {
405 return userFinder;
406 }
407
408
413 public void setUserFinder(UserFinder userFinder) {
414 this.userFinder = userFinder;
415 }
416
417 public void afterPropertiesSet() {
418 }
419
420 public void destroy() {
421 }
422
423
428 @Override
429 public String getOSGiServiceIdentifier() {
430 return ExpandoValueService.class.getName();
431 }
432
433 protected Class<?> getModelClass() {
434 return ExpandoValue.class;
435 }
436
437 protected String getModelClassName() {
438 return ExpandoValue.class.getName();
439 }
440
441
446 protected void runSQL(String sql) {
447 try {
448 DataSource dataSource = expandoValuePersistence.getDataSource();
449
450 DB db = DBManagerUtil.getDB();
451
452 sql = db.buildSQL(sql);
453 sql = PortalUtil.transformSQL(sql);
454
455 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
456 sql, new int[0]);
457
458 sqlUpdate.update();
459 }
460 catch (Exception e) {
461 throw new SystemException(e);
462 }
463 }
464
465 @BeanReference(type = com.liferay.portlet.expando.service.ExpandoColumnLocalService.class)
466 protected com.liferay.portlet.expando.service.ExpandoColumnLocalService expandoColumnLocalService;
467 @BeanReference(type = com.liferay.portlet.expando.service.ExpandoColumnService.class)
468 protected com.liferay.portlet.expando.service.ExpandoColumnService expandoColumnService;
469 @BeanReference(type = ExpandoColumnPersistence.class)
470 protected ExpandoColumnPersistence expandoColumnPersistence;
471 @BeanReference(type = com.liferay.portlet.expando.service.ExpandoRowLocalService.class)
472 protected com.liferay.portlet.expando.service.ExpandoRowLocalService expandoRowLocalService;
473 @BeanReference(type = ExpandoRowPersistence.class)
474 protected ExpandoRowPersistence expandoRowPersistence;
475 @BeanReference(type = com.liferay.portlet.expando.service.ExpandoTableLocalService.class)
476 protected com.liferay.portlet.expando.service.ExpandoTableLocalService expandoTableLocalService;
477 @BeanReference(type = ExpandoTablePersistence.class)
478 protected ExpandoTablePersistence expandoTablePersistence;
479 @BeanReference(type = com.liferay.portlet.expando.service.ExpandoValueLocalService.class)
480 protected com.liferay.portlet.expando.service.ExpandoValueLocalService expandoValueLocalService;
481 @BeanReference(type = com.liferay.portlet.expando.service.ExpandoValueService.class)
482 protected ExpandoValueService expandoValueService;
483 @BeanReference(type = ExpandoValuePersistence.class)
484 protected ExpandoValuePersistence expandoValuePersistence;
485 @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
486 protected com.liferay.counter.service.CounterLocalService counterLocalService;
487 @BeanReference(type = com.liferay.portal.service.ClassNameLocalService.class)
488 protected com.liferay.portal.service.ClassNameLocalService classNameLocalService;
489 @BeanReference(type = com.liferay.portal.service.ClassNameService.class)
490 protected com.liferay.portal.service.ClassNameService classNameService;
491 @BeanReference(type = ClassNamePersistence.class)
492 protected ClassNamePersistence classNamePersistence;
493 @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class)
494 protected com.liferay.portal.service.ResourceLocalService resourceLocalService;
495 @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
496 protected com.liferay.portal.service.UserLocalService userLocalService;
497 @BeanReference(type = com.liferay.portal.service.UserService.class)
498 protected com.liferay.portal.service.UserService userService;
499 @BeanReference(type = UserPersistence.class)
500 protected UserPersistence userPersistence;
501 @BeanReference(type = UserFinder.class)
502 protected UserFinder userFinder;
503 }