diff options
author | Matt Windsor <mbw500@student.cs.york.ac.uk> | 2011-02-20 23:49:42 +0000 |
---|---|---|
committer | Matt Windsor <mbw500@student.cs.york.ac.uk> | 2011-02-20 23:49:42 +0000 |
commit | cd972012ab8c40b66bd65f78bbf9e3422413b1aa (patch) | |
tree | 726aa9cefa80fc4a2f3922ed6e05cf0074421a6d /src/uk/org/ury/config/Database.java | |
parent | e2fc92f5c42dde942e8b71d38b9745b6f3c98053 (diff) | |
parent | f89ef9ed36e8185f53c7d5f22f91935e2c4ccaa0 (diff) |
Merge. DatabaseLogin over. Auth = Very Yes.
Diffstat (limited to 'src/uk/org/ury/config/Database.java')
-rw-r--r-- | src/uk/org/ury/config/Database.java | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/uk/org/ury/config/Database.java b/src/uk/org/ury/config/Database.java index c1074df..19fe9bc 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 Lasseter + */ 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; |