From 1873252f1ec11794092dcaedaed477afc0572da7 Mon Sep 17 00:00:00 2001 From: Nathan Lasseter Date: Sun, 20 Feb 2011 14:23:52 +0000 Subject: Comment, comment, comment! Shout at me if i dont comment. I tend not to. --- src/uk/org/ury/config/Database.java | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'src/uk/org/ury/config/Database.java') diff --git a/src/uk/org/ury/config/Database.java b/src/uk/org/ury/config/Database.java index c1074df..a82f775 100644 --- a/src/uk/org/ury/config/Database.java +++ b/src/uk/org/ury/config/Database.java @@ -1,15 +1,41 @@ package uk.org.ury.config; +/** + * A Database Server configuration + * + * @author Nathan + */ public class Database { private String host; private int port; private String db; + /** + * Get the hostname of the database server + * + * @return String hostname + */ public String getHost() { return host; } + /** + * Get the port the database server is running on + * + * @return int port + */ public int getPort() { return port; } + /** + * Get the name of the database + * + * @return String database name + */ public String getDb() { return db; } + /** + * Create a database object + * @param host The hostname of the database server + * @param port The port that the database server listens on + * @param db The name of the database on the server + */ public Database(String host, int port, String db) { this.host = host; this.port = port; -- cgit v1.2.3