接口 Fetcher<E>

所有已知实现类:
AbstractTypedFetcher, FetcherImpl

public interface Fetcher<E>
  • 方法详细资料

    • getJavaClass

      Class<E> getJavaClass()
    • getImmutableType

      org.babyfish.jimmer.meta.ImmutableType getImmutableType()
    • getFieldMap

      Map<String,Field> getFieldMap()
    • allTableFields

      @NewChain Fetcher<E> allTableFields()
      allScalars + allForeignKeys
      返回:
      A new fetcher
    • allScalarFields

      @NewChain Fetcher<E> allScalarFields()
    • add

      @NewChain Fetcher<E> add(String prop)
      Fetch a property without child fetcher, for associated property, that means fetch id-only object
      参数:
      prop - Propery name
      返回:
      A new fetcher
    • remove

      @NewChain Fetcher<E> remove(String prop)
      Unfetch a property
      参数:
      prop - Property name
      返回:
      A new fetcher
    • add

      @NewChain Fetcher<E> add(String prop, Fetcher<?> childFetcher)
      Fetch a property with child fetcher, error will be raised if the specified property is not association
      参数:
      prop - Property name
      childFetcher - Deeper child fetcher for associated objects
      返回:
      A new fetcher
    • add

      @NewChain Fetcher<E> add(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 association
      参数:
      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
    • isSimpleFetcher

      boolean isSimpleFetcher()
      Are all fetched properties simple fields?
      返回:
      Checked result