类 FetcherImpl<E>
java.lang.Object
org.babyfish.jimmer.sql.fetcher.impl.FetcherImpl<E>
- 所有已实现的接口:
Fetcher<E>,FetcherImplementor<E>
- 直接已知子类:
AbstractTypedFetcher
-
构造器概要
构造器限定符构造器说明FetcherImpl(Class<E> javaClass) FetcherImpl(Class<E> javaClass, FetcherImpl<E> base) protectedFetcherImpl(FetcherImpl<E> prev, org.babyfish.jimmer.meta.ImmutableProp prop, boolean negative, IdOnlyFetchType idOnlyFetchType) protectedFetcherImpl(FetcherImpl<E> prev, org.babyfish.jimmer.meta.ImmutableProp prop, FieldConfig<?, ? extends Table<?>> fieldConfig) -
方法概要
修饰符和类型方法说明List<org.babyfish.jimmer.meta.PropId>booleanAre all fetched properties simple fields?List<org.babyfish.jimmer.meta.PropId>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 FetcherImpl<E>createFetcher(org.babyfish.jimmer.meta.ImmutableProp prop, boolean negative, IdOnlyFetchType idOnlyFetchType) protected FetcherImpl<E>createFetcher(org.babyfish.jimmer.meta.ImmutableProp prop, FieldConfig<?, ? extends Table<?>> fieldConfig) booleanorg.babyfish.jimmer.meta.ImmutableTypeinthashCode()Unfetch a propertytoString()toString(boolean multiLine)
-
构造器详细资料
-
FetcherImpl
-
FetcherImpl
-
FetcherImpl
protected FetcherImpl(FetcherImpl<E> prev, org.babyfish.jimmer.meta.ImmutableProp prop, boolean negative, IdOnlyFetchType idOnlyFetchType) -
FetcherImpl
protected FetcherImpl(FetcherImpl<E> prev, org.babyfish.jimmer.meta.ImmutableProp prop, FieldConfig<?, ? extends Table<?>> fieldConfig)
-
-
方法详细资料
-
getJavaClass
- 指定者:
getJavaClass在接口中Fetcher<E>
-
getImmutableType
public org.babyfish.jimmer.meta.ImmutableType getImmutableType()- 指定者:
getImmutableType在接口中Fetcher<E>
-
getFieldMap
- 指定者:
getFieldMap在接口中Fetcher<E>
-
__unresolvedFieldMap
- 指定者:
__unresolvedFieldMap在接口中FetcherImplementor<E>
-
__shownPropIds
- 指定者:
__shownPropIds在接口中FetcherImplementor<E>
-
allTableFields
从接口复制的说明:FetcherallScalars + allForeignKeys- 指定者:
allTableFields在接口中Fetcher<E>- 指定者:
allTableFields在接口中FetcherImplementor<E>- 返回:
- A new fetcher
-
allScalarFields
- 指定者:
allScalarFields在接口中Fetcher<E>- 指定者:
allScalarFields在接口中FetcherImplementor<E>
-
allReferenceFields
- 指定者:
allReferenceFields在接口中Fetcher<E>
-
add
从接口复制的说明:FetcherFetch a property without child fetcher, for associated property, that means fetch id-only object -
remove
从接口复制的说明:FetcherUnfetch a property -
add
从接口复制的说明:FetcherFetch a property with child fetcher, error will be raised if the specified property is not association -
add
@NewChain public FetcherImplementor<E> 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 -
addRecursion
@NewChain public FetcherImplementor<E> addRecursion(String prop, Consumer<? extends FieldConfig<?, ? extends Table<?>>> loaderBlock) - 指定者:
addRecursion在接口中Fetcher<E>- 指定者:
addRecursion在接口中FetcherImplementor<E>
-
add
从接口复制的说明:FetcherFetch association directly based on foreign key, the associated object has only id property- 指定者:
add在接口中Fetcher<E>- 指定者:
add在接口中FetcherImplementor<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
-
hashCode
public int hashCode() -
equals
-
toString
-
toString
-
__isSimpleFetcher
public boolean __isSimpleFetcher()从接口复制的说明:FetcherImplementorAre all fetched properties simple fields?- 指定者:
__isSimpleFetcher在接口中FetcherImplementor<E>- 返回:
- Checked result
-
createFetcher
protected FetcherImpl<E> createFetcher(org.babyfish.jimmer.meta.ImmutableProp prop, boolean negative, IdOnlyFetchType idOnlyFetchType) -
createFetcher
protected FetcherImpl<E> createFetcher(org.babyfish.jimmer.meta.ImmutableProp prop, FieldConfig<?, ? extends Table<?>> fieldConfig)
-