Class Delete


  • public final class Delete
    extends DataChangeStatement
    This class represents the statement DELETE
    • Method Detail

      • getPlanSQL

        public java.lang.StringBuilder getPlanSQL​(java.lang.StringBuilder builder,
                                                  int sqlFlags)
        Description copied from class: Prepared
        Appends the SQL statement with the execution plan.
        Overrides:
        getPlanSQL in class Prepared
        Parameters:
        builder - string builder
        sqlFlags - formatting flags
        Returns:
        the execution plan
      • 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
      • collectDependencies

        public void collectDependencies​(java.util.HashSet<DbObject> dependencies)
        Description copied from class: Prepared
        Find and collect all DbObjects, this Prepared depends on.
        Overrides:
        collectDependencies in class Prepared
        Parameters:
        dependencies - collection of dependencies to populate
      • setTableFilter

        public final void setTableFilter​(TableFilter tableFilter)
      • getTableFilter

        public final TableFilter getTableFilter()
      • setCondition

        public final void setCondition​(Expression condition)
      • getCondition

        public final Expression getCondition()
      • setFetch

        public void setFetch​(Expression fetch)
      • nextRow

        protected final boolean nextRow​(long limitRows,
                                        long count)
      • appendFilterCondition

        protected final java.lang.StringBuilder appendFilterCondition​(java.lang.StringBuilder builder,
                                                                      int sqlFlags)
      • lockAndRecheckCondition

        protected final Row lockAndRecheckCondition()