Class Account
java.lang.Object
it.unisa.c03.myPersonalTrainer.account.bean.Account
- All Implemented Interfaces:
java.io.Serializable
public class Account
extends java.lang.Object
implements java.io.Serializable
account class.
- See Also:
- Serialized Form
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description java.lang.StringgetEmail()method for get the email.java.lang.StringgetName()method for get the name.java.lang.StringgetPassword()method for get the password.java.lang.StringgetPhone()method for get the phone.intgetRole()method for get the role.java.lang.StringgetSurname()method for get the surname.voidsetEmail(java.lang.String newemail)method for set the email.voidsetName(java.lang.String newname)method for set the name.voidsetPassword(java.lang.String newpassword)method for set the password.voidsetPhone(java.lang.String newphone)method for set the phone.voidsetRole(int newrole)method for set the role.voidsetSurname(java.lang.String newsurname)method for set the surname.java.lang.StringtoString()method to string, to view the information during a stamp.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
Account
public Account()constructor of the class. -
Account
public Account(java.lang.String newname, java.lang.String newsurname, java.lang.String newphone, java.lang.String newemail, java.lang.String newpassword, int newrole)param costructor.- Parameters:
newname- new namenewsurname- new surnamenewphone- new phonenewemail- new emailnewpassword- new passowrdnewrole- new role
-
-
Method Details
-
getName
public java.lang.String getName()method for get the name.- Returns:
- name of the user
-
setName
public void setName(java.lang.String newname)method for set the name.- Parameters:
newname- name
-
getSurname
public java.lang.String getSurname()method for get the surname.- Returns:
- surname of account
-
setSurname
public void setSurname(java.lang.String newsurname)method for set the surname.- Parameters:
newsurname- new surname
-
getPhone
public java.lang.String getPhone()method for get the phone.- Returns:
- phone phone
-
setPhone
public void setPhone(java.lang.String newphone)method for set the phone.- Parameters:
newphone- phone
-
getEmail
public java.lang.String getEmail()method for get the email.- Returns:
- the email
-
setEmail
public void setEmail(java.lang.String newemail)method for set the email.- Parameters:
newemail- email
-
getPassword
public java.lang.String getPassword()method for get the password.- Returns:
- the password
-
setPassword
public void setPassword(java.lang.String newpassword)method for set the password.- Parameters:
newpassword- password
-
getRole
public int getRole()method for get the role.- Returns:
- role
-
setRole
public void setRole(int newrole)method for set the role.- Parameters:
newrole- role
-
toString
public java.lang.String toString()method to string, to view the information during a stamp.- Overrides:
toStringin classjava.lang.Object
-