Code example for DataSource

Methods: getConnection

0
		this.pool = pool;
	} 
	 
	@Override public VerifiableConnection create() { 
		try { 
			return new VerifiableConnection(ds.getConnection(), pool, timeout);
		} catch (SQLException e) {
			e.printStackTrace();
			return null; 
		} 
	} 
 
	@Override 
	public void dispose(VerifiableConnection c) {
		try { 
			if (!c.isClosed()) {
				c.close();
			} 
		} catch (SQLException e) {
			e.printStackTrace();
		}