public abstract class AbstractDao extends Object implements IDao
| 限定符和类型 | 字段和说明 |
|---|---|
protected String |
alias
DB别名
|
protected IConnection |
connection |
protected static Map<String,Map<String,String>> |
EXECUTERS
执行器缓存,{dbType:{executerInterface:executerImpl}
|
| 构造器和说明 |
|---|
AbstractDao() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
String |
getAlias()
获取DB别名
|
protected IConnection |
getConnection()
供子类获取DB连接接口
|
protected IDaoExecuter |
getExecuter(String executerInterface) |
protected IDaoExecuter |
getImpl(String dbType,
String executerInterface) |
DaoType |
getType()
获取Dao类型
|
void |
init(String alias) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbeginTransaction, supportprotected static final Map<String,Map<String,String>> EXECUTERS
protected String alias
protected IConnection connection
public void init(String alias)
protected IConnection getConnection()
protected IDaoExecuter getImpl(String dbType, String executerInterface)
protected IDaoExecuter getExecuter(String executerInterface)
Copyright © 2023. All Rights Reserved.