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 Summary
FieldsModifier 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 Summary
Constructors -
Method Summary
Modifier 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.SimpleNodeTreeVisitor
onChildNodeEnd, onNodeEnd, onNodeStart
-
Field Details
-
DEFAULT_TYPE
-
DEFAULT_TYPE_NAME
-
byColumnTypeProcessors
-
byValueTypeProcessors
-
byNodeTypeProcessors
-
-
Constructor Details
-
TypeAwareSQLTreeProcessor
public TypeAwareSQLTreeProcessor()
-
-
Method Details
-
process
- Specified by:
processin interfaceSQLTreeProcessor
-
registerProcessor
-
registerColumnProcessor
-
registerValueProcessor
-
defaultProcess
-
onChildNodeStart
- Specified by:
onChildNodeStartin interfaceNodeTreeVisitor- Overrides:
onChildNodeStartin classSimpleNodeTreeVisitor- Parameters:
parent- nodechild- nodeindex- of this child in parenthasMore- true if more children after this child- Returns:
- false if visitor should stop
-
getColumnAttribute
-
getColumnProcessor
-
getValueAttribute
-
getValueProcessor
-
replaceChild
-
wrapInFunction
-
getObjAttributeFor
-