public class SqlConnection extends AbstractConnection
| 限定符和类型 | 字段和说明 |
|---|---|
protected Connection |
connection
实际的连接
|
protected boolean |
inBatch
是否处于批处理中
|
protected String |
sql
最近一次操作的SQL
|
protected PreparedStatement |
statement
最近一次操作的statement
|
dbSetting, supportBatchUpdate| 构造器和说明 |
|---|
SqlConnection(Connection connection) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close()
关闭
|
Connection |
getConnection()
获取实际的连接
|
String |
getSql() |
PreparedStatement |
getStatement() |
boolean |
isClosed()
是否已关闭
|
boolean |
isInBatch() |
void |
setInBatch(boolean inBatch) |
void |
setSql(String sql) |
void |
setStatement(PreparedStatement statement) |
getDbSetting, setDbSetting, supportsBatchUpdatesprotected boolean inBatch
protected PreparedStatement statement
protected String sql
protected Connection connection
public SqlConnection(Connection connection)
public Connection getConnection()
public void close()
IConnectionpublic boolean isClosed()
IConnectionpublic boolean isInBatch()
public void setInBatch(boolean inBatch)
public PreparedStatement getStatement()
public void setStatement(PreparedStatement statement)
public String getSql()
public void setSql(String sql)
Copyright © 2023. All Rights Reserved.