ObjectDB ObjectDB

isTransactional(pc) - JDO StateManager's method

Method
javax.jdo.spi.StateManager
boolean isTransactional(
  PersistenceCapable pc
)

Tests whether this object is transactional. Instances that respect transaction boundaries return true. These instances include transient instances made transactional as a result of being the target of a makeTransactional method call; newly made persistent or deleted persistent instances; persistent instances read in data store transactions; and persistent instances modified in optimistic transactions.

Transient nontransactional instances return false.

Parameters:
pc - the calling PersistenceCapable instance
Returns:
true if this instance is transactional.
Since:
JDO 1.0