Code example for TransactionEnvironment

Methods: getJdbcServices

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(); 
		} 
Stop searching for code, let great code find you!  Add Codota to your java IDE