protected void initializeProperties(Properties info) throws SQLException {
  if (info != null) {
    String profileSqlLc=info.getProperty("profileSql");
    if (profileSqlLc != null) {
      info.put("profileSQL",profileSqlLc);
    }
    Properties infoCopy=(Properties)info.clone();
    infoCopy.remove(NonRegisteringDriver.HOST_PROPERTY_KEY);
    infoCopy.remove(NonRegisteringDriver.USER_PROPERTY_KEY);
    infoCopy.remove(NonRegisteringDriver.PASSWORD_PROPERTY_KEY);
    infoCopy.remove(NonRegisteringDriver.DBNAME_PROPERTY_KEY);
    infoCopy.remove(NonRegisteringDriver.PORT_PROPERTY_KEY);
    infoCopy.remove("profileSql");
    int numPropertiesToSet=PROPERTY_LIST.size();
    for (int i=0; i < numPropertiesToSet; i++) {
      java.lang.reflect.Field propertyField=PROPERTY_LIST.get(i);
      try {
        ConnectionProperty propToSet=(ConnectionProperty)propertyField.get(this);
        propToSet.initializeFrom(infoCopy,getExceptionInterceptor());
      }
 catch (      IllegalAccessException iae) {
        throw SQLError.createSQLException(Messages.getString("ConnectionProperties.unableToInitDriverProperties") + iae.toString(),SQLError.SQL_STATE_GENERAL_ERROR,getExceptionInterceptor());
      }
    }
    postInitialization();
  }
}

protected void initializeProperties ( Properties info ) throws SQLException { if ( info != null ) { String profileSqlLc = info . getProperty ( "profileSql" ) ; if ( profileSqlLc != null ) { info . put ( "profileSQL" , profileSqlLc ) ; } Properties infoCopy = ( Properties ) info . clone ( ) ; infoCopy . remove ( NonRegisteringDriver . HOST_PROPERTY_KEY ) ; infoCopy . remove ( NonRegisteringDriver . USER_PROPERTY_KEY ) ; infoCopy . remove ( NonRegisteringDriver . PASSWORD_PROPERTY_KEY ) ; infoCopy . remove ( NonRegisteringDriver . DBNAME_PROPERTY_KEY ) ; infoCopy . remove ( NonRegisteringDriver . PORT_PROPERTY_KEY ) ; infoCopy . remove ( "profileSql" ) ; int numPropertiesToSet = PROPERTY_LIST . size ( ) ; for ( int i = 0 ; i < numPropertiesToSet ; i ++ ) { java . lang . reflect . Field propertyField = PROPERTY_LIST . get ( i ) ; try { ConnectionProperty propToSet = ( ConnectionProperty ) propertyField . get ( this ) ; propToSet . initializeFrom ( infoCopy , getExceptionInterceptor ( ) ) ; } catch ( IllegalAccessException iae ) { throw SQLError . createSQLException ( Messages . getString ( "ConnectionProperties.unableToInitDriverProperties" ) + iae . toString ( ) , SQLError . SQL_STATE_GENERAL_ERROR , getExceptionInterceptor ( ) ) ; } } postInitialization ( ) ; } }
initializes driver properties that come from url or properties passed to the driver manager .
