|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectensemble.User
public class User
This class holds information representing a single user.
Constructor Summary | |
---|---|
User(java.lang.String name,
java.lang.String password,
boolean excluded)
Creates a new user object with the given name and password. |
Method Summary | |
---|---|
java.lang.String |
getName()
The username of the user. |
java.lang.String |
getPassword()
The password of the user. |
boolean |
isExcluded()
Determines if predictions submitted by the user should be excluded from ensembles. |
static void |
setDb(DatabaseBean db)
Sets the static data member that gives the class access to the database. |
void |
setExcluded(boolean excluded)
Sets the flag indicating whether predictions submitted by the user should be excluded from ensembles. |
void |
setPassword(java.lang.String password)
Sets the password of the user. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public User(java.lang.String name, java.lang.String password, boolean excluded)
name
- The new user's namepassword
- The new user's passwordMethod Detail |
---|
public java.lang.String getName()
public java.lang.String getPassword()
public void setPassword(java.lang.String password)
public boolean isExcluded()
public void setExcluded(boolean excluded) throws java.sql.SQLException, java.io.IOException
excluded
- True to exclude the user's predictions, else false
java.sql.SQLException
java.io.IOException
public static void setDb(DatabaseBean db)
db
- The databaseBean for the application
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |