public void setConnection ( JdbcConnectionDescriptor jcd ) throws PlatformException { _jcd = jcd ; String targetDatabase = ( String ) _dbmsToTorqueDb . get ( _jcd . getDbms ( ) . toLowerCase ( ) ) ; if ( targetDatabase == null ) { throw new PlatformException ( "Database " + _jcd . getDbms ( ) + " is not supported by torque" ) ; } if ( ! targetDatabase . equals ( _targetDatabase ) ) { _targetDatabase = targetDatabase ; _creationScript = null ; _initScripts . clear ( ) ; } }
Sets the jdbc connection to use .