@ Override public void setRollbackOnly ( ) throws IllegalStateException { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "setRollbackOnly (SPI)" ) ; final int state = _status . getState ( ) ; if ( state == TransactionState . STATE_NONE || state == TransactionState . STATE_COMMITTED || state == TransactionState . STATE_ROLLED_BACK ) { if ( tc . isEntryEnabled ( ) ) Tr . exit ( tc , "setRollbackOnly (SPI)" ) ; throw new IllegalStateException ( "No transaction available" ) ; } setRBO ( ) ; if ( tc . isEntryEnabled ( ) ) Tr . exit ( tc , "setRollbackOnly (SPI)" ) ; }
Modify the transaction such that the only possible outcome of the transaction is to rollback .