public class JDBCDataAccessObjectOperator extends java.lang.Object implements DataAccessObjectOperator
构造器和说明 |
---|
JDBCDataAccessObjectOperator(Connection databaseConnection,
ObjectTableMapper[] mappingArray) |
限定符和类型 | 方法和说明 |
---|---|
protected void |
assertIsInMapping(java.lang.Class clazz) |
protected void |
assertIsInMapping(ClassArrayKey key) |
void |
checkTables()
检查Table是否存在,不存在就新建
|
protected java.sql.Connection |
createConnection() |
void |
dropTables()
删除所有表
|
ObjectTableMapper |
getObjectMapper(java.lang.Class clazz) |
ObjectTableMapper |
getObjectMapper(ClassArrayKey key) |
protected boolean |
isOracleDatabaseConnection() |
boolean |
isTransferState() |
void |
setTransferState(boolean transferState) |
DataAccessObjectSession |
startSession()
开始一个数据库会话
|
DataAccessObjectSession |
startSession(DatabaseAction action)
开始一个数据库会话
|
public JDBCDataAccessObjectOperator(Connection databaseConnection, ObjectTableMapper[] mappingArray)
public void checkTables() throws java.lang.Exception
checkTables
在接口中 DataAccessObjectOperator
java.lang.Exception
- 检查或新建过程发生异常则抛出此异常public void dropTables() throws java.lang.Exception
DataAccessObjectOperator
dropTables
在接口中 DataAccessObjectOperator
java.lang.Exception
- 删除表的过程中发生异常则抛出此异常public DataAccessObjectSession startSession()
DataAccessObjectOperator
startSession
在接口中 DataAccessObjectOperator
public DataAccessObjectSession startSession(DatabaseAction action)
DataAccessObjectOperator
startSession
在接口中 DataAccessObjectOperator
protected java.sql.Connection createConnection() throws java.lang.Exception
java.lang.Exception
public ObjectTableMapper getObjectMapper(java.lang.Class clazz)
public ObjectTableMapper getObjectMapper(ClassArrayKey key)
protected void assertIsInMapping(java.lang.Class clazz) throws DAOException
DAOException
protected void assertIsInMapping(ClassArrayKey key) throws DAOException
DAOException
protected boolean isOracleDatabaseConnection()
public boolean isTransferState()
public void setTransferState(boolean transferState)