接口 JSqlClient

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

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

    • 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 <T> T findById(Class<T> type, Object id)
      类型参数:
      T - Entity type or output DTO type
    • findById

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

      @NotNull default <T> T findOneById(Class<T> type, Object id)
      类型参数:
      T - Entity type or output DTO type
    • findOneById

      @NotNull default <E> E findOneById(Fetcher<E> fetcher, Object id)
    • findByIds

      @NotNull default <T> @NotNull List<T> findByIds(Class<T> type, Iterable<?> ids)
      类型参数:
      T - Entity type or output DTO type
    • findByIds

      @NotNull default <E> @NotNull List<E> findByIds(Fetcher<E> fetcher, Iterable<?> ids)
    • findMapByIds

      @NotNull default <K, T> @NotNull Map<K,T> findMapByIds(Class<T> type, Iterable<K> ids)
      类型参数:
      T - Entity type or output DTO type
    • findMapByIds

      @NotNull default <K, V> @NotNull Map<K,V> findMapByIds(Fetcher<V> fetcher, Iterable<K> ids)
    • saveCommand

      default <E> SimpleEntitySaveCommand<E> saveCommand(E entity)
      指定者:
      saveCommand 在接口中 Saver
    • saveEntitiesCommand

      default <E> BatchEntitySaveCommand<E> saveEntitiesCommand(Iterable<E> entities)
      指定者:
      saveEntitiesCommand 在接口中 Saver
    • deleteById

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

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

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

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