Code example for TransactionCoordinator

Methods: getTransactionContext

0
 
	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(); 
		}