getRollbackOnly() - JPA EntityTransaction's method

Method
javax.persistence.EntityTransaction
boolean getRollbackOnly()

Determine whether the current resource transaction has been marked for rollback.
Returns:
boolean indicating whether the transaction has been marked for rollback
Throws:
IllegalStateException - if isActive() is false
Since:
JPA 1.0