protected void zSetData ( MithraDataObject data ) { this . currentData = data ; this . persistenceState = PersistenceState . PERSISTED ; MithraTransaction currentTransaction = MithraManagerProvider . getMithraManager ( ) . getCurrentTransaction ( ) ; if ( currentTransaction != null && zGetPortal ( ) . getTxParticipationMode ( currentTransaction ) . mustParticipateInTxOnRead ( ) ) { this . transactionalState = currentTransaction . getReadLockedTransactionalState ( null , PersistenceState . PERSISTED ) ; } }
also called after constructing a new object for remote insert non - persistent copy and detached copy