com.isomorphic.hibernate

## Class HBConnectionHolder

- java.lang.Object
- - com.isomorphic.hibernate.HBConnectionHolder

-     public class HBConnectionHolder
      extends java.lang.Object

  Holds `Session` and current transaction. Instance of this class is used to store connection information in `RPCManager` while handling Automatic Transactions.

- - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `getOpCount()` Returns count of operations executed.
    `org.hibernate.Session` | `getSession()` Returns `Session` for 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.

- - ### Method Detail

    - #### getSession

          public org.hibernate.Session getSession()

      Returns `Session` for this connection.
      Returns:
        `Session` for this connection.

    - #### setSession

          public void setSession(org.hibernate.Session em)

      Sets new `Session`.
      Parameters:
        `em` - `Session` new session.

    - #### getTransaction

          public org.hibernate.Transaction getTransaction()

      Returns current open transaction.
      Returns:
        `Transaction` current transaction.

    - #### setTransaction

          public void setTransaction(org.hibernate.Transaction tx)

      Sets new transaction.
      Parameters:
        `tx` - `Transaction` new transaction.

    - #### getOpCount

          public int getOpCount()

      Returns count of operations executed.
      Returns:
        `int` executed operations count.

    - #### increaseOpCount

          public void increaseOpCount()

      Increases operations count by 1.