Code example for Connection

Methods: close

0
  public Connection getConnection() throws SQLException {
    return this.ds.getConnection();
  } 
 
  public void closeConnection(Connection conn) throws SQLException {
    conn.close();
  } 
 
  public void close() { 
    try { 
      DataSources.destroy(this.ds);
    } catch (SQLException se) {
      throw new HibernateException(se);
    } 
  } 
 
  public boolean supportsAggressiveRelease() { 
    return false; 
  } 
}