Methods Summary |
---|
public javax.persistence.EntityTransaction | getTransaction()Lazy initialize the EntityTransaction.
There can only be one EntityTransaction at a time.
if (entityTransaction == null){
entityTransaction = new EntityTransactionImpl(this);
}
return (EntityTransaction)entityTransaction;
|
public void | setRollbackOnlyInternal()Mark the current transaction so that the only possible
outcome of the transaction is for the transaction to be
rolled back.
This is an internal method and if the txn is not active will do nothing
if (this.getTransaction().isActive()){
this.getTransaction().setRollbackOnly();
}
|
protected void | throwCheckTransactionFailedException()
throw new TransactionRequiredException(TransactionException.transactionNotActive().getMessage());
|