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);
    } 
  } 
 
Stop searching for code, let great code find you!  Add Codota to your java IDE