to.etc.webapp.query
Class QNodeVisitorBase

java.lang.Object
  extended by to.etc.webapp.query.QNodeVisitorBase
All Implemented Interfaces:
QNodeVisitor
Direct Known Subclasses:
CriteriaCreatingVisitor, CriteriaCreatingVisitorWithSubcriteria, JdbcSQLGenerator, QQueryRenderer

public class QNodeVisitorBase
extends java.lang.Object
implements QNodeVisitor

Base class for visiting a node tree. The methods in this base class cause all children of a the tree to be visited in order.

Author:
Frits Jalvingh Created on Jun 24, 2008

Constructor Summary
QNodeVisitorBase()
           
 
Method Summary
 void visitBetween(QBetweenNode n)
           
 void visitCriteria(QCriteria<?> qc)
           
 void visitExistsSubquery(QExistsSubquery<?> q)
           
 void visitLiteral(QLiteral n)
           
 void visitMulti(QMultiNode n)
           
 void visitMultiSelection(QMultiSelection n)
           
 void visitOrder(QOrder o)
           
 void visitOrderList(java.util.List<QOrder> orderlist)
           
 void visitPropertyComparison(QPropertyComparison n)
           
 void visitPropertySelection(QPropertySelection n)
           
 void visitRestrictionsBase(QCriteriaQueryBase<?> n)
           
 void visitSelection(QSelection<?> s)
           
 void visitSelectionColumn(QSelectionColumn n)
           
 void visitSelectionColumns(QSelection<?> s)
           
 void visitSelectionItem(QSelectionItem n)
           
 void visitSelectionSubquery(QSelectionSubquery n)
           
 void visitUnaryNode(QUnaryNode n)
           
 void visitUnaryProperty(QUnaryProperty n)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QNodeVisitorBase

public QNodeVisitorBase()
Method Detail

visitPropertyComparison

public void visitPropertyComparison(QPropertyComparison n)
                             throws java.lang.Exception
Specified by:
visitPropertyComparison in interface QNodeVisitor
Throws:
java.lang.Exception

visitUnaryNode

public void visitUnaryNode(QUnaryNode n)
                    throws java.lang.Exception
Specified by:
visitUnaryNode in interface QNodeVisitor
Throws:
java.lang.Exception

visitUnaryProperty

public void visitUnaryProperty(QUnaryProperty n)
                        throws java.lang.Exception
Specified by:
visitUnaryProperty in interface QNodeVisitor
Throws:
java.lang.Exception

visitBetween

public void visitBetween(QBetweenNode n)
                  throws java.lang.Exception
Specified by:
visitBetween in interface QNodeVisitor
Throws:
java.lang.Exception

visitRestrictionsBase

public void visitRestrictionsBase(QCriteriaQueryBase<?> n)
                           throws java.lang.Exception
Specified by:
visitRestrictionsBase in interface QNodeVisitor
Throws:
java.lang.Exception

visitCriteria

public void visitCriteria(QCriteria<?> qc)
                   throws java.lang.Exception
Specified by:
visitCriteria in interface QNodeVisitor
Throws:
java.lang.Exception

visitSelection

public void visitSelection(QSelection<?> s)
                    throws java.lang.Exception
Specified by:
visitSelection in interface QNodeVisitor
Throws:
java.lang.Exception

visitSelectionColumns

public void visitSelectionColumns(QSelection<?> s)
                           throws java.lang.Exception
Throws:
java.lang.Exception

visitOrderList

public void visitOrderList(java.util.List<QOrder> orderlist)
                    throws java.lang.Exception
Specified by:
visitOrderList in interface QNodeVisitor
Throws:
java.lang.Exception

visitLiteral

public void visitLiteral(QLiteral n)
                  throws java.lang.Exception
Specified by:
visitLiteral in interface QNodeVisitor
Throws:
java.lang.Exception

visitMulti

public void visitMulti(QMultiNode n)
                throws java.lang.Exception
Specified by:
visitMulti in interface QNodeVisitor
Throws:
java.lang.Exception

visitOrder

public void visitOrder(QOrder o)
                throws java.lang.Exception
Specified by:
visitOrder in interface QNodeVisitor
Throws:
java.lang.Exception

visitPropertySelection

public void visitPropertySelection(QPropertySelection n)
                            throws java.lang.Exception
Specified by:
visitPropertySelection in interface QNodeVisitor
Throws:
java.lang.Exception

visitSelectionColumn

public void visitSelectionColumn(QSelectionColumn n)
                          throws java.lang.Exception
Specified by:
visitSelectionColumn in interface QNodeVisitor
Throws:
java.lang.Exception

visitSelectionItem

public void visitSelectionItem(QSelectionItem n)
                        throws java.lang.Exception
Specified by:
visitSelectionItem in interface QNodeVisitor
Throws:
java.lang.Exception

visitMultiSelection

public void visitMultiSelection(QMultiSelection n)
                         throws java.lang.Exception
Specified by:
visitMultiSelection in interface QNodeVisitor
Throws:
java.lang.Exception

visitExistsSubquery

public void visitExistsSubquery(QExistsSubquery<?> q)
                         throws java.lang.Exception
Specified by:
visitExistsSubquery in interface QNodeVisitor
Throws:
java.lang.Exception

visitSelectionSubquery

public void visitSelectionSubquery(QSelectionSubquery n)
                            throws java.lang.Exception
Specified by:
visitSelectionSubquery in interface QNodeVisitor
Throws:
java.lang.Exception