public class Database
extends java.lang.Object
| Constructor and Description |
|---|
Database() |
| 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) |
public boolean isConnected()
public static void connect()
public static void disconnect()
public static void storeHuman(Human h)
public static java.util.ArrayList<Human> getAllHumans()
public static void clearHumans()
public static void storeAllHumans(java.util.ArrayList<Human> humans)