/** * INTERNAL: * This is internal to the uow, transactions should not be used explicitly in a uow. * The uow shares its parents transactions. */ public void commitTransaction() throws DatabaseException { if (this.shouldTerminateTransaction || getParent().getTransactionMutex().isNested()){ super.commitTransaction(); } }
/** * INTERNAL: * This is internal to the uow, transactions should not be used explicitly in a uow. * The uow shares its parents transactions. */ public void commitTransaction() throws DatabaseException { if (this.shouldTerminateTransaction || getParent().getTransactionMutex().isNested()) { super.commitTransaction(); } }
/** * INTERNAL: * This is internal to the uow, transactions should not be used explicitly in a uow. * The uow shares its parents transactions. */ public void commitTransaction() throws DatabaseException { if (this.shouldTerminateTransaction || getParent().getTransactionMutex().isNested()) { super.commitTransaction(); } }
/** * INTERNAL: * This is internal to the uow, transactions should not be used explicitly in a uow. * The uow shares its parents transactions. */ public void rollbackTransaction() throws DatabaseException { if (this.shouldTerminateTransaction || getParent().getTransactionMutex().isNested()){ super.rollbackTransaction(); }else{ //rollback called which means txn failed. //but rollback was stopped by entitytransaction which means the //transaction will want to call release later. Make sure release //will rollback transaction. setWasTransactionBegunPrematurely(true); } } /**
/** * INTERNAL: * This is internal to the uow, transactions should not be used explicitly in a uow. * The uow shares its parents transactions. */ public void rollbackTransaction() throws DatabaseException { if (this.shouldTerminateTransaction || getParent().getTransactionMutex().isNested()){ super.rollbackTransaction(); }else{ //rollback called which means txn failed. //but rollback was stopped by entitytransaction which means the //transaction will want to call release later. Make sure release //will rollback transaction. setWasTransactionBegunPrematurely(true); } } /**
/** * INTERNAL: * This is internal to the uow, transactions should not be used explicitly in a uow. * The uow shares its parents transactions. */ public void rollbackTransaction() throws DatabaseException { if (this.shouldTerminateTransaction || getParent().getTransactionMutex().isNested()){ super.rollbackTransaction(); }else{ //rollback called which means txn failed. //but rollback was stopped by entitytransaction which means the //transaction will want to call release later. Make sure release //will rollback transaction. setWasTransactionBegunPrematurely(true); } } /**
if (!mutex.isNested()) { if (this.eventManager != null) { this.eventManager.preBeginTransaction();
if (!mutex.isNested()) { if (this.eventManager != null) { this.eventManager.preBeginTransaction();
ConcurrencyManager mutex = getTransactionMutex(); if (!mutex.isNested()) { if (this.eventManager != null) { this.eventManager.preCommitTransaction();
ConcurrencyManager mutex = getTransactionMutex(); if (!mutex.isNested()) { if (this.eventManager != null) { this.eventManager.preCommitTransaction();
if (!mutex.isNested()) { if (this.eventManager != null) { this.eventManager.preRollbackTransaction();
if (!mutex.isNested()) { if (this.eventManager != null) { this.eventManager.preRollbackTransaction();
if (!getTransactionMutex().isNested()) { if (this.eventManager != null) { this.eventManager.preRollbackTransaction();
if (!getTransactionMutex().isNested()) { if (this.eventManager != null) { this.eventManager.preBeginTransaction();
if (!getTransactionMutex().isNested()) { if (this.eventManager != null) { this.eventManager.preCommitTransaction();