public String getVersionFromSchemaLocation ( String schemaLocation ) { MessageVersion recMessageVersion = this . getMessageVersion ( ) ; recMessageVersion . close ( ) ; try { while ( recMessageVersion . hasNext ( ) ) { recMessageVersion . next ( ) ; String messageSchemaLocation = this . getSchemaLocation ( recMessageVersion , DBConstants . BLANK ) ; if ( schemaLocation . startsWith ( messageSchemaLocation ) ) return recMessageVersion . getField ( MessageVersion . CODE ) . toString ( ) ; } } catch ( DBException e ) { e . printStackTrace ( ) ; } return null ; }
GetVersionFromSchemaLocation Method .