cn.schoolwow.quickdao.module.parent.domain.DatabaseContext Maven / Gradle / Ivy
package cn.schoolwow.quickdao.module.parent.domain;
import cn.schoolwow.quickdao.domain.entity.Entity;
import cn.schoolwow.quickdao.domain.provider.DatabaseProvider;
import javax.sql.DataSource;
import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
/**
* 数据库上下文对象
* */
public class DatabaseContext {
/**
* 数据源
*/
public DataSource dataSource;
/**
* 数据库名
*/
public String databaseName;
/**
* 扫描后的实体类信息
*/
public Map entityMap = new HashMap<>();
/**
* 数据库表信息缓存
*/
public final Map databaseTableCache = new ConcurrentHashMap<>();
/**
* SQL语句缓存
*/
public final ConcurrentHashMap statementCache = new ConcurrentHashMap();
/**
* 数据库提供者
*/
public DatabaseProvider databaseProvider;
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy