db

## Class Database

- java.lang.Object
- - db.Database

-     public class Database
      extends java.lang.Object

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `Database()`

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static void` | `clearHumans()`
    `static void` | `connect()`
    `static void` | `disconnect()`
    `static java.util.ArrayList<Human>` | `getAllHumans()`
    `boolean` | `isConnected()` Check whether there is a connection to the DB.
    `static void` | `storeAllHumans(java.util.ArrayList<Human> humans)`
    `static void` | `storeHuman(Human h)`

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

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

- - ### Constructor Detail

    - #### Database

          public Database()

  - ### Method Detail

    - #### isConnected

          public boolean isConnected()

      Check whether there is a connection to the DB.
      Returns:
        a boolean. True if there is a connection

    - #### connect

          public static void connect()

    - #### disconnect

          public static void disconnect()

    - #### storeHuman

          public static void storeHuman(Human h)

    - #### getAllHumans

          public static java.util.ArrayList<Human> getAllHumans()

    - #### clearHumans

          public static void clearHumans()

    - #### storeAllHumans

          public static void storeAllHumans(java.util.ArrayList<Human> humans)