接口 JSqlClient

所有超级接口:
SubQueryProvider
所有已知子接口:
JSqlClientImplementor
所有已知实现类:
AbstractJSqlClientDelegate, 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)

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

      For associated objects, only insert or update operations are executed. The parent object never dissociates the child objects.

    • merge

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

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

      For associated objects, only insert or update operations are executed. The parent object never dissociates the child objects.

    • merge

      default <E> SimpleSaveResult<E> merge(E entity, SaveMode mode)

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

      For associated objects, only insert or update operations are executed. The parent object never dissociates the child objects.

    • merge

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

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

      For associated objects, only insert or update operations are executed. The parent object never dissociates the child objects.

    • append

      default <E> SimpleSaveResult<E> append(E entity)
      For associated objects, only insert operations are executed.
    • append

      default <E> SimpleSaveResult<E> append(org.babyfish.jimmer.Input<E> input)
      For associated objects, only insert operations are executed.
    • append

      default <E> SimpleSaveResult<E> append(E entity, SaveMode mode)
      For associated objects, only insert operations are executed.
    • append

      default <E> SimpleSaveResult<E> append(org.babyfish.jimmer.Input<E> input, SaveMode mode)
      For associated objects, only insert operations are executed.
    • 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)