Code example for DataSource

Methods: getConnection

0
 
  public void configure(Properties props) throws HibernateException {
  } 
 
  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() {