public class CriteriaCreatingVisitor extends Object implements to.etc.webapp.query.QNodeVisitor
It might be a better idea to start generating SQL from here, using Hibernate internal code to instantiate the query's result only.
Please look a Bug 640 for more details, and see the wiki page http://info.etc.to/xwiki/bin/view/Main/UIAbstractDatabase for more details on the working of all this.| Constructor and Description |
|---|
CriteriaCreatingVisitor(org.hibernate.Session ses,
org.hibernate.Criteria crit) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkHibernateClass(Class<?> clz)
Does a check to see if the class is a persistent class- because Hibernate itself is too
bloody stupid to do it.
|
void |
visitBetween(to.etc.webapp.query.QBetweenNode n) |
void |
visitCriteria(to.etc.webapp.query.QCriteria<?> qc) |
void |
visitExistsSubquery(to.etc.webapp.query.QExistsSubquery<?> q)
Child-related subquery: determine existence of children having certain characteristics.
|
void |
visitLiteral(to.etc.webapp.query.QLiteral n) |
void |
visitMulti(to.etc.webapp.query.QMultiNode inn)
Compound.
|
void |
visitMultiSelection(to.etc.webapp.query.QMultiSelection n) |
void |
visitOrder(to.etc.webapp.query.QOrder o) |
void |
visitOrderList(List<to.etc.webapp.query.QOrder> orderlist) |
void |
visitPropertyComparison(to.etc.webapp.query.QPropertyComparison n) |
void |
visitPropertyIn(to.etc.webapp.query.QPropertyIn n) |
void |
visitPropertyJoinComparison(to.etc.webapp.query.QPropertyJoinComparison comparison) |
void |
visitPropertySelection(to.etc.webapp.query.QPropertySelection n) |
void |
visitRestrictionsBase(to.etc.webapp.query.QCriteriaQueryBase<?> n) |
void |
visitSelection(to.etc.webapp.query.QSelection<?> s) |
void |
visitSelectionColumn(to.etc.webapp.query.QSelectionColumn n) |
void |
visitSelectionColumns(to.etc.webapp.query.QSelection<?> s) |
void |
visitSelectionItem(to.etc.webapp.query.QSelectionItem n) |
void |
visitSelectionSubquery(to.etc.webapp.query.QSelectionSubquery n)
Render a non-correlated subquery (the subquery has no references to the parent).
|
void |
visitSqlRestriction(to.etc.webapp.query.QSqlRestriction v) |
void |
visitSubquery(to.etc.webapp.query.QSubQuery<?,?> n)
This handles rendering of a correlated subquery.
|
void |
visitUnaryNode(to.etc.webapp.query.QUnaryNode n) |
void |
visitUnaryProperty(to.etc.webapp.query.QUnaryProperty n) |
public CriteriaCreatingVisitor(org.hibernate.Session ses,
org.hibernate.Criteria crit)
public void checkHibernateClass(Class<?> clz)
clz - public void visitRestrictionsBase(to.etc.webapp.query.QCriteriaQueryBase<?> n)
throws Exception
visitRestrictionsBase in interface to.etc.webapp.query.QNodeVisitorExceptionpublic void visitCriteria(to.etc.webapp.query.QCriteria<?> qc)
throws Exception
visitCriteria in interface to.etc.webapp.query.QNodeVisitorExceptionpublic void visitPropertyComparison(to.etc.webapp.query.QPropertyComparison n)
throws Exception
visitPropertyComparison in interface to.etc.webapp.query.QNodeVisitorExceptionpublic void visitPropertyIn(@Nonnull to.etc.webapp.query.QPropertyIn n) throws Exception
visitPropertyIn in interface to.etc.webapp.query.QNodeVisitorExceptionpublic void visitBetween(to.etc.webapp.query.QBetweenNode n)
throws Exception
visitBetween in interface to.etc.webapp.query.QNodeVisitorExceptionpublic void visitMulti(to.etc.webapp.query.QMultiNode inn)
throws Exception
visitMulti in interface to.etc.webapp.query.QNodeVisitorExceptionQNodeVisitorBase.visitMulti(to.etc.webapp.query.QMultiNode)public void visitOrder(to.etc.webapp.query.QOrder o)
throws Exception
visitOrder in interface to.etc.webapp.query.QNodeVisitorExceptionpublic void visitUnaryNode(to.etc.webapp.query.QUnaryNode n)
throws Exception
visitUnaryNode in interface to.etc.webapp.query.QNodeVisitorExceptionpublic void visitSqlRestriction(@Nonnull to.etc.webapp.query.QSqlRestriction v) throws Exception
visitSqlRestriction in interface to.etc.webapp.query.QNodeVisitorExceptionpublic void visitUnaryProperty(to.etc.webapp.query.QUnaryProperty n)
throws Exception
visitUnaryProperty in interface to.etc.webapp.query.QNodeVisitorExceptionpublic void visitLiteral(to.etc.webapp.query.QLiteral n)
throws Exception
visitLiteral in interface to.etc.webapp.query.QNodeVisitorExceptionpublic void visitExistsSubquery(to.etc.webapp.query.QExistsSubquery<?> q)
throws Exception
visitExistsSubquery in interface to.etc.webapp.query.QNodeVisitorExceptionQNodeVisitorBase.visitExistsSubquery(to.etc.webapp.query.QExistsSubquery)public void visitMultiSelection(to.etc.webapp.query.QMultiSelection n)
throws Exception
visitMultiSelection in interface to.etc.webapp.query.QNodeVisitorExceptionpublic void visitSelection(to.etc.webapp.query.QSelection<?> s)
throws Exception
visitSelection in interface to.etc.webapp.query.QNodeVisitorExceptionpublic void visitSelectionColumn(to.etc.webapp.query.QSelectionColumn n)
throws Exception
visitSelectionColumn in interface to.etc.webapp.query.QNodeVisitorExceptionpublic void visitSelectionItem(to.etc.webapp.query.QSelectionItem n)
throws Exception
visitSelectionItem in interface to.etc.webapp.query.QNodeVisitorExceptionpublic void visitPropertySelection(to.etc.webapp.query.QPropertySelection n)
throws Exception
visitPropertySelection in interface to.etc.webapp.query.QNodeVisitorExceptionpublic void visitSubquery(@Nonnull to.etc.webapp.query.QSubQuery<?,?> n) throws Exception
visitSubquery in interface to.etc.webapp.query.QNodeVisitorExceptionQNodeVisitor.visitSubquery(to.etc.webapp.query.QSubQuery)public void visitSelectionSubquery(@Nonnull to.etc.webapp.query.QSelectionSubquery n) throws Exception
visitSelectionSubquery in interface to.etc.webapp.query.QNodeVisitorExceptionQNodeVisitor.visitSelectionSubquery(to.etc.webapp.query.QSelectionSubquery)public void visitPropertyJoinComparison(@Nonnull to.etc.webapp.query.QPropertyJoinComparison comparison) throws Exception
visitPropertyJoinComparison in interface to.etc.webapp.query.QNodeVisitorExceptionpublic void visitOrderList(@Nonnull List<to.etc.webapp.query.QOrder> orderlist) throws Exception
visitOrderList in interface to.etc.webapp.query.QNodeVisitorExceptionCopyright © 2017 etc.to. All rights reserved.