Class Delete

  • All Implemented Interfaces:
    QueryObject

    public final class Delete
    extends java.lang.Object
    implements QueryObject
    Class to generate SQL delete query statements.
    Note: Be aware that the SQL statement will be invalid for empty compound conditions.
    Version:
    $Revision$ $Date: 2006-04-25 15:08:23 -0600 (Tue, 25 Apr 2006) $
    Author:
    Ahmad Hassan, Ralf Joachim
    • Constructor Summary

      Constructors 
      Constructor Description
      Delete​(java.lang.String name)
      Construct a SQL delete statement that deletes records of the table with given name.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void accept​(Visitor visitor)
      Accept method to handle incoming visitors.
      Condition getCondition()
      Get condition that specifies which records to delete.
      Qualifier getQualifier()
      Get method returning Qualifier currently set.
      void setCondition​(Condition condition)
      Set condition that specifies which records to delete.
      java.lang.String toString()
      Method constructing query string.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Delete

        public Delete​(java.lang.String name)
        Construct a SQL delete statement that deletes records of the table with given name.
        Parameters:
        name - Name of the table to delete records of.
    • Method Detail

      • getCondition

        public Condition getCondition()
        Get condition that specifies which records to delete.
        Returns:
        Condition that specifies which records to delete.
      • setCondition

        public void setCondition​(Condition condition)
        Set condition that specifies which records to delete.
        Parameters:
        condition - Condition that specifies which records to delete.
      • getQualifier

        public Qualifier getQualifier()
        Get method returning Qualifier currently set.
        Returns:
        Qualifier currently set.
      • accept

        public void accept​(Visitor visitor)
        Accept method to handle incoming visitors.
        Specified by:
        accept in interface QueryObject
        Parameters:
        visitor - Visitor to be handled.
      • toString

        public java.lang.String toString()
        Method constructing query string.
        Overrides:
        toString in class java.lang.Object
        Returns:
        Constructed query string.