释放连接的method
public boolean releaseConn()
{
try {
if(rs!=null) rs.close();
if(stmt!=null) stmt.close();
if(conn!=null) conn.close();
return true; }
catch (SQLException e) {
System.err.println("closeConn:"+e.getMessage());
return false; }
}
{
try {
if(rs!=null) rs.close();
if(stmt!=null) stmt.close();
if(conn!=null) conn.close();
return true; }
catch (SQLException e) {
System.err.println("closeConn:"+e.getMessage());
return false; }
}
Jason
2004-12-07 17:30:47
评论:0
阅读:1599
引用:0
