Code example for TransactionEnvironment

Methods: getTransactionFactory

0
	private TransactionCoordinator transactionCoordinator; 
	private PersistenceContext temporaryPersistenceContext = new StatefulPersistenceContext( this ); 
 
	StatelessSessionImpl(Connection connection, String tenantIdentifier, SessionFactoryImpl factory) { 
		super( factory, tenantIdentifier ); 
		this.transactionCoordinator = new TransactionCoordinatorImpl( connection, this ); 
	} 
 
	// TransactionContext ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
 
	@Override 
	public TransactionCoordinator getTransactionCoordinator() { 
		return transactionCoordinator; 
	} 
 
	@Override 
	public TransactionEnvironment getTransactionEnvironment() { 
		return factory.getTransactionEnvironment(); 
	}