Class SourceTriggerActionPlanner.SourceEventCommand

  • All Implemented Interfaces:
    Cloneable, LanguageObject
    Enclosing class:
    SourceTriggerActionPlanner

    public static class SourceTriggerActionPlanner.SourceEventCommand
    extends Command
    Represents a source event as a Command - is localized here as it's not directly callable by a user
    • Constructor Detail

      • SourceEventCommand

        public SourceEventCommand​(Table t,
                                  Object[] old,
                                  Object[] newValues,
                                  String[] columnNames)
    • Method Detail

      • 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
      • 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
      • getProjectedSymbols

        public List<Expression> 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
      • areResultsCachable

        public boolean areResultsCachable()
        Description copied from class: Command
        Whether the results are cachable.
        Specified by:
        areResultsCachable in class Command
        Returns:
        True if the results are cachable; false otherwise.
      • getTable

        public Table getTable()
      • getOldValues

        public Object[] getOldValues()
      • getNewValues

        public Object[] getNewValues()
      • getColumnNames

        public String[] getColumnNames()
      • 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