All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.mycomm.dao.dao4comm.orm.OrmBaseSupport Maven / Gradle / Ivy

There is a newer version: 1.0.8
Show newest version
/*
 * 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() {

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy