Class AlterUser


public class AlterUser extends DefineCommand
This class represents the statements ALTER USER ADMIN, ALTER USER RENAME, ALTER USER SET PASSWORD
  • Field Details

    • type

      private int type
    • user

      private User user
    • newName

      private String newName
    • password

      private Expression password
    • salt

      private Expression salt
    • hash

      private Expression hash
    • admin

      private boolean admin
  • Constructor Details

  • Method Details

    • setType

      public void setType(int type)
    • setNewName

      public void setNewName(String newName)
    • setUser

      public void setUser(User user)
    • setAdmin

      public void setAdmin(boolean admin)
    • setSalt

      public void setSalt(Expression e)
    • setHash

      public void setHash(Expression e)
    • setPassword

      public void setPassword(Expression password)
    • update

      public long update()
      Description copied from class: Prepared
      Execute the statement.
      Overrides:
      update in class Prepared
      Returns:
      the update count
    • getType

      public int getType()
      Description copied from class: Prepared
      Get the command type as defined in CommandInterface
      Specified by:
      getType in class Prepared
      Returns:
      the statement type