java/sql-dk/src/info/globalcode/sql/dk/DatabaseConnection.java
branchv_0
changeset 229 7699133f5a01
parent 192 a32bfcbdee51
equal deleted inserted replaced
228:3787c999d12c 229:7699133f5a01
   175 	public boolean test() throws SQLException {
   175 	public boolean test() throws SQLException {
   176 		connection.getAutoCommit();
   176 		connection.getAutoCommit();
   177 		return true;
   177 		return true;
   178 	}
   178 	}
   179 
   179 
       
   180 	public String getProductName() throws SQLException {
       
   181 		return connection.getMetaData().getDatabaseProductName();
       
   182 	}
       
   183 
       
   184 	public String getProductVersion() throws SQLException {
       
   185 		return connection.getMetaData().getDatabaseProductVersion();
       
   186 	}
       
   187 
   180 	@Override
   188 	@Override
   181 	public void close() throws SQLException {
   189 	public void close() throws SQLException {
   182 		connection.close();
   190 		connection.close();
   183 	}
   191 	}
   184 }
   192 }