Best code examples for Hibernate ORM TransactionCoordinator class (org.hibernate.engine.transaction.spi.TransactionCoordinator)

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Hibernate ORM TransactionCoordinator class.
You can now enable Codota on your own code to easily search and navigate your Java codebase.

Hibernate ORM TransactionCoordinator examples from Open Source projects
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(); 
		} 
Full Snippet Info
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 ); 
Full Snippet Info
4
CodeRank
See Code Examples for Hibernate ORM TransactionCoordinator Methods: