类 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>

public abstract class AbstractTypedFetcher<E,T extends AbstractTypedFetcher<E,T>> extends FetcherImpl<E>
  • 构造器详细资料

    • AbstractTypedFetcher

      protected AbstractTypedFetcher(Class<E> type, FetcherImpl<E> base)
    • AbstractTypedFetcher

      protected AbstractTypedFetcher(FetcherImpl<E> prev, org.babyfish.jimmer.meta.ImmutableProp prop, boolean negative)
    • AbstractTypedFetcher

      protected AbstractTypedFetcher(FetcherImpl<E> prev, org.babyfish.jimmer.meta.ImmutableProp prop, FieldConfig<?,? extends Table<?>> fieldConfig)
  • 方法详细资料

    • allTableFields

      public T allTableFields()
      从接口复制的说明: Fetcher
      allScalars + allForeignKeys
      指定者:
      allTableFields 在接口中 Fetcher<E>
      覆盖:
      allTableFields 在类中 FetcherImpl<E>
      返回:
      A new fetcher
    • allScalarFields

      public T allScalarFields()
      指定者:
      allScalarFields 在接口中 Fetcher<E>
      覆盖:
      allScalarFields 在类中 FetcherImpl<E>
    • add

      @NewChain public T add(String prop)
      从接口复制的说明: Fetcher
      Fetch a property without child fetcher, for associated property, that means fetch id-only object
      指定者:
      add 在接口中 Fetcher<E>
      覆盖:
      add 在类中 FetcherImpl<E>
      参数:
      prop - Propery name
      返回:
      A new fetcher
    • remove

      @NewChain public T remove(String prop)
      从接口复制的说明: Fetcher
      Unfetch a property
      指定者:
      remove 在接口中 Fetcher<E>
      覆盖:
      remove 在类中 FetcherImpl<E>
      参数:
      prop - Property name
      返回:
      A new fetcher
    • add

      @NewChain public T add(String prop, Fetcher<?> childFetcher)
      从接口复制的说明: Fetcher
      Fetch a property with child fetcher, error will be raised if the specified property is not association
      指定者:
      add 在接口中 Fetcher<E>
      覆盖:
      add 在类中 FetcherImpl<E>
      参数:
      prop - Property name
      childFetcher - Deeper child fetcher for associated objects
      返回:
      A new fetcher
    • add

      @NewChain public T add(String prop, Fetcher<?> childFetcher, Consumer<? extends FieldConfig<?,? extends Table<?>>> loaderBlock)
      从接口复制的说明: Fetcher
      Fetch a property with child fetcher and more configuration, error will be raised if the specified property is not association
      指定者:
      add 在接口中 Fetcher<E>
      覆盖:
      add 在类中 FetcherImpl<E>
      参数:
      prop - Property name
      childFetcher - Deeper child fetcher for associated objects
      loaderBlock - An optional lambda expression that lets the user set more configurations
      返回:
      A new fetcher
    • createFetcher

      protected abstract T createFetcher(org.babyfish.jimmer.meta.ImmutableProp prop, boolean negative)
      覆盖:
      createFetcher 在类中 FetcherImpl<E>
    • createFetcher

      protected abstract T createFetcher(org.babyfish.jimmer.meta.ImmutableProp prop, FieldConfig<?,? extends Table<?>> fieldConfig)
      覆盖:
      createFetcher 在类中 FetcherImpl<E>