Class AlterUser


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

      • type

        private int type
      • user

        private User user
      • newName

        private java.lang.String newName
      • admin

        private boolean admin
    • Constructor Detail

    • Method Detail

      • setType

        public void setType​(int type)
      • setNewName

        public void setNewName​(java.lang.String newName)
      • setUser

        public void setUser​(User user)
      • setAdmin

        public void setAdmin​(boolean admin)
      • 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