public class AttrNode extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
List<AttrNode> |
children
当前对应的JavaBean中的其它引用类型的节点
|
Map<Integer,String> |
colMap
ResultSet列索引->对应字段属性名
|
protected boolean |
isCollection |
AttrNode |
parent |
Map<String,PropertyDescriptor> |
propertyMap
属性名->字段的PropertyDescriptor
|
Class<?> |
target
当前节点对应的JavaBean类型。
|
PropertyDescriptor |
typePdInParent
当前节点对应Bean所在的父级Bean属性的PropertyDescriptor
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
initNode(Class<?> target,
Map<String,Object> jsonMapping,
Map<String,Integer> columnIndexMap) |
void |
visit(org.beetl.sql.core.mapping.join.ConfigJoinMapper.RenderContext renderContext,
ExecuteContext ctx,
ReadTypeParameter rtp)
遍历同层的结果集,赋值到grid里
|
void |
visitAll(org.beetl.sql.core.mapping.join.ConfigJoinMapper.RenderContext renderContext,
ExecuteContext ctx,
ReadTypeParameter rtp) |
public Class<?> target
protected boolean isCollection
public AttrNode parent
public PropertyDescriptor typePdInParent
public Map<String,PropertyDescriptor> propertyMap
public AttrNode()
public AttrNode(AttrNode parent)
public void initNode(Class<?> target, Map<String,Object> jsonMapping, Map<String,Integer> columnIndexMap)
target - 此节点类型jsonMapping - 当前的json映射规则配置,{属性(key):列名(value)}columnIndexMap - ResultSet中 列名(key)->索引位置(value) 的记录public void visit(org.beetl.sql.core.mapping.join.ConfigJoinMapper.RenderContext renderContext,
ExecuteContext ctx,
ReadTypeParameter rtp)
throws Exception
renderContext - ctx - rtp - Exceptionpublic void visitAll(org.beetl.sql.core.mapping.join.ConfigJoinMapper.RenderContext renderContext,
ExecuteContext ctx,
ReadTypeParameter rtp)
throws Exception
ExceptionCopyright © 2022. All rights reserved.