Class CreateRole


  • public class CreateRole
    extends DefineCommand
    This class represents the statement CREATE ROLE
    • Field Detail

      • roleName

        private java.lang.String roleName
      • ifNotExists

        private boolean ifNotExists
    • Constructor Detail

    • Method Detail

      • setIfNotExists

        public void setIfNotExists​(boolean ifNotExists)
      • setRoleName

        public void setRoleName​(java.lang.String name)
      • 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