public class DBhandler extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected static ConcurrentMap<String,DBhandler> |
handlerPools |
static org.apache.log4j.Logger |
logger |
protected ConcurrentMap<String,TableStructure> |
tableStructures |
| 构造器和说明 |
|---|
DBhandler() |
| 限定符和类型 | 方法和说明 |
|---|---|
static String[] |
allDb() |
static DBhandler[] |
allHandlers() |
void |
checkUpdate() |
void |
checkUpdate(boolean first) |
TableStructure |
findTableStructure(String name) |
DBConfig |
getConfig() |
String |
getDbName() |
static DBhandler |
getInstanceof(String dbName,
DBConfig config) |
org.springframework.jdbc.core.JdbcTemplate |
getJdbcTemplate() |
void |
init(String dbName,
DBConfig config) |
void |
initTables() |
public static org.apache.log4j.Logger logger
protected static final ConcurrentMap<String,DBhandler> handlerPools
protected volatile ConcurrentMap<String,TableStructure> tableStructures
public org.springframework.jdbc.core.JdbcTemplate getJdbcTemplate()
public static String[] allDb()
public static DBhandler[] allHandlers()
public String getDbName()
public DBConfig getConfig()
public TableStructure findTableStructure(String name)
public void checkUpdate()
public void checkUpdate(boolean first)
public void initTables()
Copyright © 2019. All rights reserved.