Code example for SessionException

0
		return false; 
	} 
 
	public void managedClose() { 
		if ( isClosed() ) { 
			throw new SessionException( "Session was already closed!" ); 
		} 
		transactionCoordinator.close(); 
		setClosed(); 
	} 
 
	public void managedFlush() { 
		errorIfClosed(); 
		getTransactionCoordinator().getJdbcCoordinator().executeBatch(); 
	} 
 
	public boolean shouldAutoClose() { 
		return isAutoCloseSessionEnabled() && !isClosed(); 
	}