public class IncludeBuilder<T>
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
protected SqLinkConfig |
config |
protected SqlExpressionFactory |
factory |
protected java.util.List<IncludeSet> |
includes |
protected static org.slf4j.Logger |
log |
protected ISqlQueryableExpression |
queryable |
protected SqlSession |
session |
protected java.util.Collection<T> |
sources |
protected java.lang.Class<T> |
targetClass |
构造器和说明 |
---|
IncludeBuilder(SqLinkConfig config,
SqlSession session,
java.lang.Class<T> targetClass,
java.util.Collection<T> sources,
java.util.List<IncludeSet> includes,
ISqlQueryableExpression queryable) |
限定符和类型 | 方法和说明 |
---|---|
protected <K> java.util.Map<K,T> |
getMap(FieldMetaData fieldMetaData) |
protected <Key> java.util.Map<Key,java.util.List<T>> |
getMapList(FieldMetaData fieldMetaData) |
void |
include()
执行抓取
|
protected void |
manyToMany(java.util.Map<java.lang.Object,java.util.List<T>> sourcesMapList,
IncludeSet include,
NavigateData navigateData,
FieldMetaData selfFieldMetaData,
FieldMetaData targetFieldMetaData,
FieldMetaData includeFieldMetaData) |
protected void |
manyToOne(java.util.Map<java.lang.Object,java.util.List<T>> sourcesMapList,
IncludeSet include,
NavigateData navigateData,
FieldMetaData selfFieldMetaData,
FieldMetaData targetFieldMetaData,
FieldMetaData includeFieldMetaData) |
protected void |
oneToMany(java.util.Map<java.lang.Object,java.util.List<T>> sourcesMapList,
IncludeSet include,
NavigateData navigateData,
FieldMetaData selfFieldMetaData,
FieldMetaData targetFieldMetaData,
FieldMetaData includeFieldMetaData) |
protected void |
oneToOne(java.util.Map<java.lang.Object,java.util.List<T>> sourcesMapList,
IncludeSet include,
NavigateData navigateData,
FieldMetaData selfFieldMetaData,
FieldMetaData targetFieldMetaData,
FieldMetaData includeFieldMetaData) |
protected void |
round(IncludeSet include,
java.lang.Class<?> navigateTargetType,
java.util.Collection<?> sources,
ISqlQueryableExpression main,
java.lang.Object... os) |
protected void |
round(IncludeSet include,
java.lang.Class<?> navigateTargetType,
java.util.Collection<java.util.List<java.lang.Object>> sources,
ISqlQueryableExpression main) |
protected void |
rowNumber(java.util.List<java.lang.String> rowNumberFunction,
java.util.List<ISqlExpression> rowNumberParams) |
protected ISqlQueryableExpression |
warpItQueryable(ISqlQueryableExpression querySqlBuilder,
FieldMetaData targetFieldMetaData,
java.lang.Class<?> navigateTargetType,
ISqlQueryableExpression virtualTableContext) |
protected ISqlQueryableExpression |
warpItQueryable(ISqlQueryableExpression queryableExpression,
FieldMetaData targetFieldMetaData,
java.lang.Class<?> navigateTargetType,
ISqlQueryableExpression virtualTableContext,
ISqlColumnExpression another) |
protected static final org.slf4j.Logger log
protected final SqLinkConfig config
protected final java.lang.Class<T> targetClass
protected final java.util.Collection<T> sources
protected final java.util.List<IncludeSet> includes
protected final ISqlQueryableExpression queryable
protected final SqlExpressionFactory factory
protected final SqlSession session
public IncludeBuilder(SqLinkConfig config, SqlSession session, java.lang.Class<T> targetClass, java.util.Collection<T> sources, java.util.List<IncludeSet> includes, ISqlQueryableExpression queryable)
public void include() throws java.lang.reflect.InvocationTargetException, java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
java.lang.IllegalAccessException
protected void oneToOne(java.util.Map<java.lang.Object,java.util.List<T>> sourcesMapList, IncludeSet include, NavigateData navigateData, FieldMetaData selfFieldMetaData, FieldMetaData targetFieldMetaData, FieldMetaData includeFieldMetaData) throws java.lang.reflect.InvocationTargetException, java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
java.lang.IllegalAccessException
protected void oneToMany(java.util.Map<java.lang.Object,java.util.List<T>> sourcesMapList, IncludeSet include, NavigateData navigateData, FieldMetaData selfFieldMetaData, FieldMetaData targetFieldMetaData, FieldMetaData includeFieldMetaData) throws java.lang.reflect.InvocationTargetException, java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
java.lang.IllegalAccessException
protected void manyToOne(java.util.Map<java.lang.Object,java.util.List<T>> sourcesMapList, IncludeSet include, NavigateData navigateData, FieldMetaData selfFieldMetaData, FieldMetaData targetFieldMetaData, FieldMetaData includeFieldMetaData) throws java.lang.reflect.InvocationTargetException, java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
java.lang.IllegalAccessException
protected void manyToMany(java.util.Map<java.lang.Object,java.util.List<T>> sourcesMapList, IncludeSet include, NavigateData navigateData, FieldMetaData selfFieldMetaData, FieldMetaData targetFieldMetaData, FieldMetaData includeFieldMetaData) throws java.lang.reflect.InvocationTargetException, java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
java.lang.IllegalAccessException
protected <K> java.util.Map<K,T> getMap(FieldMetaData fieldMetaData) throws java.lang.reflect.InvocationTargetException, java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
java.lang.IllegalAccessException
protected <Key> java.util.Map<Key,java.util.List<T>> getMapList(FieldMetaData fieldMetaData) throws java.lang.reflect.InvocationTargetException, java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
java.lang.IllegalAccessException
protected ISqlQueryableExpression warpItQueryable(ISqlQueryableExpression querySqlBuilder, FieldMetaData targetFieldMetaData, java.lang.Class<?> navigateTargetType, ISqlQueryableExpression virtualTableContext)
protected ISqlQueryableExpression warpItQueryable(ISqlQueryableExpression queryableExpression, FieldMetaData targetFieldMetaData, java.lang.Class<?> navigateTargetType, ISqlQueryableExpression virtualTableContext, ISqlColumnExpression another)
protected void round(IncludeSet include, java.lang.Class<?> navigateTargetType, java.util.Collection<?> sources, ISqlQueryableExpression main, java.lang.Object... os) throws java.lang.reflect.InvocationTargetException, java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
java.lang.IllegalAccessException
protected void round(IncludeSet include, java.lang.Class<?> navigateTargetType, java.util.Collection<java.util.List<java.lang.Object>> sources, ISqlQueryableExpression main) throws java.lang.reflect.InvocationTargetException, java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
java.lang.IllegalAccessException
protected void rowNumber(java.util.List<java.lang.String> rowNumberFunction, java.util.List<ISqlExpression> rowNumberParams)