public ExternalAutoCommitTransaction createAutoCommitTransaction ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "createAutoCommitTransaction" ) ; ExternalAutoCommitTransaction instance = new MSAutoCommitTransaction ( _ms , _persistence , getMaximumTransactionSize ( ) ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "createAutoCommitTransaction" , "return=" + instance ) ; return instance ; }
This method returns an object that represents a zero - phase or AutoCommit transaction . It can be used to ensure that a piece of work is carried out at once essentially outside of a transaction coordination scope .