67,513
社区成员
发帖
与我相关
我的任务
分享
public class ConnectionDecorator implements Connection {
private Connection con = null;
public ConnectionDecorator(Connection con) {
this.con = con;
}
public void close() throws SQLException {
// 重写!
}
public void commit() throws SQLException {
this.con.commit();
}
public Statement createStatement() throws SQLException {
return this.con.createStatement();
}
public Statement createStatement(int resultSetType, int resultSetConcurrency)
throws SQLException {
return this.con.createStatement(resultSetType, resultSetConcurrency);
}
......
}