public String xaFlagsToString ( int flags ) { StringBuilder retval = new StringBuilder ( "Flags=" ) ; retval . append ( Integer . toHexString ( flags ) ) ; retval . append ( "( " ) ; if ( flags == XAResource . TMNOFLAGS ) { retval . append ( "TMNOFLAGS " ) ; } else { if ( ( flags & XAResource . TMENDRSCAN ) != 0 ) retval . append ( "TMENDRSCAN " ) ; if ( ( flags & XAResource . TMFAIL ) != 0 ) retval . append ( "TMFAIL " ) ; if ( ( flags & XAResource . TMJOIN ) != 0 ) retval . append ( "TMJOIN " ) ; if ( ( flags & XAResource . TMONEPHASE ) != 0 ) retval . append ( "TMONEPHASE " ) ; if ( ( flags & XAResource . TMRESUME ) != 0 ) retval . append ( "TMRESUME " ) ; if ( ( flags & XAResource . TMSTARTRSCAN ) != 0 ) retval . append ( "TMSTARTRSCAN " ) ; if ( ( flags & XAResource . TMSUCCESS ) != 0 ) retval . append ( "TMSUCCESS " ) ; if ( ( flags & XAResource . TMSUSPEND ) != 0 ) retval . append ( "TMSUSPEND " ) ; } retval . append ( ")" ) ; return retval . toString ( ) ; }
Feature SIB0048c . ms . 1