Class ParameterVisitor

  • All Implemented Interfaces:
    Visitor

    public final class ParameterVisitor
    extends java.lang.Object
    implements Visitor
    Visitor constructing parameter map for queries.
    Version:
    $Revision: 8469 $ $Date: 2006-04-25 15:08:23 -0600 (Tue, 25 Apr 2006) $
    Author:
    Dennis Butterstein
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Map<java.lang.String,​java.lang.Integer> getParameters()
      Method returning constructed parameter map.
      void visit​(Assignment assignment)
      Visit method to handle Assignment elements.
      void visit​(AndCondition andCondition)
      Visit method to handle AndCondition elements.
      void visit​(Compare compare)
      Visit method to handle Compare elements.
      void visit​(IsNullPredicate isNullPredicate)
      Visit method to handle IsNullPredicate elements.
      void visit​(OrCondition orCondition)
      Visit method to handle OrCondition elements.
      void visit​(Delete delete)
      Visit method to handle Delete elements.
      void visit​(Column column)
      Visit method to handle Column elements.
      void visit​(NextVal nextVal)
      Visit method to handle NextVal elements.
      void visit​(Parameter parameter)
      Visit method to handle Parameter elements.
      void visit​(Insert insert)
      Visit method to handle Insert elements.
      void visit​(Join join)
      Visit method to handle Join elements.
      void visit​(Select select)
      Visit method to handle select elements.
      void visit​(Table table)
      Visit method to handle Table elements.
      void visit​(TableAlias tableAlias)
      Visit method to handle TableAlias elements.
      void visit​(Update update)
      Visit method to handle update elements.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.castor.cpa.persistence.sql.query.Visitor

        toString
    • Constructor Detail

      • ParameterVisitor

        public ParameterVisitor()
    • Method Detail

      • visit

        public void visit​(Assignment assignment)
        Visit method to handle Assignment elements.
        Specified by:
        visit in interface Visitor
        Parameters:
        assignment - Assignment object to be handled.
      • visit

        public void visit​(Delete delete)
        Visit method to handle Delete elements.
        Specified by:
        visit in interface Visitor
        Parameters:
        delete - Delete object to be handled.
      • visit

        public void visit​(Insert insert)
        Visit method to handle Insert elements.
        Specified by:
        visit in interface Visitor
        Parameters:
        insert - Insert object to be handled.
      • visit

        public void visit​(Join join)
        Visit method to handle Join elements.
        Specified by:
        visit in interface Visitor
        Parameters:
        join - Join object to be handled
      • visit

        public void visit​(Select select)
        Visit method to handle select elements.
        Specified by:
        visit in interface Visitor
        Parameters:
        select - Select object to be handled.
      • visit

        public void visit​(Table table)
        Visit method to handle Table elements.
        Specified by:
        visit in interface Visitor
        Parameters:
        table - Table object to be handled.
      • visit

        public void visit​(TableAlias tableAlias)
        Visit method to handle TableAlias elements.
        Specified by:
        visit in interface Visitor
        Parameters:
        tableAlias - TableAlias object to be handled.
      • visit

        public void visit​(Update update)
        Visit method to handle update elements.
        Specified by:
        visit in interface Visitor
        Parameters:
        update - Update object to be handled.
      • visit

        public void visit​(AndCondition andCondition)
        Visit method to handle AndCondition elements.
        Specified by:
        visit in interface Visitor
        Parameters:
        andCondition - AndCondition object to be handled.
      • visit

        public void visit​(Compare compare)
        Visit method to handle Compare elements.
        Specified by:
        visit in interface Visitor
        Parameters:
        compare - Compare object to be handled.
      • visit

        public void visit​(IsNullPredicate isNullPredicate)
        Visit method to handle IsNullPredicate elements.
        Specified by:
        visit in interface Visitor
        Parameters:
        isNullPredicate - IsNullPredicate object to be handled.
      • visit

        public void visit​(OrCondition orCondition)
        Visit method to handle OrCondition elements.
        Specified by:
        visit in interface Visitor
        Parameters:
        orCondition - OrCondition object to be handled.
      • visit

        public void visit​(Column column)
        Visit method to handle Column elements.
        Specified by:
        visit in interface Visitor
        Parameters:
        column - Column object to be handled.
      • visit

        public void visit​(NextVal nextVal)
        Visit method to handle NextVal elements.
        Specified by:
        visit in interface Visitor
        Parameters:
        nextVal - NextVal object to be handled.
      • visit

        public void visit​(Parameter parameter)
        Visit method to handle Parameter elements.
        Specified by:
        visit in interface Visitor
        Parameters:
        parameter - Parameter object to be handled.
      • getParameters

        public java.util.Map<java.lang.String,​java.lang.Integer> getParameters()
        Method returning constructed parameter map.
        Returns:
        Constructed parameter map.