nxt.db

## Class TransactionalDb

- java.lang.Object
- - nxt.db.BasicDb
  - - nxt.db.TransactionalDb

-     public class TransactionalDb
      extends BasicDb

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class and Description
    --- | ---
    `static interface` | `TransactionalDb.TransactionCallback` Transaction callback interface

    - ### Nested classes/interfaces inherited from class nxt.db.BasicDb

      `BasicDb.DbProperties`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `TransactionalDb(BasicDb.DbProperties dbProperties)`

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `java.sql.Connection` | `beginTransaction()`
    `java.sql.Connection` | `beginTransaction(java.lang.String schema)`
    `static <V> V` | `callInDbTransaction(java.util.concurrent.Callable<V> callable)`
    `void` | `clearCache()`
    `void` | `commitTransaction()`
    `void` | `endTransaction()`
    `java.sql.Connection` | `getConnection(java.lang.String schema)`
    `boolean` | `isInTransaction()`
    `void` | `registerCallback(TransactionalDb.TransactionCallback callback)`
    `void` | `rollbackTransaction()`
    `static void` | `runInDbTransaction(java.lang.Runnable runnable)`

    - ### Methods inherited from class nxt.db.BasicDb

      `analyzeTables, getPooledConnection, getUrl, init, shutdown`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### TransactionalDb

          public TransactionalDb(BasicDb.DbProperties dbProperties)

  - ### Method Detail

    - #### callInDbTransaction

          public static <V> V callInDbTransaction(java.util.concurrent.Callable<V> callable)

    - #### runInDbTransaction

          public static void runInDbTransaction(java.lang.Runnable runnable)

    - #### getConnection

          public java.sql.Connection getConnection(java.lang.String schema)
                                            throws java.sql.SQLException

      Overrides:
        `getConnection` in class `BasicDb`
      Throws:
        `java.sql.SQLException`

    - #### isInTransaction

          public boolean isInTransaction()

    - #### beginTransaction

          public java.sql.Connection beginTransaction()

    - #### beginTransaction

          public java.sql.Connection beginTransaction(java.lang.String schema)

    - #### commitTransaction

          public void commitTransaction()

    - #### rollbackTransaction

          public void rollbackTransaction()

    - #### endTransaction

          public void endTransaction()

    - #### registerCallback

          public void registerCallback(TransactionalDb.TransactionCallback callback)

    - #### clearCache

          public void clearCache()