+
+ public boolean wantsDirectoryListing() throws SQLException {
+ PreparedStatement get = DatabaseConnection.getInstance().prepare("SELECT listme FROM users WHERE id=?");
+ get.setInt(1, getId());
+ ResultSet exec = get.executeQuery();
+ exec.next();
+ return exec.getBoolean("listme");
+ }
+
+ public String getContactInformation() throws SQLException {
+ PreparedStatement get = DatabaseConnection.getInstance().prepare("SELECT contactinfo FROM users WHERE id=?");
+ get.setInt(1, getId());
+ ResultSet exec = get.executeQuery();
+ exec.next();
+ return exec.getString("contactinfo");
+ }