private void checkIntegrity() throws HeuristicMixedException, HeuristicRollbackException, RollbackException
{
// Spec defined checks for the transaction in a valid state
checkBeforeStatus();
TransactionIntegrity integrity = TxManager.getInstance().getTransactionIntegrity();
if (integrity != null)
{
// Extra integrity checks
unlock();
try
{
integrity.checkTransactionIntegrity(this);
}
finally
{
lock();
}