接口 JSqlClient
- 所有超级接口:
Saver,SubQueryProvider
- 所有已知子接口:
JSqlClientImplementor
-
嵌套类概要
嵌套类 -
方法概要
修饰符和类型方法说明caches(Consumer<CacheDisableConfig> block) <SE,ST extends Table<SE>, TE, TT extends Table<TE>>
MutableRootQuery<AssociationTable<SE, ST, TE, TT>> createAssociationQuery(AssociationTable<SE, ST, TE, TT> table) createDelete(TableProxy<?> table) <T extends TableProxy<?>>
MutableRootQuery<T> createQuery(T table) createUpdate(TableProxy<?> table) default DeleteResultdeleteById(@NotNull Class<?> type, @NotNull Object id, @NotNull DeleteMode mode) default DeleteResultdeleteById(Class<?> type, Object id) default DeleteResultdeleteByIds(Class<?> type, Iterable<?> ids) default DeleteResultdeleteByIds(Class<?> type, Iterable<?> ids, DeleteMode mode) filters(Consumer<FilterConfig> block) default <T> Tdefault <E> Edefault <T> @NotNull List<T> default <E> @NotNull List<E> default <K,T> @NotNull Map <K, T> findMapByIds(Class<T> type, Iterable<K> ids) default <K,V> @NotNull Map <K, V> findMapByIds(Fetcher<V> fetcher, Iterable<K> ids) default <T> TfindOneById(Class<T> type, Object id) default <E> EfindOneById(Fetcher<E> fetcher, Object id) getAssociations(org.babyfish.jimmer.meta.ImmutableProp immutableProp) getAssociations(org.babyfish.jimmer.meta.TypedProp.Association<?, ?> prop) getAssociations(AssociationType associationType) This method is equivalent to `getTriggers(false)`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.static JSqlClient.Builderdefault <E> SimpleEntitySaveCommand<E> saveCommand(E entity) default <E> BatchEntitySaveCommand<E> saveEntitiesCommand(Iterable<E> entities) default <R> Rtransaction(Supplier<R> block) Execute a transaction by the default propagation behaviorPropagation.REQUIREDIf an IOC framework is used, its implementation should be an encapsulation of the transaction management within the IOC framework.<R> Rtransaction(Propagation propagation, Supplier<R> block) Execute a transaction by the specifiedPropagationbehavior If an IOC framework is used, its implementation should be an encapsulation of the transaction management within the IOC framework.从接口继承的方法 org.babyfish.jimmer.sql.Saver
insert, insert, insert, insert, insertEntities, insertEntities, insertEntitiesIfAbsent, insertEntitiesIfAbsent, insertIfAbsent, insertIfAbsent, insertIfAbsent, insertIfAbsent, insertInputs, insertInputs, insertInputsIfAbsent, insertInputsIfAbsent, merge, merge, mergeEntities, mergeInputs, save, save, save, save, save, save, save, save, saveCommand, saveEntities, saveEntities, saveEntities, saveEntities, saveInputs, saveInputs, saveInputs, saveInputs, saveInputsCommand, update, update, update, update, updateEntities, updateEntities, updateInputs, updateInputs从接口继承的方法 org.babyfish.jimmer.sql.ast.query.SubQueryProvider
createAssociationSubQuery, createSubQuery
-
方法详细资料
-
newBuilder
-
createQuery
-
createUpdate
-
createDelete
-
createAssociationQuery
<SE,ST extends Table<SE>, MutableRootQuery<AssociationTable<SE,TE, TT extends Table<TE>> ST, createAssociationQueryTE, TT>> (AssociationTable<SE, ST, TE, TT> table) -
getEntities
Entities getEntities() -
getTriggers
Triggers getTriggers()This method is equivalent to `getTriggers(false)`- 返回:
-
getTriggers
-
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
- 参数:
transaction-- 返回:
- Trigger
-
If trigger type is 'BINLOG_ONLY'
-
getAssociations
-
getAssociations
-
getAssociations
-
getCaches
Caches getCaches() -
getFilters
Filters getFilters() -
getBinLog
BinLog getBinLog() -
caches
-
filters
-
disableSlaveConnectionManager
-
executor
-
findById
- 类型参数:
T- Entity type or output DTO type
-
findById
-
findOneById
- 类型参数:
T- Entity type or output DTO type
-
findOneById
-
findByIds
- 类型参数:
T- Entity type or output DTO type
-
findByIds
-
findMapByIds
- 类型参数:
T- Entity type or output DTO type
-
findMapByIds
-
saveCommand
- 指定者:
saveCommand在接口中Saver
-
saveEntitiesCommand
- 指定者:
saveEntitiesCommand在接口中Saver
-
deleteById
default DeleteResult deleteById(@NotNull @NotNull Class<?> type, @NotNull @NotNull Object id, @NotNull @NotNull DeleteMode mode) -
deleteById
-
deleteByIds
-
deleteByIds
-
transaction
Execute a transaction by the default propagation behaviorPropagation.REQUIRED- If an IOC framework is used, its implementation
should be an encapsulation of the transaction management
within the IOC framework. Taking
jimmer-spring-starteras an example, it is theSpringConnectionManagerwhich will be created and enabled automatically. - If no IOC framework is used, the class
AbstractTxConnectionManageris the lightweight implementation provided by jimmer, please specify the connection manager of sqlClient byConnectionManager.simpleConnectionManager(DataSource)
- 参数:
block- The action to be executed in transaction- 返回:
- The result of transaction
- If an IOC framework is used, its implementation
should be an encapsulation of the transaction management
within the IOC framework. Taking
-
transaction
Execute a transaction by the specifiedPropagationbehavior- If an IOC framework is used, its implementation
should be an encapsulation of the transaction management
within the IOC framework. Taking
jimmer-spring-starteras an example, it is theSpringConnectionManagerwhich will be created and enabled automatically. - If no IOC framework is used, the class
AbstractTxConnectionManageris the lightweight implementation provided by jimmer, please specify the connection manager of sqlClient byConnectionManager.simpleConnectionManager(DataSource)
- 参数:
propagation- The propagation behaviorblock- The action to be executed in transaction- 返回:
- The result of transaction
- If an IOC framework is used, its implementation
should be an encapsulation of the transaction management
within the IOC framework. Taking
-