com.mycomm.dao.dao4comm.orm.OrmBaseSupport Maven / Gradle / Ivy
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.mycomm.dao.dao4comm.orm;
import com.mycomm.IProtocol.cache.TableCacheService;
import javax.annotation.PostConstruct;
import javax.annotation.Resource;
import org.springframework.jdbc.core.JdbcTemplate;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
*
* @author jw362j
*/
public abstract class OrmBaseSupport {
@Resource
protected TableCacheService myTableCacheService;
protected static final Logger log = LoggerFactory.getLogger(OrmBaseSupport.class);
@Resource
private JdbcTemplate jdbcTemplate;
public JdbcTemplate getJdbcTemplate() {
if (jdbcTemplate == null) {
throw new RuntimeException("The jdbcTemplate is null ,all game over !");
}
return jdbcTemplate;
}
@PostConstruct
public void initSesson() {
}
}