类 FetcherImpl<E>

java.lang.Object
org.babyfish.jimmer.sql.fetcher.impl.FetcherImpl<E>
所有已实现的接口:
Fetcher<E>
直接已知子类:
AbstractTypedFetcher

public class FetcherImpl<E> extends Object implements Fetcher<E>
  • 构造器详细资料

    • FetcherImpl

      public FetcherImpl(Class<E> javaClass)
    • FetcherImpl

      public FetcherImpl(Class<E> javaClass, FetcherImpl<E> base)
    • FetcherImpl

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

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

    • getJavaClass

      public Class<E> getJavaClass()
      指定者:
      getJavaClass 在接口中 Fetcher<E>
    • getImmutableType

      public org.babyfish.jimmer.meta.ImmutableType getImmutableType()
      指定者:
      getImmutableType 在接口中 Fetcher<E>
    • getFieldMap

      public Map<String,Field> getFieldMap()
      指定者:
      getFieldMap 在接口中 Fetcher<E>
    • allTableFields

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

      @NewChain public Fetcher<E> allScalarFields()
      指定者:
      allScalarFields 在接口中 Fetcher<E>
    • add

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

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

      @NewChain public Fetcher<E> 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>
      参数:
      prop - Property name
      childFetcher - Deeper child fetcher for associated objects
      返回:
      A new fetcher
    • add

      @NewChain public Fetcher<E> 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>
      参数:
      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
    • toString

      public String toString()
      覆盖:
      toString 在类中 Object
    • toString

      public String toString(boolean multiLine)
      指定者:
      toString 在接口中 Fetcher<E>
    • isSimpleFetcher

      public boolean isSimpleFetcher()
      从接口复制的说明: Fetcher
      Are all fetched properties simple fields?
      指定者:
      isSimpleFetcher 在接口中 Fetcher<E>
      返回:
      Checked result
    • createChildFetcher

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

      protected FetcherImpl<E> createChildFetcher(org.babyfish.jimmer.meta.ImmutableProp prop, FieldConfig<?,? extends Table<?>> fieldConfig)