Hibernate ORM TransactionCoordinator - 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 TransactionCoordinator class.

This code example shows how to use the following methods:getTransactionContext
 
	private int flushDepth = 0; 
 
	@Override 
	public void flushBeginning() { 
		if ( flushDepth == 0 ) { 
			logicalConnection.disableReleases(); 
		} 
		flushDepth++; 
	} 
 
	@Override 
	public void flushEnding() { 
		flushDepth--; 
		if ( flushDepth < 0 ) { 
			throw new HibernateException( "Mismatched flush handling" ); 
		} 
		if ( flushDepth == 0 ) { 
			logicalConnection.enableReleases(); 
		} 
4
CodeRank
This code example shows how to use the following methods:afterNonTransactionalQuery, isTransactionInProgress
			success = true; 
		} 
		finally { 
			afterOperation(success); 
		} 
		temporaryPersistenceContext.clear(); 
		return results; 
	} 
 
	public ScrollableResults scrollCustomQuery(CustomQuery customQuery, QueryParameters queryParameters) 
	throws HibernateException { 
		errorIfClosed(); 
		CustomLoader loader = new CustomLoader( customQuery, getFactory() ); 
		return loader.scroll( queryParameters, this ); 
	} 
 
	public ScrollableResults scroll(String query, QueryParameters queryParameters) throws HibernateException { 
		errorIfClosed(); 
		HQLQueryPlan plan = getHQLQueryPlan( query, false ); 
		return plan.performScroll( queryParameters, this ); 
4
CodeRank
See Code Examples for Hibernate ORM TransactionCoordinator Methods: