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.bean.IdentifiableBean;
019 import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
020 import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
021 import com.liferay.portal.kernel.exception.SystemException;
022 import com.liferay.portal.service.BaseServiceImpl;
023 import com.liferay.portal.service.persistence.UserFinder;
024 import com.liferay.portal.service.persistence.UserPersistence;
025
026 import com.liferay.portlet.expando.model.ExpandoColumn;
027 import com.liferay.portlet.expando.service.ExpandoColumnService;
028 import com.liferay.portlet.expando.service.persistence.ExpandoColumnPersistence;
029 import com.liferay.portlet.expando.service.persistence.ExpandoRowPersistence;
030 import com.liferay.portlet.expando.service.persistence.ExpandoTablePersistence;
031 import com.liferay.portlet.expando.service.persistence.ExpandoValuePersistence;
032
033 import javax.sql.DataSource;
034
035
047 public abstract class ExpandoColumnServiceBaseImpl extends BaseServiceImpl
048 implements ExpandoColumnService, IdentifiableBean {
049
054
055
060 public com.liferay.portlet.expando.service.ExpandoColumnLocalService getExpandoColumnLocalService() {
061 return expandoColumnLocalService;
062 }
063
064
069 public void setExpandoColumnLocalService(
070 com.liferay.portlet.expando.service.ExpandoColumnLocalService expandoColumnLocalService) {
071 this.expandoColumnLocalService = expandoColumnLocalService;
072 }
073
074
079 public com.liferay.portlet.expando.service.ExpandoColumnService getExpandoColumnService() {
080 return expandoColumnService;
081 }
082
083
088 public void setExpandoColumnService(
089 com.liferay.portlet.expando.service.ExpandoColumnService expandoColumnService) {
090 this.expandoColumnService = expandoColumnService;
091 }
092
093
098 public ExpandoColumnPersistence getExpandoColumnPersistence() {
099 return expandoColumnPersistence;
100 }
101
102
107 public void setExpandoColumnPersistence(
108 ExpandoColumnPersistence expandoColumnPersistence) {
109 this.expandoColumnPersistence = expandoColumnPersistence;
110 }
111
112
117 public com.liferay.portlet.expando.service.ExpandoRowLocalService getExpandoRowLocalService() {
118 return expandoRowLocalService;
119 }
120
121
126 public void setExpandoRowLocalService(
127 com.liferay.portlet.expando.service.ExpandoRowLocalService expandoRowLocalService) {
128 this.expandoRowLocalService = expandoRowLocalService;
129 }
130
131
136 public ExpandoRowPersistence getExpandoRowPersistence() {
137 return expandoRowPersistence;
138 }
139
140
145 public void setExpandoRowPersistence(
146 ExpandoRowPersistence expandoRowPersistence) {
147 this.expandoRowPersistence = expandoRowPersistence;
148 }
149
150
155 public com.liferay.portlet.expando.service.ExpandoTableLocalService getExpandoTableLocalService() {
156 return expandoTableLocalService;
157 }
158
159
164 public void setExpandoTableLocalService(
165 com.liferay.portlet.expando.service.ExpandoTableLocalService expandoTableLocalService) {
166 this.expandoTableLocalService = expandoTableLocalService;
167 }
168
169
174 public ExpandoTablePersistence getExpandoTablePersistence() {
175 return expandoTablePersistence;
176 }
177
178
183 public void setExpandoTablePersistence(
184 ExpandoTablePersistence expandoTablePersistence) {
185 this.expandoTablePersistence = expandoTablePersistence;
186 }
187
188
193 public com.liferay.portlet.expando.service.ExpandoValueLocalService getExpandoValueLocalService() {
194 return expandoValueLocalService;
195 }
196
197
202 public void setExpandoValueLocalService(
203 com.liferay.portlet.expando.service.ExpandoValueLocalService expandoValueLocalService) {
204 this.expandoValueLocalService = expandoValueLocalService;
205 }
206
207
212 public com.liferay.portlet.expando.service.ExpandoValueService getExpandoValueService() {
213 return expandoValueService;
214 }
215
216
221 public void setExpandoValueService(
222 com.liferay.portlet.expando.service.ExpandoValueService expandoValueService) {
223 this.expandoValueService = expandoValueService;
224 }
225
226
231 public ExpandoValuePersistence getExpandoValuePersistence() {
232 return expandoValuePersistence;
233 }
234
235
240 public void setExpandoValuePersistence(
241 ExpandoValuePersistence expandoValuePersistence) {
242 this.expandoValuePersistence = expandoValuePersistence;
243 }
244
245
250 public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
251 return counterLocalService;
252 }
253
254
259 public void setCounterLocalService(
260 com.liferay.counter.service.CounterLocalService counterLocalService) {
261 this.counterLocalService = counterLocalService;
262 }
263
264
269 public com.liferay.portal.service.ResourceLocalService getResourceLocalService() {
270 return resourceLocalService;
271 }
272
273
278 public void setResourceLocalService(
279 com.liferay.portal.service.ResourceLocalService resourceLocalService) {
280 this.resourceLocalService = resourceLocalService;
281 }
282
283
288 public com.liferay.portal.service.UserLocalService getUserLocalService() {
289 return userLocalService;
290 }
291
292
297 public void setUserLocalService(
298 com.liferay.portal.service.UserLocalService userLocalService) {
299 this.userLocalService = userLocalService;
300 }
301
302
307 public com.liferay.portal.service.UserService getUserService() {
308 return userService;
309 }
310
311
316 public void setUserService(
317 com.liferay.portal.service.UserService userService) {
318 this.userService = userService;
319 }
320
321
326 public UserPersistence getUserPersistence() {
327 return userPersistence;
328 }
329
330
335 public void setUserPersistence(UserPersistence userPersistence) {
336 this.userPersistence = userPersistence;
337 }
338
339
344 public UserFinder getUserFinder() {
345 return userFinder;
346 }
347
348
353 public void setUserFinder(UserFinder userFinder) {
354 this.userFinder = userFinder;
355 }
356
357 public void afterPropertiesSet() {
358 }
359
360 public void destroy() {
361 }
362
363
368 @Override
369 public String getBeanIdentifier() {
370 return _beanIdentifier;
371 }
372
373
378 @Override
379 public void setBeanIdentifier(String beanIdentifier) {
380 _beanIdentifier = beanIdentifier;
381 }
382
383 protected Class<?> getModelClass() {
384 return ExpandoColumn.class;
385 }
386
387 protected String getModelClassName() {
388 return ExpandoColumn.class.getName();
389 }
390
391
396 protected void runSQL(String sql) throws SystemException {
397 try {
398 DataSource dataSource = expandoColumnPersistence.getDataSource();
399
400 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
401 sql, new int[0]);
402
403 sqlUpdate.update();
404 }
405 catch (Exception e) {
406 throw new SystemException(e);
407 }
408 }
409
410 @BeanReference(type = com.liferay.portlet.expando.service.ExpandoColumnLocalService.class)
411 protected com.liferay.portlet.expando.service.ExpandoColumnLocalService expandoColumnLocalService;
412 @BeanReference(type = com.liferay.portlet.expando.service.ExpandoColumnService.class)
413 protected com.liferay.portlet.expando.service.ExpandoColumnService expandoColumnService;
414 @BeanReference(type = ExpandoColumnPersistence.class)
415 protected ExpandoColumnPersistence expandoColumnPersistence;
416 @BeanReference(type = com.liferay.portlet.expando.service.ExpandoRowLocalService.class)
417 protected com.liferay.portlet.expando.service.ExpandoRowLocalService expandoRowLocalService;
418 @BeanReference(type = ExpandoRowPersistence.class)
419 protected ExpandoRowPersistence expandoRowPersistence;
420 @BeanReference(type = com.liferay.portlet.expando.service.ExpandoTableLocalService.class)
421 protected com.liferay.portlet.expando.service.ExpandoTableLocalService expandoTableLocalService;
422 @BeanReference(type = ExpandoTablePersistence.class)
423 protected ExpandoTablePersistence expandoTablePersistence;
424 @BeanReference(type = com.liferay.portlet.expando.service.ExpandoValueLocalService.class)
425 protected com.liferay.portlet.expando.service.ExpandoValueLocalService expandoValueLocalService;
426 @BeanReference(type = com.liferay.portlet.expando.service.ExpandoValueService.class)
427 protected com.liferay.portlet.expando.service.ExpandoValueService expandoValueService;
428 @BeanReference(type = ExpandoValuePersistence.class)
429 protected ExpandoValuePersistence expandoValuePersistence;
430 @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
431 protected com.liferay.counter.service.CounterLocalService counterLocalService;
432 @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class)
433 protected com.liferay.portal.service.ResourceLocalService resourceLocalService;
434 @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
435 protected com.liferay.portal.service.UserLocalService userLocalService;
436 @BeanReference(type = com.liferay.portal.service.UserService.class)
437 protected com.liferay.portal.service.UserService userService;
438 @BeanReference(type = UserPersistence.class)
439 protected UserPersistence userPersistence;
440 @BeanReference(type = UserFinder.class)
441 protected UserFinder userFinder;
442 private String _beanIdentifier;
443 }