public class PojoTableSubjectFactoryImpl extends Object implements PojoTableSubjectFactory
| 限定符和类型 | 字段和说明 |
|---|---|
protected PojoManager |
pojoManager |
| 构造器和说明 |
|---|
PojoTableSubjectFactoryImpl(PojoManager pojoManager) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
analysisTableChain(Map<Class<?>,PojoTableSubject> allSubjectMap)
解析table调用关系
|
Subject |
build(Class<?> pojoType) |
protected TableFieldInfo |
buildId(Id idAnnotation,
TableFieldInfo fieldInfo)
初始化主键信息
|
Collection<PojoTableSubject> |
create()
创建PojoTableSubject
|
protected PojoMapping |
createMapping(ManyToOne manyToOne,
Class<?> pojoType,
PojoField pojoField) |
protected PojoMapping |
createMapping(OneToMany oneToMany,
Class<?> pojoType,
PojoField pojoField) |
protected PojoMapping |
createMapping(OneToOne oneToOne,
Class<?> pojoType,
PojoField pojoField) |
protected List<TriggerInfo> |
createTrigger(Trigger[] triggers) |
protected Method |
findSetterMethodByGetter(Class<?> pojoType,
Method getter,
Set<MethodDescriptor> setters)
根据getter方法签名查找与之对应的setter
|
protected void |
initJoinCondition(Map<Class<?>,PojoTableSubject> pojoTableSubjectMap)
初始化关联查询条件
|
protected void |
initJoinCondition(PojoMapping pojoMapping,
Map<Class<?>,PojoTableSubject> pojoTableSubjectMap)
初始化关联查询条件 检查合法性
|
protected void |
initPojoTableSubjectFiledInfo(PojoSubject pojoSubject,
PojoTableSubject pojoTableSubject,
TableInfoImpl tableInfoImpl)
初始化数据库表映射
|
protected void |
initPojoTableSubjectTableInfo(PojoSubject pojoSubject,
PojoTableSubject pojoTableSubject) |
void |
setLogicDeleteField(LogicDelete logicDelete,
TableFieldInfo fieldInfo,
TableInfoImpl tableInfoImpl) |
protected final PojoManager pojoManager
public PojoTableSubjectFactoryImpl(PojoManager pojoManager)
public Subject build(Class<?> pojoType)
build 在接口中 SubjectFactorypublic Collection<PojoTableSubject> create()
PojoTableSubjectFactorycreate 在接口中 PojoTableSubjectFactoryprotected void initPojoTableSubjectTableInfo(PojoSubject pojoSubject, PojoTableSubject pojoTableSubject)
protected void initPojoTableSubjectFiledInfo(PojoSubject pojoSubject, PojoTableSubject pojoTableSubject, TableInfoImpl tableInfoImpl)
pojoTableSubject - pojo表映射对象tableInfoImpl - 数据库表映射protected Method findSetterMethodByGetter(Class<?> pojoType, Method getter, Set<MethodDescriptor> setters)
pojoType - pojo类型getter - getter方法setters - pojo中的所有setterprotected TableFieldInfo buildId(Id idAnnotation, TableFieldInfo fieldInfo)
idAnnotation - 主键注解fieldInfo - 字段信息public void setLogicDeleteField(LogicDelete logicDelete, TableFieldInfo fieldInfo, TableInfoImpl tableInfoImpl)
protected PojoMapping createMapping(OneToMany oneToMany, Class<?> pojoType, PojoField pojoField)
protected PojoMapping createMapping(OneToOne oneToOne, Class<?> pojoType, PojoField pojoField)
protected PojoMapping createMapping(ManyToOne manyToOne, Class<?> pojoType, PojoField pojoField)
protected List<TriggerInfo> createTrigger(Trigger[] triggers)
protected void initJoinCondition(Map<Class<?>,PojoTableSubject> pojoTableSubjectMap)
pojoTableSubjectMap - 所有pojo表映射protected void initJoinCondition(PojoMapping pojoMapping, Map<Class<?>,PojoTableSubject> pojoTableSubjectMap)
pojoMapping - 关联条件pojoTableSubjectMap - 所有pojo表映射protected void analysisTableChain(Map<Class<?>,PojoTableSubject> allSubjectMap)
allSubjectMap - 所有pojo表映射Copyright © 2022. All rights reserved.