public class HBConnectionHolder
extends java.lang.Object Session and current transaction. Instance of this class is used to store connection information in RPCManager while handling Automatic Transactions.| Modifier and Type | Method and Description | 
|---|---|
| int | getOpCount()Returns count of operations executed. | 
| org.hibernate.Session | getSession()Returns  Sessionfor this connection. | 
| org.hibernate.Transaction | getTransaction()Returns current open transaction. | 
| void | increaseOpCount()Increases operations count by 1. | 
| void | setSession(org.hibernate.Session em)Sets new  Session. | 
| void | setTransaction(org.hibernate.Transaction tx)Sets new transaction. | 
public org.hibernate.Session getSession()
Session for this connection.Session for this connection.public void setSession(org.hibernate.Session em)
Session.em - Session new session.public org.hibernate.Transaction getTransaction()
Transaction current transaction.public void setTransaction(org.hibernate.Transaction tx)
tx - Transaction new transaction.public int getOpCount()
int executed operations count.public void increaseOpCount()