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(); 
		} 
Full Snippet Info
4
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
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
Contextual code suggestions in your IDE  Get Codota for Java
See Code Examples for Hibernate ORM TransactionCoordinator Methods: