Package com.ehealthsystem.admin
Class UserTableView
java.lang.Object
com.ehealthsystem.admin.UserTableView
The class represents a user and is needed when wanting to store a user in an observable.
-
Field Summary
Modifier and TypeFieldDescriptionprivate javafx.beans.property.SimpleStringProperty
private javafx.beans.property.SimpleStringProperty
All the attributes a user can have.private javafx.beans.property.SimpleStringProperty
All the attributes a user can have.private javafx.beans.property.SimpleStringProperty
All the attributes a user can have.private javafx.beans.property.SimpleStringProperty
All the attributes a user can have.private javafx.beans.property.SimpleStringProperty
private javafx.beans.property.SimpleStringProperty
All the attributes a user can have.private javafx.beans.property.SimpleStringProperty
private javafx.beans.property.SimpleBooleanProperty
private javafx.beans.property.SimpleStringProperty
All the attributes a user can have.private javafx.beans.property.SimpleStringProperty
All the attributes a user can have.private javafx.beans.property.SimpleStringProperty
-
Constructor Summary
ConstructorDescriptionUserTableView
(String username, String email, String firstName, String lastName, String birthDate, String gender, String street, String houseNo, String zipCode, String insuranceName, Boolean privateInsurance, String password) Construtor for initalizing all the values of a user. -
Method Summary
Modifier and TypeMethodDescriptionReturns the birthday of a user.getEmail()
Returns the E-mail of a user.Returns the first name of a user.Returns the gender of a user.Returns the house no. of a users home.Returns the insurance name of a user.Returns the last name of a user.Returns the hashed password of a user.Returns the insurance type of a user.Returns the street where a user lives.Returns the username of a user.Returns the zip code of a users home.void
setBirthDate
(String birthDate) set the value of the private attribute birthDate.void
set the value of the private attribute email.void
setFirstName
(String firstName) set the value of the private attribute firstName.void
set the value of the private attribute gender.void
setHouseNo
(String houseNo) set the value of the private attribute houseNo.void
setInsuranceName
(String insuranceName) set the value of the private attribute insuranceName.void
setLastName
(String lastName) set the value of the private attribute lastName.void
setPassword
(String password) set the value of the private attribute password.void
setPrivateInsurance
(Boolean privateInsurance) set the value of the private attribute privateInsurance.void
set the value of the private attribute street.void
setUsername
(String username) set the value of the private attribute username.void
setZipCode
(String zipCode) set the value of the private attribute zipCode.
-
Field Details
-
username
private javafx.beans.property.SimpleStringProperty usernameAll the attributes a user can have. -
email
private javafx.beans.property.SimpleStringProperty emailAll the attributes a user can have. -
firstName
private javafx.beans.property.SimpleStringProperty firstNameAll the attributes a user can have. -
lastName
private javafx.beans.property.SimpleStringProperty lastNameAll the attributes a user can have. -
street
private javafx.beans.property.SimpleStringProperty streetAll the attributes a user can have. -
houseNo
private javafx.beans.property.SimpleStringProperty houseNoAll the attributes a user can have. -
gender
private javafx.beans.property.SimpleStringProperty genderAll the attributes a user can have. -
zipCode
private javafx.beans.property.SimpleStringProperty zipCode -
birthDate
private javafx.beans.property.SimpleStringProperty birthDate -
insuranceName
private javafx.beans.property.SimpleStringProperty insuranceName -
privateInsurance
private javafx.beans.property.SimpleBooleanProperty privateInsurance -
password
private javafx.beans.property.SimpleStringProperty password
-
-
Constructor Details
-
UserTableView
public UserTableView(String username, String email, String firstName, String lastName, String birthDate, String gender, String street, String houseNo, String zipCode, String insuranceName, Boolean privateInsurance, String password) Construtor for initalizing all the values of a user.- Parameters:
username
- the username of the logged in user that is set.email
- the email of the logged in user that is set.firstName
- the first name of the logged in user that is set.lastName
- the last name of the logged in user that is set.birthDate
- the birthday of the logged in user that is set.gender
- the gender of the logged in user that is set.street
- the street of the logged in user that is set.houseNo
- the houseNo of the logged in user that is set.zipCode
- the zip code of the logged in user that is set.insuranceName
- the insurance name of the logged in user that is set.privateInsurance
- the insurance type of the logged in user that is set.password
- the hashed password of the logged in user that is set.
-
-
Method Details
-
setUsername
set the value of the private attribute username.- Parameters:
username
- the username of a user.
-
setEmail
set the value of the private attribute email.- Parameters:
email
- the email address of a user.
-
setFirstName
set the value of the private attribute firstName.- Parameters:
firstName
- the first name of a user.
-
setLastName
set the value of the private attribute lastName.- Parameters:
lastName
- the last name of a user.
-
setBirthDate
set the value of the private attribute birthDate.- Parameters:
birthDate
- the birthday of a user.
-
setGender
set the value of the private attribute gender.- Parameters:
gender
- the users gender.
-
setStreet
set the value of the private attribute street.- Parameters:
street
- the street the user lives in.
-
setHouseNo
set the value of the private attribute houseNo.- Parameters:
houseNo
- the house number of the users home.
-
setZipCode
set the value of the private attribute zipCode.- Parameters:
zipCode
- the zip code of the users home.
-
setInsuranceName
set the value of the private attribute insuranceName.- Parameters:
insuranceName
- the insurance of the user.
-
setPrivateInsurance
set the value of the private attribute privateInsurance.- Parameters:
privateInsurance
- the users insurance type.
-
setPassword
set the value of the private attribute password.- Parameters:
password
- the users password in plain-text.- Throws:
SQLException
-
getUsername
Returns the username of a user.- Returns:
- The username as a String.
-
getEmail
Returns the E-mail of a user.- Returns:
- The E-mail as a String.
-
getFirstName
Returns the first name of a user.- Returns:
- The first name as a String.
-
getLastName
Returns the last name of a user.- Returns:
- The last name as a String.
-
getBirthDate
Returns the birthday of a user.- Returns:
- The birthday as a String.
-
getGender
Returns the gender of a user.- Returns:
- The gender as a String.
-
getStreet
Returns the street where a user lives.- Returns:
- The street as a String.
-
getHouseNo
Returns the house no. of a users home.- Returns:
- The house no. as a String.
-
getZipCode
Returns the zip code of a users home.- Returns:
- The zip code as a String.
-
getInsuranceName
Returns the insurance name of a user.- Returns:
- The insurance name as a String.
-
getPrivateInsurance
Returns the insurance type of a user.- Returns:
- The insurance type as a Boolean (false = public, true = private).
-
getPassword
Returns the hashed password of a user.- Returns:
- The password as a String.
-