|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectcn.remex.db.rsql.connection.RDBConnection
public class RDBConnection
改写了java.sql.Connection
此对象是为了数据库池的自动调用,回收,并且保证回收的正确性重写的。
| 构造方法摘要 | |
|---|---|
RDBConnection(String poolName)
|
|
| 方法摘要 | |
|---|---|
CallableStatement |
callableStatement(String sql)
|
void |
commit()
改写的java.sql.Connection.commit() |
Statement |
createStatement()
|
void |
free()
用于向数据库池返回已使用完的连接。 |
String |
getPoolName()
|
RDBSpaceConfig |
getSpaceConfig()
|
boolean |
isOK()
用于检查数据库连接是否正常的方法 |
PreparedStatement |
prepareStatement(String sql)
改写的java.sql.Connection.prepareStatement(String sql) |
PreparedStatement |
prepareStatement(String sql,
int autoGeneratedKeys)
|
PreparedStatement |
prepareStatement(String sql,
int resultSetType,
int resultSetConcurrency)
改写的java.sql.Connection.prepareStatement(sql, resultSetType, resultSetConcurrency) |
PreparedStatement |
prepareStatement(String sqlString,
String[] obtainPSKeys)
|
void |
rollback()
改写的java.sql.Connection.rollback() |
void |
setAutoCommit(boolean b)
改写的java.sql.Connection.setAutoCommit(boolean) |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 构造方法详细信息 |
|---|
public RDBConnection(String poolName)
| 方法详细信息 |
|---|
public String getPoolName()
public void commit()
throws SQLException
SQLExceptionpublic void free()
public RDBSpaceConfig getSpaceConfig()
public boolean isOK()
public PreparedStatement prepareStatement(String sql)
throws SQLException
sql -
SQLException
public PreparedStatement prepareStatement(String sql,
int autoGeneratedKeys)
throws SQLException
sql - autoGeneratedKeys - autoGeneratedKeys a flag indicating whether auto-generated keys should be returned; one of Statement.RETURN_GENERATED_KEYS or Statement.NO_GENERATED_KEYS
SQLException
public PreparedStatement prepareStatement(String sql,
int resultSetType,
int resultSetConcurrency)
throws SQLException
sql - resultSetType - resultSetConcurrency -
SQLException
public PreparedStatement prepareStatement(String sqlString,
String[] obtainPSKeys)
throws SQLException
sqlString - obtainPSKeys -
SQLException
public CallableStatement callableStatement(String sql)
throws SQLException
SQLException
public Statement createStatement()
throws SQLException
SQLException
public void rollback()
throws SQLException
SQLExceptionpublic void setAutoCommit(boolean b)
b -
SQLException
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||