Code example for Connection

Methods: close, getMetaData

0
	} 
		 
	protected void initSQLDataSource() throws SQLException, DataServiceFault { 
		Connection conn = this.createConnection();
		/* check if we have JDBC batch update support */ 
		this.jdbcBatchUpdateSupport = conn.getMetaData().supportsBatchUpdates();
		conn.close();
	} 
		 
	public abstract DataSource getDataSource() throws DataServiceFault;
	 
	public abstract boolean isStatsAvailable() throws DataServiceFault; 
	 
	public abstract int getActiveConnectionCount() throws DataServiceFault; 
	 
	public abstract int getIdleConnectionCount() throws DataServiceFault; 
		 
	public String getValidationQuery() {
		return validationQuery;
	}