public interface IAccessorConfig
| 限定符和类型 | 方法和说明 |
|---|---|
void |
afterStatementExecution(AccessorEventContext context)
Statement对象执行之后调用
|
void |
beforeStatementExecution(AccessorEventContext context)
Statement对象执行之前调用
|
CallableStatement |
getCallableStatement(Connection conn,
String sql) |
int |
getFetchDirection()
向驱动程序提供关于方向的提示,在使用此 Statement 对象创建的 ResultSet 对象中将按该方向处理行。
|
int |
getFetchSize()
为 JDBC 驱动程序提供一个提示,它提示此 Statement 生成的 ResultSet 对象需要更多行时应该从数据库获取的行数。
|
int |
getMaxFieldSize()
设置此 Statement 对象生成的 ResultSet 对象中字符和二进制列值可以返回的最大字节数限制。
|
int |
getMaxRows()
将此 Statement 对象生成的所有 ResultSet 对象可以包含的最大行数限制设置为给定数。
|
PreparedStatement |
getPreparedStatement(Connection conn,
String sql) |
int |
getQueryTimeout()
将驱动程序等待 Statement 对象执行的秒数设置为给定秒数。
|
Statement |
getStatement(Connection conn) |
Statement getStatement(Connection conn) throws Exception
conn - 连接对象Exception - 可能产生的异常CallableStatement getCallableStatement(Connection conn, String sql) throws Exception
conn - 连接对象sql - SQL语句Exception - 可能产生的异常PreparedStatement getPreparedStatement(Connection conn, String sql) throws Exception
conn - 连接对象sql - SQL语句Exception - 可能产生的异常void beforeStatementExecution(AccessorEventContext context) throws Exception
context - 访问器配置事件上下文对象Exception - 可能产生的异常void afterStatementExecution(AccessorEventContext context) throws Exception
context - 访问器配置事件上下文对象Exception - 可能产生的异常int getFetchDirection()
int getFetchSize()
int getMaxFieldSize()
int getMaxRows()
int getQueryTimeout()
Copyright © 2021. All rights reserved.