Class TypeAwareSQLTreeProcessor
java.lang.Object
org.apache.cayenne.access.sqlbuilder.sqltree.SimpleNodeTreeVisitor
org.apache.cayenne.access.translator.select.TypeAwareSQLTreeProcessor
- All Implemented Interfaces:
- NodeTreeVisitor,- SQLTreeProcessor
- Direct Known Subclasses:
- MySQLTreeProcessor,- PostgreSQLTreeProcessor
- Since:
- 4.2
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected final Map<String,ChildProcessor<ColumnNode>> protected final Map<NodeType,ChildProcessor<Node>> protected final Map<String,ChildProcessor<ValueNode>> protected static final Class<?>protected static final String
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiondefaultProcess(Node parent, Node child, int index) protected DbAttributegetColumnAttribute(ColumnNode node) protected ChildProcessor<ColumnNode>protected static Optional<ObjAttribute>getObjAttributeFor(DbAttribute dbAttribute) protected DbAttributegetValueAttribute(ValueNode node) protected ChildProcessor<ValueNode>getValueProcessor(DbAttribute attr) booleanonChildNodeStart(Node parent, Node child, int index, boolean hasMore) protected voidregisterColumnProcessor(Class<?> columnType, ChildProcessor childProcessor) protected voidregisterProcessor(NodeType nodeType, ChildProcessor childProcessor) protected voidregisterValueProcessor(Class<?> columnType, ChildProcessor childProcessor) protected static voidreplaceChild(Node parent, int index, Node newChild) protected static NodewrapInFunction(Node node, String function) Methods inherited from class org.apache.cayenne.access.sqlbuilder.sqltree.SimpleNodeTreeVisitoronChildNodeEnd, onNodeEnd, onNodeStart
- 
Field Details- 
DEFAULT_TYPE
- 
DEFAULT_TYPE_NAME
- 
byColumnTypeProcessors
- 
byValueTypeProcessors
- 
byNodeTypeProcessors
 
- 
- 
Constructor Details- 
TypeAwareSQLTreeProcessorpublic TypeAwareSQLTreeProcessor()
 
- 
- 
Method Details- 
process- Specified by:
- processin interface- SQLTreeProcessor
 
- 
registerProcessor
- 
registerColumnProcessor
- 
registerValueProcessor
- 
defaultProcess
- 
onChildNodeStart- Specified by:
- onChildNodeStartin interface- NodeTreeVisitor
- Overrides:
- onChildNodeStartin class- SimpleNodeTreeVisitor
- Parameters:
- parent- node
- child- node
- index- of this child in parent
- hasMore- true if more children after this child
- Returns:
- false if visitor should stop
 
- 
getColumnAttribute
- 
getColumnProcessor
- 
getValueAttribute
- 
getValueProcessor
- 
replaceChild
- 
wrapInFunction
- 
getObjAttributeFor
 
-