接口 JSqlClient

所有超级接口:
SubQueryProvider
所有已知子接口:
JSqlClientImplementor
所有已知实现类:
JLazyInitializationSqlClient

public interface JSqlClient extends SubQueryProvider
  • 方法详细资料

    • newBuilder

      static JSqlClient.Builder newBuilder()
    • createQuery

      <T extends TableProxy<?>> MutableRootQuery<T> createQuery(T table)
    • createUpdate

      MutableUpdate createUpdate(TableProxy<?> table)
    • createDelete

      MutableDelete createDelete(TableProxy<?> table)
    • createAssociationQuery

      <SE, ST extends Table<SE>, TE, TT extends Table<TE>> MutableRootQuery<AssociationTable<SE,ST,TE,TT>> createAssociationQuery(AssociationTable<SE,ST,TE,TT> table)
    • getEntities

      Entities getEntities()
    • getTriggers

      Triggers getTriggers()
      This method is equivalent to `getTriggers(false)`
      返回:
    • getTriggers

      Triggers getTriggers(boolean transaction)
      • If trigger type is 'BINLOG_ONLY'
        • If `transaction` is true, throws exception
        • If `transaction` is false, return binlog trigger
      • If trigger type is 'TRANSACTION_ONLY', returns transaction trigger no matter what the `transaction` is
      • If trigger type is 'BOTH'
        • If `transaction` is true, return transaction trigger
        • If `transaction` is false, return binlog trigger
        Note that the objects returned by different parameters are independent of each other.
      参数:
      transaction -
      返回:
      Trigger
    • getAssociations

      Associations getAssociations(org.babyfish.jimmer.meta.TypedProp.Association<?,?> prop)
    • getAssociations

      Associations getAssociations(org.babyfish.jimmer.meta.ImmutableProp immutableProp)
    • getAssociations

      Associations getAssociations(AssociationType associationType)
    • getCaches

      Caches getCaches()
    • getFilters

      Filters getFilters()
    • getBinLog

      BinLog getBinLog()
    • caches

      @NewChain JSqlClient caches(Consumer<CacheDisableConfig> block)
    • filters

      @NewChain JSqlClient filters(Consumer<FilterConfig> block)
    • disableSlaveConnectionManager

      @NewChain JSqlClient disableSlaveConnectionManager()
    • executor

      @NewChain JSqlClient executor(Executor executor)
    • findById

      @Nullable default <E> E findById(Class<E> type, Object id)
    • findById

      @Nullable default <E> E findById(Fetcher<E> fetcher, Object id)
    • findByIds

      default <E> List<E> findByIds(Class<E> type, Collection<?> ids)
    • findByIds

      default <E> List<E> findByIds(Fetcher<E> fetcher, Collection<?> ids)
    • findMapByIds

      @Nullable default <K, V> @Nullable Map<K,V> findMapByIds(Class<V> type, Collection<K> ids)
    • findMapByIds

      @Nullable default <K, V> @Nullable Map<K,V> findMapByIds(Fetcher<V> fetcher, Collection<K> ids)
    • save

      default <E> SimpleSaveResult<E> save(E entity, SaveMode mode)
    • save

      default <E> SimpleSaveResult<E> save(E entity)
    • insert

      default <E> SimpleSaveResult<E> insert(E entity)
    • update

      default <E> SimpleSaveResult<E> update(E entity)
    • save

      default <E> SimpleSaveResult<E> save(org.babyfish.jimmer.Input<E> input, SaveMode mode)
    • save

      default <E> SimpleSaveResult<E> save(org.babyfish.jimmer.Input<E> input)
    • insert

      default <E> SimpleSaveResult<E> insert(org.babyfish.jimmer.Input<E> input)
    • update

      default <E> SimpleSaveResult<E> update(org.babyfish.jimmer.Input<E> input)
    • merge

      default <E> SimpleSaveResult<E> merge(E entity)
      Unlike save, merge is significantly different, only the insert and update operations will be executed, dissociation operations will never be executed.

      Note: The 'merge' of 'Jimmer' and the 'merge' of 'JPA' are completely different concepts!

      类型参数:
      E - The type of the entity
      参数:
      entity - The entity to be merged
      返回:
      The save result
    • merge

      default <E> SimpleSaveResult<E> merge(org.babyfish.jimmer.Input<E> input)
      Unlike save, merge is significantly different, only the insert and update operations will be executed, dissociation operations will never be executed.

      Note: The 'merge' of 'Jimmer' and the 'merge' of 'JPA' are completely different concepts!

      类型参数:
      E - The type of the entity
      参数:
      input - The Input object to be merged
      返回:
      The save result
    • merge

      default <E> SimpleSaveResult<E> merge(E entity, SaveMode mode)
      Unlike save, merge is significantly different, only the insert and update operations will be executed, dissociation operations will never be executed.

      Note: The 'merge' of 'Jimmer' and the 'merge' of 'JPA' are completely different concepts!

      类型参数:
      E - The type of the entity
      参数:
      entity - The entity to be merged
      返回:
      The save result
    • merge

      default <E> SimpleSaveResult<E> merge(org.babyfish.jimmer.Input<E> input, SaveMode mode)
      Unlike save, merge is significantly different, only the insert and update operations will be executed, dissociation operations will never be executed.

      Note: The 'merge' of 'Jimmer' and the 'merge' of 'JPA' are completely different concepts!

      类型参数:
      E - The type of the entity
      参数:
      input - The Input object to be merged
      返回:
      The save result
    • deleteById

      default DeleteResult deleteById(Class<?> type, Object id, DeleteMode mode)
    • deleteById

      default DeleteResult deleteById(Class<?> type, Object id)
    • deleteByIds

      default DeleteResult deleteByIds(Class<?> type, Collection<?> ids, DeleteMode mode)
    • deleteByIds

      default DeleteResult deleteByIds(Class<?> type, Collection<?> ids)