public class User
extends java.lang.Object
Constructor and Description |
---|
User()
Creates an "empty" user.
|
User(java.lang.String fname,
java.lang.String lname,
java.sql.Date dob,
java.lang.String license,
java.lang.String username,
java.lang.String password)
Creates a user.
|
Modifier and Type | Method and Description |
---|---|
java.sql.Date |
getDOB()
Obtains user's date of birth.
|
java.lang.String |
getFirstName()
Obtains user's first name.
|
java.lang.String |
getLastName()
Obtains user's last name.
|
java.lang.String |
getLicense()
Obtains user's medical license.
|
java.lang.String |
getPassword()
Obtains password.
|
java.lang.String |
getUsername()
Obtains username.
|
void |
setDOB(java.sql.Date dob)
Assigns date of birth to user.
|
void |
setFirstName(java.lang.String fname)
Assigns first name to user.
|
void |
setLastName(java.lang.String lname)
Assigns last name to user.
|
void |
setLicense(java.lang.String license)
Assigns (medical) license to user.
|
void |
setPassword(java.lang.String password)
Assigns password to user.
|
void |
setUsername(java.lang.String username)
Assigns username to user.
|
public User()
public User(java.lang.String fname, java.lang.String lname, java.sql.Date dob, java.lang.String license, java.lang.String username, java.lang.String password)
fname
- First name.lname
- Last name.dob
- Date of birth.license
- License.username
- Username.password
- Password.public void setFirstName(java.lang.String fname)
fname
- First name to assign.public void setLastName(java.lang.String lname)
lname
- Last name to assign.public void setLicense(java.lang.String license)
license
- License to assign.public void setDOB(java.sql.Date dob)
dob
- Date of birth to assign.public void setUsername(java.lang.String username)
username
- Username to assign.public void setPassword(java.lang.String password)
password
- Password to assign.public java.lang.String getFirstName()
public java.lang.String getLastName()
public java.lang.String getLicense()
public java.sql.Date getDOB()
public java.lang.String getUsername()
public java.lang.String getPassword()