类 AbstractTypedFetcher<E,T extends AbstractTypedFetcher<E,T>>
java.lang.Object
org.babyfish.jimmer.sql.fetcher.impl.FetcherImpl<E>
org.babyfish.jimmer.sql.fetcher.spi.AbstractTypedFetcher<E,T>
- 所有已实现的接口:
Fetcher<E>,FetcherImplementor<E>
public abstract class AbstractTypedFetcher<E,T extends AbstractTypedFetcher<E,T>>
extends FetcherImpl<E>
-
构造器概要
构造器限定符构造器说明protectedAbstractTypedFetcher(Class<E> type, FetcherImpl<E> base) protectedAbstractTypedFetcher(FetcherImpl<E> prev, org.babyfish.jimmer.meta.ImmutableProp prop, boolean negative, IdOnlyFetchType idOnlyFetchType) protectedAbstractTypedFetcher(FetcherImpl<E> prev, org.babyfish.jimmer.meta.ImmutableProp prop, FieldConfig<?, ? extends Table<?>> fieldConfig) -
方法概要
修饰符和类型方法说明Fetch a property without child fetcher, for associated property, that means fetch id-only objectFetch a property with child fetcher, error will be raised if the specified property is not associationadd(String prop, Fetcher<?> childFetcher, Consumer<? extends FieldConfig<?, ? extends Table<?>>> loaderBlock) Fetch a property with child fetcher and more configuration, error will be raised if the specified property is not associationadd(String prop, IdOnlyFetchType idOnlyFetchType) Fetch association directly based on foreign key, the associated object has only id propertyaddRecursion(String prop, Consumer<? extends FieldConfig<?, ? extends Table<?>>> loaderBlock) allScalars + allForeignKeysprotected abstract TcreateFetcher(org.babyfish.jimmer.meta.ImmutableProp prop, boolean negative, IdOnlyFetchType referenceType) protected abstract TcreateFetcher(org.babyfish.jimmer.meta.ImmutableProp prop, FieldConfig<?, ? extends Table<?>> fieldConfig) Unfetch a property从类继承的方法 org.babyfish.jimmer.sql.fetcher.impl.FetcherImpl
__hiddenPropIds, __isSimpleFetcher, __shownPropIds, __unresolvedFieldMap, allReferenceFields, equals, getFieldMap, getImmutableType, getJavaClass, hashCode, toString, toString
-
构造器详细资料
-
AbstractTypedFetcher
-
AbstractTypedFetcher
protected AbstractTypedFetcher(FetcherImpl<E> prev, org.babyfish.jimmer.meta.ImmutableProp prop, boolean negative, IdOnlyFetchType idOnlyFetchType) -
AbstractTypedFetcher
protected AbstractTypedFetcher(FetcherImpl<E> prev, org.babyfish.jimmer.meta.ImmutableProp prop, FieldConfig<?, ? extends Table<?>> fieldConfig)
-
-
方法详细资料
-
allTableFields
从接口复制的说明:FetcherallScalars + allForeignKeys- 指定者:
allTableFields在接口中Fetcher<E>- 指定者:
allTableFields在接口中FetcherImplementor<E>- 覆盖:
allTableFields在类中FetcherImpl<E>- 返回:
- A new fetcher
-
allScalarFields
- 指定者:
allScalarFields在接口中Fetcher<E>- 指定者:
allScalarFields在接口中FetcherImplementor<E>- 覆盖:
allScalarFields在类中FetcherImpl<E>
-
add
从接口复制的说明:FetcherFetch a property without child fetcher, for associated property, that means fetch id-only object- 指定者:
add在接口中Fetcher<E>- 指定者:
add在接口中FetcherImplementor<E>- 覆盖:
add在类中FetcherImpl<E>- 参数:
prop- Propery name- 返回:
- A new fetcher
-
remove
从接口复制的说明:FetcherUnfetch a property- 指定者:
remove在接口中Fetcher<E>- 指定者:
remove在接口中FetcherImplementor<E>- 覆盖:
remove在类中FetcherImpl<E>- 参数:
prop- Property name- 返回:
- A new fetcher
-
add
从接口复制的说明:FetcherFetch a property with child fetcher, error will be raised if the specified property is not association- 指定者:
add在接口中Fetcher<E>- 指定者:
add在接口中FetcherImplementor<E>- 覆盖:
add在类中FetcherImpl<E>- 参数:
prop- Property namechildFetcher- Deeper child fetcher for associated objects- 返回:
- A new fetcher
-
add
@NewChain public T add(String prop, Fetcher<?> childFetcher, Consumer<? extends FieldConfig<?, ? extends Table<?>>> loaderBlock) 从接口复制的说明:FetcherFetch a property with child fetcher and more configuration, error will be raised if the specified property is not association- 指定者:
add在接口中Fetcher<E>- 指定者:
add在接口中FetcherImplementor<E>- 覆盖:
add在类中FetcherImpl<E>- 参数:
prop- Property namechildFetcher- Deeper child fetcher for associated objectsloaderBlock- An optional lambda expression that lets the user set more configurations- 返回:
- A new fetcher
-
addRecursion
@NewChain public T addRecursion(String prop, Consumer<? extends FieldConfig<?, ? extends Table<?>>> loaderBlock) - 指定者:
addRecursion在接口中Fetcher<E>- 指定者:
addRecursion在接口中FetcherImplementor<E>- 覆盖:
addRecursion在类中FetcherImpl<E>
-
add
从接口复制的说明:FetcherFetch association directly based on foreign key, the associated object has only id property- 指定者:
add在接口中Fetcher<E>- 指定者:
add在接口中FetcherImplementor<E>- 覆盖:
add在类中FetcherImpl<E>- 参数:
prop- Property nameidOnlyFetchType- Reference type which has 2 choices- DEFAULT: The associated will filtered by global filters(include built-lt logical deleted filter)
- RAW: Raw value of foreign key
If the property is not an association directly based on foreign key, this argument will be ignored
- 返回:
- A new fetcher
-
createFetcher
protected abstract T createFetcher(org.babyfish.jimmer.meta.ImmutableProp prop, boolean negative, IdOnlyFetchType referenceType) - 覆盖:
createFetcher在类中FetcherImpl<E>
-
createFetcher
protected abstract T createFetcher(org.babyfish.jimmer.meta.ImmutableProp prop, FieldConfig<?, ? extends Table<?>> fieldConfig) - 覆盖:
createFetcher在类中FetcherImpl<E>
-