public void connect ( ) throws SQLException { if ( ! isClosed ( ) ) { close ( ) ; } try { connect ( ( currentHost != null ) ? currentHost . host : null , ( currentHost != null ) ? currentHost . port : 3306 ) ; } catch ( IOException ioException ) { throw ExceptionMapper . connException ( "Could not connect to " + currentHost + ". " + ioException . getMessage ( ) + getTraces ( ) , ioException ) ; } }
Connect to currentHost .