uk.org.ury.backend.config
Class Database

java.lang.Object
  extended by uk.org.ury.backend.config.Database

public class Database
extends java.lang.Object

A Database Server configuration

Author:
Nathan Lasseter

Constructor Summary
Database(java.lang.String host, int port, java.lang.String db)
          Create a database object
 
Method Summary
 java.lang.String getDb()
          Get the name of the database
 java.lang.String getHost()
          Get the hostname of the database server
 int getPort()
          Get the port the database server is running on
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Database

public Database(java.lang.String host,
                int port,
                java.lang.String db)
Create a database object

Parameters:
host - The hostname of the database server
port - The port that the database server listens on
db - The name of the database on the server
Method Detail

getHost

public java.lang.String getHost()
Get the hostname of the database server

Returns:
String hostname

getPort

public int getPort()
Get the port the database server is running on

Returns:
int port

getDb

public java.lang.String getDb()
Get the name of the database

Returns:
String database name