public void testBooleanOptions() throws Exception {
  DatabaseMetaData dbmd=con.getMetaData();
  assertTrue("locatorsUpdateCopy",dbmd.locatorsUpdateCopy());
  assertTrue("supportsGetGeneratedKeys",dbmd.supportsGetGeneratedKeys());
  assertTrue("supportsMultipleOpenResults",dbmd.supportsMultipleOpenResults());
  assertTrue("supportsNamedParameters",dbmd.supportsNamedParameters());
  assertFalse("supportsResultSetHoldability",dbmd.supportsResultSetHoldability(ResultSet.HOLD_CURSORS_OVER_COMMIT));
  assertFalse("supportsResultSetHoldability",dbmd.supportsResultSetHoldability(ResultSet.CLOSE_CURSORS_AT_COMMIT));
  assertTrue("supportsSavepoints",dbmd.supportsSavepoints());
  assertTrue("supportsStatementPooling",dbmd.supportsStatementPooling());
}

public void testBooleanOptions ( ) throws Exception { DatabaseMetaData dbmd = con . getMetaData ( ) ; assertTrue ( "locatorsUpdateCopy" , dbmd . locatorsUpdateCopy ( ) ) ; assertTrue ( "supportsGetGeneratedKeys" , dbmd . supportsGetGeneratedKeys ( ) ) ; assertTrue ( "supportsMultipleOpenResults" , dbmd . supportsMultipleOpenResults ( ) ) ; assertTrue ( "supportsNamedParameters" , dbmd . supportsNamedParameters ( ) ) ; assertFalse ( "supportsResultSetHoldability" , dbmd . supportsResultSetHoldability ( ResultSet . HOLD_CURSORS_OVER_COMMIT ) ) ; assertFalse ( "supportsResultSetHoldability" , dbmd . supportsResultSetHoldability ( ResultSet . CLOSE_CURSORS_AT_COMMIT ) ) ; assertTrue ( "supportsSavepoints" , dbmd . supportsSavepoints ( ) ) ; assertTrue ( "supportsStatementPooling" , dbmd . supportsStatementPooling ( ) ) ; }
test meta data functions that return boolean values .
