final void localTransactionStarted ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isEntryEnabled ( ) ) { SibTr . entry ( this , TRACE , "localTransactionStarted" ) ; } final ConnectionEvent event = new ConnectionEvent ( this , ConnectionEvent . LOCAL_TRANSACTION_STARTED ) ; // Copy list to protect against concurrent modification by listener final List < ConnectionEventListener > copy ; synchronized ( _connectionListeners ) { copy = new ArrayList < ConnectionEventListener > ( _connectionListeners ) ; } for ( final Iterator iterator = copy . iterator ( ) ; iterator . hasNext ( ) ; ) { final Object object = iterator . next ( ) ; if ( object instanceof ConnectionEventListener ) { ( ( ConnectionEventListener ) object ) . localTransactionStarted ( event ) ; } } if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isEntryEnabled ( ) ) { SibTr . exit ( this , TRACE , "localTransactionStarted" ) ; } }
Called to indicate that the session associated with this managed connection has begun a local transaction . Notifies the connection event listeners .