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

    Constructors
    Constructor Description
    Account()
    constructor of the class.
    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.
  • Method Summary

    Modifier and Type Method Description
    java.lang.String getEmail()
    method for get the email.
    java.lang.String getName()
    method for get the name.
    java.lang.String getPassword()
    method for get the password.
    java.lang.String getPhone()
    method for get the phone.
    int getRole()
    method for get the role.
    java.lang.String getSurname()
    method for get the surname.
    void setEmail​(java.lang.String newemail)
    method for set the email.
    void setName​(java.lang.String newname)
    method for set the name.
    void setPassword​(java.lang.String newpassword)
    method for set the password.
    void setPhone​(java.lang.String newphone)
    method for set the phone.
    void setRole​(int newrole)
    method for set the role.
    void setSurname​(java.lang.String newsurname)
    method for set the surname.
    java.lang.String toString()
    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 name
      newsurname - new surname
      newphone - new phone
      newemail - new email
      newpassword - new passowrd
      newrole - 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:
      toString in class java.lang.Object