接口 JSqlClient
- 所有超级接口:
SubQueryProvider
- 所有已知子接口:
JSqlClientImplementor
-
嵌套类概要
嵌套类 -
方法概要
修饰符和类型方法说明default <E> SimpleSaveResult<E>append(E entity) For associated objects, only insert operations are executed.default <E> SimpleSaveResult<E>For associated objects, only insert operations are executed.default <E> SimpleSaveResult<E>append(org.babyfish.jimmer.Input<E> input) For associated objects, only insert operations are executed.default <E> SimpleSaveResult<E>For associated objects, only insert operations are executed.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(Class<?> type, Object id) default DeleteResultdeleteById(Class<?> type, Object id, DeleteMode mode) default DeleteResultdeleteByIds(Class<?> type, Collection<?> ids) default DeleteResultdeleteByIds(Class<?> type, Collection<?> ids, DeleteMode mode) filters(Consumer<FilterConfig> block) default <E> Edefault <E> Edefault <E> @NotNull List<E>findByIds(Class<E> type, Collection<?> ids) default <E> @NotNull List<E>findByIds(Fetcher<E> fetcher, Collection<?> ids) default <K,V> @NotNull Map<K, V> findMapByIds(Class<V> type, Collection<K> ids) default <K,V> @NotNull Map<K, V> findMapByIds(Fetcher<V> fetcher, Collection<K> ids) 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.default <E> SimpleSaveResult<E>insert(E entity) default <E> SimpleSaveResult<E>insert(org.babyfish.jimmer.Input<E> input) default <E> SimpleSaveResult<E>merge(E entity) Note: The 'merge' of 'Jimmer' and the 'merge' of 'JPA' are completely different concepts!default <E> SimpleSaveResult<E>Note: The 'merge' of 'Jimmer' and the 'merge' of 'JPA' are completely different concepts!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!default <E> SimpleSaveResult<E>Note: The 'merge' of 'Jimmer' and the 'merge' of 'JPA' are completely different concepts!static JSqlClient.Builderdefault <E> SimpleSaveResult<E>save(E entity) default <E> SimpleSaveResult<E>default <E> SimpleSaveResult<E>save(org.babyfish.jimmer.Input<E> input) default <E> SimpleSaveResult<E>default <E> SimpleSaveResult<E>update(E entity) default <E> SimpleSaveResult<E>update(org.babyfish.jimmer.Input<E> input) 从接口继承的方法 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
-
findById
-
findByIds
-
findByIds
-
findMapByIds
-
findMapByIds
-
save
-
save
-
insert
-
update
-
save
-
save
-
insert
-
update
-
merge
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
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
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
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
For associated objects, only insert operations are executed. -
append
For associated objects, only insert operations are executed. -
append
For associated objects, only insert operations are executed. -
append
For associated objects, only insert operations are executed. -
deleteById
-
deleteById
-
deleteByIds
-
deleteByIds
-