Class Delete

    • Constructor Detail

      • Delete

        public Delete()
        Constructs a default instance of this class.
      • Delete

        public Delete​(GroupSymbol group)
        Constructs an instance of this class given the group.
        group - Identifier of the group to delete data from.
      • Delete

        public Delete​(GroupSymbol group,
                      Criteria criteria)
        Constructs an instance of this class given the group and criteria.
        group - Identifier of the group to delete data from.
        criteria - The criteria specifying constraints on what data will be deleted.
    • Method Detail

      • setGroup

        public void setGroup​(GroupSymbol group)
        Set the group for this Delete command
        group - Group to be associated with this command
      • setCriteria

        public void setCriteria​(Criteria criteria)
        Set the criteria for this Delete command
        Specified by:
        setCriteria in interface FilteredCommand
        criteria - Criteria to be associated with this command
      • acceptVisitor

        public void acceptVisitor​(LanguageVisitor visitor)
        Description copied from interface: LanguageObject
        Method for accepting a visitor. It is the responsibility of the language object to call back on the visitor.
        Specified by:
        acceptVisitor in interface LanguageObject
        visitor - Visitor being used
      • hashCode

        public int hashCode()
        Get hashcode for command. WARNING: This hash code relies on the hash codes of the Group and Criteria clause. If the command changes, it's hash code will change and it can be lost from collections. Hash code is only valid after the command has been completely constructed.
        hashCode in class Object
      • toString

        public String toString()
        Returns a string representation of an instance of this class.
        toString in class Command
        Command in string form
      • equals

        public boolean equals​(Object obj)
        Compare two commands for equality. Will only evaluate to equal if they are IDENTICAL: group is the same, criteria are in the same exact structure.
        equals in class Object
      • clone

        public Object clone()
        Return a copy of this Delete.
        Specified by:
        clone in interface LanguageObject
        Specified by:
        clone in class Command
        Deep clone of this object
      • getProjectedSymbols

        public List getProjectedSymbols()
        Get the ordered list of all elements returned by this query. These elements may be ElementSymbols or ExpressionSymbols but in all cases each represents a single column.
        Specified by:
        getProjectedSymbols in class Command
        Ordered list of SingleElementSymbol