org.apache.ode.il.dbutil

## Class Database

- java.lang.Object
- - org.apache.ode.il.dbutil.Database

-     public class Database
      extends java.lang.Object

  Does the dirty work of setting up / obtaining a DataSource based on the configuration in the `OdeConfigProperties` object.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `Database(OdeConfigProperties props)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `BpelDAOConnectionFactoryJDBC` | `createDaoCF()`
    `javax.sql.DataSource` | `getDataSource()`
    `void` | `setTransactionManager(javax.transaction.TransactionManager txm)`
    `void` | `setWorkRoot(java.io.File workRoot)`
    `void` | `shutdown()`
    `void` | `start()`

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

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

- - ### Constructor Detail

    - #### Database

          public Database(OdeConfigProperties props)

  - ### Method Detail

    - #### setWorkRoot

          public void setWorkRoot(java.io.File workRoot)

    - #### setTransactionManager

          public void setTransactionManager(javax.transaction.TransactionManager txm)

    - #### start

          public void start()
                     throws DatabaseConfigException

      Throws:
        `DatabaseConfigException`

    - #### shutdown

          public void shutdown()

    - #### getDataSource

          public javax.sql.DataSource getDataSource()

    - #### createDaoCF

          public BpelDAOConnectionFactoryJDBC createDaoCF()
                                                   throws DatabaseConfigException

      Throws:
        `DatabaseConfigException`