类 AbstractJavaRepository<E,ID>

java.lang.Object
org.babyfish.jimmer.spring.repo.support.AbstractJavaRepository<E,ID>
类型参数:
E - The entity type
ID - The entity id type
所有已实现的接口:
JavaRepository<E,ID>

public class AbstractJavaRepository<E,ID> extends Object implements JavaRepository<E,ID>
Base implementation of JavaRepository
  • 字段概要

    字段
    修饰符和类型
    字段
    说明
    protected final Class<E>
     
    protected final org.babyfish.jimmer.sql.JSqlClient
     
    protected final org.babyfish.jimmer.meta.ImmutableType
     
  • 构造器概要

    构造器
    构造器
    说明
    AbstractJavaRepository(org.babyfish.jimmer.sql.JSqlClient sql)
     
  • 方法概要

    修饰符和类型
    方法
    说明
    long
    deleteById(ID id, org.babyfish.jimmer.sql.ast.mutation.DeleteMode deleteMode)
     
    long
    deleteByIds(Iterable<ID> ids, org.babyfish.jimmer.sql.ast.mutation.DeleteMode deleteMode)
     
    <V extends org.babyfish.jimmer.View<E>>
    List<V>
    findAll(Class<V> viewType, org.babyfish.jimmer.meta.TypedProp.Scalar<?,?>... sortedProps)
     
    findAll(org.babyfish.jimmer.sql.fetcher.Fetcher<E> fetcher, org.babyfish.jimmer.meta.TypedProp.Scalar<?,?>... sortedProps)
     
    <V extends org.babyfish.jimmer.View<E>>
    V
    findById(ID id, Class<V> viewType)
     
    findById(ID id, org.babyfish.jimmer.sql.fetcher.Fetcher<E> fetcher)
     
    <V extends org.babyfish.jimmer.View<E>>
    List<V>
    findByIds(Iterable<ID> ids, Class<V> viewType)
     
    findByIds(Iterable<ID> ids, org.babyfish.jimmer.sql.fetcher.Fetcher<E> fetcher)
     
    <V extends org.babyfish.jimmer.View<E>>
    Map<ID,V>
    findMapByIds(Iterable<ID> ids, Class<V> viewType)
     
    findMapByIds(Iterable<ID> ids, org.babyfish.jimmer.sql.fetcher.Fetcher<E> fetcher)
     
    <V extends org.babyfish.jimmer.View<E>>
    org.babyfish.jimmer.Page<V>
    findPage(PageParam pageParam, Class<V> viewType, org.babyfish.jimmer.meta.TypedProp.Scalar<?,?>... sortedProps)
     
    org.babyfish.jimmer.Page<E>
    findPage(PageParam pageParam, org.babyfish.jimmer.sql.fetcher.Fetcher<E> fetcher, org.babyfish.jimmer.meta.TypedProp.Scalar<?,?>... sortedProps)
     
    <V extends org.babyfish.jimmer.View<E>>
    org.babyfish.jimmer.Slice<V>
    findSlice(int limit, int offset, Class<V> viewType, org.babyfish.jimmer.meta.TypedProp.Scalar<?,?>... sortedProps)
     
    org.babyfish.jimmer.Slice<E>
    findSlice(int limit, int offset, org.babyfish.jimmer.sql.fetcher.Fetcher<E> fetcher, org.babyfish.jimmer.meta.TypedProp.Scalar<?,?>... sortedProps)
     
    org.babyfish.jimmer.sql.ast.mutation.SimpleSaveResult<E>
    save(E entity, org.babyfish.jimmer.sql.ast.mutation.SaveMode mode, org.babyfish.jimmer.sql.ast.mutation.AssociatedSaveMode associatedMode)
    Shortcut for Saver.save(Object, SaveMode, AssociatedSaveMode), please view that method to know more
    org.babyfish.jimmer.sql.ast.mutation.SimpleSaveResult<E>
    save(org.babyfish.jimmer.Input<E> input, org.babyfish.jimmer.sql.ast.mutation.SaveMode mode, org.babyfish.jimmer.sql.ast.mutation.AssociatedSaveMode associatedMode)
    Shortcut for Saver.save(Input, SaveMode, AssociatedSaveMode), please view that method to know more
    org.babyfish.jimmer.sql.ast.mutation.BatchSaveResult<E>
    saveEntities(Iterable<E> entities, org.babyfish.jimmer.sql.ast.mutation.SaveMode mode, org.babyfish.jimmer.sql.ast.mutation.AssociatedSaveMode associatedMode)
    Shortcut for Saver.saveEntities(Iterable, SaveMode, AssociatedSaveMode) , please view that method to know more
    org.babyfish.jimmer.sql.ast.mutation.BatchSaveResult<E>
    saveInputs(Iterable<? extends org.babyfish.jimmer.Input<E>> inputs, org.babyfish.jimmer.sql.ast.mutation.SaveMode mode, org.babyfish.jimmer.sql.ast.mutation.AssociatedSaveMode associatedMode)
    Shortcut for Saver.saveInputs(Iterable, SaveMode, AssociatedSaveMode), please view that method to know more

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 字段详细资料

    • sql

      protected final org.babyfish.jimmer.sql.JSqlClient sql
    • entityType

      protected final Class<E> entityType
    • type

      protected final org.babyfish.jimmer.meta.ImmutableType type
  • 构造器详细资料

    • AbstractJavaRepository

      public AbstractJavaRepository(org.babyfish.jimmer.sql.JSqlClient sql)
  • 方法详细资料

    • findById

      @Nullable public E findById(ID id, @Nullable org.babyfish.jimmer.sql.fetcher.Fetcher<E> fetcher)
      指定者:
      findById 在接口中 JavaRepository<E,ID>
    • findById

      @Nullable public <V extends org.babyfish.jimmer.View<E>> V findById(ID id, Class<V> viewType)
      指定者:
      findById 在接口中 JavaRepository<E,ID>
    • findByIds

      @NotNull public List<E> findByIds(Iterable<ID> ids, @Nullable org.babyfish.jimmer.sql.fetcher.Fetcher<E> fetcher)
      指定者:
      findByIds 在接口中 JavaRepository<E,ID>
    • findByIds

      @NotNull public <V extends org.babyfish.jimmer.View<E>> List<V> findByIds(Iterable<ID> ids, Class<V> viewType)
      指定者:
      findByIds 在接口中 JavaRepository<E,ID>
    • findMapByIds

      @NotNull public Map<ID,E> findMapByIds(Iterable<ID> ids, org.babyfish.jimmer.sql.fetcher.Fetcher<E> fetcher)
      指定者:
      findMapByIds 在接口中 JavaRepository<E,ID>
    • findMapByIds

      @NotNull public <V extends org.babyfish.jimmer.View<E>> Map<ID,V> findMapByIds(Iterable<ID> ids, Class<V> viewType)
      指定者:
      findMapByIds 在接口中 JavaRepository<E,ID>
    • findAll

      @NotNull public List<E> findAll(@Nullable org.babyfish.jimmer.sql.fetcher.Fetcher<E> fetcher, org.babyfish.jimmer.meta.TypedProp.Scalar<?,?>... sortedProps)
      指定者:
      findAll 在接口中 JavaRepository<E,ID>
    • findAll

      @NotNull public <V extends org.babyfish.jimmer.View<E>> List<V> findAll(Class<V> viewType, org.babyfish.jimmer.meta.TypedProp.Scalar<?,?>... sortedProps)
      指定者:
      findAll 在接口中 JavaRepository<E,ID>
    • findPage

      @NotNull public org.babyfish.jimmer.Page<E> findPage(PageParam pageParam, @Nullable org.babyfish.jimmer.sql.fetcher.Fetcher<E> fetcher, org.babyfish.jimmer.meta.TypedProp.Scalar<?,?>... sortedProps)
      指定者:
      findPage 在接口中 JavaRepository<E,ID>
    • findPage

      @NotNull public <V extends org.babyfish.jimmer.View<E>> org.babyfish.jimmer.Page<V> findPage(PageParam pageParam, Class<V> viewType, org.babyfish.jimmer.meta.TypedProp.Scalar<?,?>... sortedProps)
      指定者:
      findPage 在接口中 JavaRepository<E,ID>
    • findSlice

      @NotNull public org.babyfish.jimmer.Slice<E> findSlice(int limit, int offset, @Nullable org.babyfish.jimmer.sql.fetcher.Fetcher<E> fetcher, org.babyfish.jimmer.meta.TypedProp.Scalar<?,?>... sortedProps)
      指定者:
      findSlice 在接口中 JavaRepository<E,ID>
    • findSlice

      @NotNull public <V extends org.babyfish.jimmer.View<E>> org.babyfish.jimmer.Slice<V> findSlice(int limit, int offset, Class<V> viewType, org.babyfish.jimmer.meta.TypedProp.Scalar<?,?>... sortedProps)
      指定者:
      findSlice 在接口中 JavaRepository<E,ID>
    • save

      public org.babyfish.jimmer.sql.ast.mutation.SimpleSaveResult<E> save(E entity, org.babyfish.jimmer.sql.ast.mutation.SaveMode mode, org.babyfish.jimmer.sql.ast.mutation.AssociatedSaveMode associatedMode)
      从接口复制的说明: JavaRepository
      Shortcut for Saver.save(Object, SaveMode, AssociatedSaveMode), please view that method to know more
      指定者:
      save 在接口中 JavaRepository<E,ID>
    • saveEntities

      public org.babyfish.jimmer.sql.ast.mutation.BatchSaveResult<E> saveEntities(Iterable<E> entities, org.babyfish.jimmer.sql.ast.mutation.SaveMode mode, org.babyfish.jimmer.sql.ast.mutation.AssociatedSaveMode associatedMode)
      从接口复制的说明: JavaRepository
      Shortcut for Saver.saveEntities(Iterable, SaveMode, AssociatedSaveMode) , please view that method to know more
      指定者:
      saveEntities 在接口中 JavaRepository<E,ID>
    • save

      public org.babyfish.jimmer.sql.ast.mutation.SimpleSaveResult<E> save(org.babyfish.jimmer.Input<E> input, org.babyfish.jimmer.sql.ast.mutation.SaveMode mode, org.babyfish.jimmer.sql.ast.mutation.AssociatedSaveMode associatedMode)
      从接口复制的说明: JavaRepository
      Shortcut for Saver.save(Input, SaveMode, AssociatedSaveMode), please view that method to know more
      指定者:
      save 在接口中 JavaRepository<E,ID>
    • saveInputs

      public org.babyfish.jimmer.sql.ast.mutation.BatchSaveResult<E> saveInputs(Iterable<? extends org.babyfish.jimmer.Input<E>> inputs, org.babyfish.jimmer.sql.ast.mutation.SaveMode mode, org.babyfish.jimmer.sql.ast.mutation.AssociatedSaveMode associatedMode)
      从接口复制的说明: JavaRepository
      Shortcut for Saver.saveInputs(Iterable, SaveMode, AssociatedSaveMode), please view that method to know more
      指定者:
      saveInputs 在接口中 JavaRepository<E,ID>
    • deleteById

      public long deleteById(ID id, org.babyfish.jimmer.sql.ast.mutation.DeleteMode deleteMode)
      指定者:
      deleteById 在接口中 JavaRepository<E,ID>
    • deleteByIds

      public long deleteByIds(Iterable<ID> ids, org.babyfish.jimmer.sql.ast.mutation.DeleteMode deleteMode)
      指定者:
      deleteByIds 在接口中 JavaRepository<E,ID>