public LifeCycleState transitionWriteField(StateManager sm)
{
Transaction tx = sm.getObjectManager().getTransaction();
if (!tx.isActive() && !tx.getNontransactionalWrite())
{
throw new TransactionNotWritableException(LOCALISER.msg("027001"), sm.getInternalObjectId());
}
return changeState(sm, tx.isActive() ? P_DIRTY : P_NONTRANS);
}