Class BatchedUpdateCommand

  • All Implemented Interfaces:
    Cloneable, LanguageObject

    public class BatchedUpdateCommand
    extends Command
    Represents a batch of INSERT, UPDATE, DELETE, and SELECT INTO commands
    Since:
    4.2
    • Constructor Detail

      • BatchedUpdateCommand

        public BatchedUpdateCommand​(List<? extends Command> updateCommands)
        Parameters:
        updateCommands -
        Since:
        4.2
      • BatchedUpdateCommand

        public BatchedUpdateCommand​(List<? extends Command> updateCommands,
                                    boolean singleResult)
    • Method Detail

      • getUpdateCommands

        public List<Command> getUpdateCommands()
        Gets the List of updates contained in this batch
        Returns:
        Since:
        4.2
      • getType

        public int getType()
        Description copied from class: Command
        Return type of command to make it easier to build switch statements by command type.
        Specified by:
        getType in class Command
        Returns:
        Type from TYPE constants
        Since:
        4.2
        See Also:
        Command.getType()
      • getProjectedSymbols

        public List getProjectedSymbols()
        Description copied from class: Command
        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
        Returns:
        Ordered list of SingleElementSymbol
        Since:
        4.2
        See Also:
        Command.getProjectedSymbols()
      • 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.
        Parameters:
        visitor - Visitor being used
        Since:
        4.2
      • toString

        public String toString()
        Description copied from class: Command
        Returns a string representation of an instance of this class.
        Overrides:
        toString in class Command
        Returns:
        String representation of object
      • setVariableContexts

        public void setVariableContexts​(List<VariableContext> variableContexts)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • setSingleResult

        public void setSingleResult​(boolean singleResult)
      • isSingleResult

        public boolean isSingleResult()
      • getStringForm

        public String getStringForm​(boolean full)