Class InsertStatement

All Implemented Interfaces:
antlr.collections.AST, Serializable, DisplayableNode, InitializeableNode, Statement

public class InsertStatement extends AbstractStatement
Defines a top-level AST node representing an HQL "insert select" statement.
See Also:
  • Constructor Details

    • InsertStatement

      public InsertStatement()
  • Method Details

    • getStatementType

      public int getStatementType()
      Description copied from interface: Statement
      Return the main token type representing the type of this statement.
      Returns:
      The corresponding token type.
      See Also:
    • needsExecutor

      public boolean needsExecutor()
      Description copied from interface: Statement
      Does this statement require the StatementExecutor?

      Essentially, at the JDBC level, does this require an executeUpdate()?
      Returns:
      True if this statement should be handed off to the StatementExecutor to be executed; false otherwise.
      See Also:
    • validate

      public void validate() throws QueryException
      Performs detailed semantic validation on this insert statement tree.
      Throws:
      QueryException - Indicates validation failure.
    • getIntoClause

      public IntoClause getIntoClause()
      Retreive this insert statement's into-clause.
      Returns:
      The into-clause
    • getSelectClause

      public SelectClause getSelectClause()
      Retreive this insert statement's select-clause.
      Returns:
      The select-clause.