public MessageVersion getMessageVersion ( String version ) { MessageVersion recMessageVersion = this . getMessageVersion ( ) ; recMessageVersion . setKeyArea ( MessageVersion . CODE_KEY ) ; version = MessageControl . fixVersion ( version ) ; recMessageVersion . getField ( MessageVersion . CODE ) . setString ( version ) ; try { if ( version != null ) if ( recMessageVersion . seek ( DBConstants . EQUALS ) ) { return recMessageVersion ; } } catch ( DBException e ) { e . printStackTrace ( ) ; } return ( MessageVersion ) ( ( ReferenceField ) this . getField ( MessageControl . DEFAULT_VERSION_ID ) ) . getReference ( ) ; }
GetMessageVersion Method .