Package Models

Class User

java.lang.Object
Models.User

public class User extends Object
A class representing the User object
  • Constructor Details

    • User

      public User(int userId, String username, String password, LocalDateTime createDate, String createdBy, LocalDateTime lastUpdate, String lastUpdateBy)
      Constructor method for the User object
      Parameters:
      userId - the integer value of the userId to be set on the User object
      username - the username string value to be set on the User object
      password - the password string value to be set on the User object
      createDate - the createDate LocalDateTime value to be set on the User object
      createdBy - the createdBy string value to be set on the User object
      lastUpdate - the lastUpdate LocalDateTime value to be set on the User object
      lastUpdateBy - the lastUpdateBy string value to be set on the User object
  • Method Details

    • getUserId

      public int getUserId()
      Returns:
      userId integer value on the User object
    • getUsername

      public String getUsername()
      Returns:
      the username stringValue on the User object
    • getPassword

      public String getPassword()
      Returns:
      the password string value on the User object
    • getCreateDate

      public LocalDateTime getCreateDate()
      Returns:
      the createDate LocalDateTime value on the User object
    • getCreatedBy

      public String getCreatedBy()
      Returns:
      the createdBy string value on the User object
    • getLastUpdate

      public LocalDateTime getLastUpdate()
      Returns:
      the lastUpdate LocalDateTime value on the User object
    • getLastUpdateBy

      public String getLastUpdateBy()
      Returns:
      the lastUpdateBy string value on the User object
    • setUserId

      public void setUserId(int userId)
      Parameters:
      userId - : the integer value of the userId to be set on the User object
    • setUsername

      public void setUsername(String username)
      Parameters:
      username - the username string value to be set on the User object
    • setPassword

      public void setPassword(String password)
      Parameters:
      password - the password string value to be set on the User object
    • setCreateDate

      public void setCreateDate(LocalDateTime createDate)
      Parameters:
      createDate - the createDate LocalDateTime value to be set on the User object
    • setCreatedBy

      public void setCreatedBy(String createdBy)
      Parameters:
      createdBy - the createdBy string value to be set on the User object
    • setLastUpdate

      public void setLastUpdate(LocalDateTime lastUpdate)
      Parameters:
      lastUpdate - the lastUpdate LocalDateTime value to be set on the User object
    • setLastUpdateBy

      public void setLastUpdateBy(String lastUpdateBy)
      Parameters:
      lastUpdateBy - the lastUpdateBy string value to be set on the User object
    • toString

      public String toString()
      Overrides:
      toString in class Object
      Returns:
      Stringified user details