Hibernate ORM TransactionEnvironment - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Hibernate ORM TransactionEnvironment class.

This code example shows how to use the following methods:getSessionFactory
		return currentBatch; 
	} 
 
	@Override 
	public void abortBatch() { 
		if ( currentBatch != null ) { 
			currentBatch.release(); 
		} 
	} 
 
	private transient StatementPreparer statementPreparer; 
 
	@Override 
	public StatementPreparer getStatementPreparer() { 
		if ( statementPreparer == null ) { 
			statementPreparer = new StatementPreparerImpl( this ); 
		} 
		return statementPreparer; 
	} 
 
4
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:getTransactionFactory
	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(); 
	} 
 
3
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
See Code Examples for Hibernate ORM TransactionEnvironment Methods: