private DBHandling createDBHandling ( ) throws BuildException { if ( ( _handling == null ) || ( _handling . length ( ) == 0 ) ) { throw new BuildException ( "No handling specified" ) ; } try { String className = "org.apache.ojb.broker.platforms." + Character . toTitleCase ( _handling . charAt ( 0 ) ) + _handling . substring ( 1 ) + "DBHandling" ; Class handlingClass = ClassHelper . getClass ( className ) ; return ( DBHandling ) handlingClass . newInstance ( ) ; } catch ( Exception ex ) { throw new BuildException ( "Invalid handling '" + _handling + "' specified" ) ; } }
Creates a db handling object .