Class BaseSQLTreeProcessor
java.lang.Object
org.apache.cayenne.access.sqlbuilder.sqltree.SimpleNodeTreeVisitor
org.apache.cayenne.access.translator.select.BaseSQLTreeProcessor
- All Implemented Interfaces:
NodeTreeVisitor
,SQLTreeProcessor
- Direct Known Subclasses:
DB2SQLTreeProcessor
,DerbySQLTreeProcessor
,FirebirdSQLTreeProcessor
,FrontBaseSQLTreeProcessor
,H2SQLTreeProcessor
,HSQLTreeProcessor
,IngressSQLTreeProcessor
,OpenBaseSQLTreeProcessor
,OracleSQLTreeProcessor
,SQLiteTreeProcessor
,SybaseSQLTreeProcessor
- Since:
- 4.2
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
onChildNodeStart
(Node parent, Node child, int index, boolean hasMore) protected void
onColumnNode
(Node parent, ColumnNode child, int index) protected void
onDistinctNode
(Node parent, DistinctNode child, int index) protected void
onFunctionNode
(Node parent, FunctionNode child, int index) protected void
protected void
onLikeNode
(Node parent, LikeNode child, int index) protected void
onLimitOffsetNode
(Node parent, LimitOffsetNode child, int index) protected void
onResultNode
(Node parent, Node child, int index) protected void
onUndefinedNode
(Node parent, Node child, int index) protected void
onValueNode
(Node parent, ValueNode child, int index) protected static void
replaceChild
(Node parent, int index, Node newChild) protected static void
replaceChild
(Node parent, int index, Node newChild, boolean transferChildren) protected static Node
wrapInFunction
(Node node, String function) Methods inherited from class org.apache.cayenne.access.sqlbuilder.sqltree.SimpleNodeTreeVisitor
onChildNodeEnd, onNodeEnd, onNodeStart
-
Constructor Details
-
BaseSQLTreeProcessor
public BaseSQLTreeProcessor()
-
-
Method Details
-
process
- Specified by:
process
in interfaceSQLTreeProcessor
-
onValueNode
-
onFunctionNode
-
onLimitOffsetNode
-
onColumnNode
-
onInNode
-
onLikeNode
-
onResultNode
-
onDistinctNode
-
onUndefinedNode
-
replaceChild
-
replaceChild
-
wrapInFunction
-
onChildNodeStart
- Specified by:
onChildNodeStart
in interfaceNodeTreeVisitor
- Overrides:
onChildNodeStart
in classSimpleNodeTreeVisitor
- Parameters:
parent
- nodechild
- nodeindex
- of this child in parenthasMore
- true if more children after this child- Returns:
- false if visitor should stop
-