类 AbstractJSqlClientDelegate
- 所有已实现的接口:
SubQueryProvider,JSqlClient,org.babyfish.jimmer.sql.meta.SqlContext,JSqlClientImplementor
- 直接已知子类:
JLazyInitializationSqlClient
-
嵌套类概要
从接口继承的嵌套类/接口 org.babyfish.jimmer.sql.runtime.JSqlClientImplementor
JSqlClientImplementor.Builder -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明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) <SE,ST extends TableEx<SE>, TE, TT extends TableEx<TE>>
MutableSubQuerycreateAssociationSubQuery(AssociationTable<SE, ST, TE, TT> table) createDelete(TableProxy<?> table) <T extends TableProxy<?>>
MutableRootQuery<T>createQuery(T table) createSubQuery(TableProxy<?> table) createUpdate(TableProxy<?> table) deleteById(@NotNull Class<?> type, @NotNull Object id, @NotNull DeleteMode mode) deleteById(Class<?> type, Object id) deleteByIds(Class<?> type, Iterable<?> ids) deleteByIds(Class<?> type, Iterable<?> ids, DeleteMode mode) filters(Consumer<FilterConfig> block) <T> T<E> E<T> @NotNull List<T><E> @NotNull List<E><K,V> @NotNull Map<K, V> findMapByIds(Class<V> type, Iterable<K> ids) <K,V> @NotNull Map<K, V> findMapByIds(Fetcher<V> fetcher, Iterable<K> ids) getAssociations(org.babyfish.jimmer.meta.ImmutableProp immutableProp) getAssociations(org.babyfish.jimmer.meta.TypedProp.Association<?, ?> prop) getAssociations(AssociationType associationType) intint@Nullable org.babyfish.jimmer.sql.DraftInterceptor<?,?> getDraftInterceptor(org.babyfish.jimmer.meta.ImmutableType type) org.babyfish.jimmer.sql.DraftPreProcessor<?>getDraftPreProcessor(org.babyfish.jimmer.meta.ImmutableType type) @Nullable ExceptionTranslator<Exception>org.babyfish.jimmer.sql.meta.IdGeneratorgetIdGenerator(Class<?> entityType) org.babyfish.jimmer.sql.meta.LogicalDeletedValueGenerator<?>getLogicalDeletedValueGenerator(Class<?> logicalDeletedValueGeneratorType) org.babyfish.jimmer.sql.meta.LogicalDeletedValueGenerator<?>intorg.babyfish.jimmer.sql.meta.MetadataStrategyintReader<?>Reader<?>getReader(org.babyfish.jimmer.meta.ImmutableProp prop) Reader<?>getReader(org.babyfish.jimmer.meta.ImmutableType type) TransientResolver<?,?> getResolver(org.babyfish.jimmer.meta.ImmutableProp prop) <T,S> ScalarProvider<T, S> getScalarProvider(Class<T> scalarType) <T,S> ScalarProvider<T, S> getScalarProvider(org.babyfish.jimmer.meta.ImmutableProp prop) <T,S> ScalarProvider<T, S> getScalarProvider(org.babyfish.jimmer.meta.TypedProp<T, ?> prop) getSlaveConnectionManager(boolean forUpdate) 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.org.babyfish.jimmer.sql.meta.UserIdGenerator<?>getUserIdGenerator(Class<?> userIdGeneratorType) org.babyfish.jimmer.sql.meta.UserIdGenerator<?>getUserIdGenerator(String ref) StrategyProvider<org.babyfish.jimmer.sql.meta.UserIdGenerator<?>>void<E> SimpleSaveResult<E>insert(E entity) Insert an entity object<E> SimpleSaveResult<E>insert(E entity, @NotNull AssociatedSaveMode associatedSaveMode) Insert an entity object<E> SimpleSaveResult<E>insert(@NotNull org.babyfish.jimmer.Input<E> input) Insert an input DTO<E> SimpleSaveResult<E>insert(@NotNull org.babyfish.jimmer.Input<E> input, @NotNull AssociatedSaveMode associatedSaveMode) Insert an input DTO<E> SimpleSaveResult<E>insertIfAbsent(E entity) Insert an entity object if necessary, if the entity object exists in database, ignore it.<E> SimpleSaveResult<E>insertIfAbsent(E entity, @NotNull AssociatedSaveMode associatedSaveMode) Insert an entity object if necessary, if the entity object exists in database, ignore it.<E> SimpleSaveResult<E>insertIfAbsent(@NotNull org.babyfish.jimmer.Input<E> input) Insert an input DTO if necessary, that means to convert the input DTO to entity object and save it.<E> SimpleSaveResult<E>insertIfAbsent(@NotNull org.babyfish.jimmer.Input<E> input, @NotNull AssociatedSaveMode associatedSaveMode) Insert an input DTO if necessary, that means to convert the input DTO to entity object and save it.booleanbooleanbooleanboolean<E> SimpleSaveResult<E>merge(E entity) Merge an entity object<E> SimpleSaveResult<E>merge(E entity, @NotNull AssociatedSaveMode associatedSaveMode) Merge an entity object<E> SimpleSaveResult<E>merge(@NotNull org.babyfish.jimmer.Input<E> input) Merge an input DTO<E> SimpleSaveResult<E>merge(@NotNull org.babyfish.jimmer.Input<E> input, @NotNull AssociatedSaveMode associatedSaveMode) Merge an input DTO<E> SimpleSaveResult<E>save(E entity) Save an entity object<E> SimpleSaveResult<E>save(E entity, AssociatedSaveMode associatedMode) Save an entity object<E> SimpleSaveResult<E>Save an entity object<E> SimpleSaveResult<E>save(E entity, SaveMode mode, @NotNull AssociatedSaveMode associatedMode) Save an entity object<E> SimpleSaveResult<E>save(@NotNull org.babyfish.jimmer.Input<E> input) Save an input DTO<E> SimpleSaveResult<E>save(@NotNull org.babyfish.jimmer.Input<E> input, @NotNull AssociatedSaveMode associatedMode) Save an input DTO<E> SimpleSaveResult<E>Save an input DTO<E> SimpleSaveResult<E>save(@NotNull org.babyfish.jimmer.Input<E> input, @NotNull SaveMode mode, @NotNull AssociatedSaveMode associatedMode) Save an input DTOprotected abstract JSqlClientImplementor<T extends org.babyfish.jimmer.sql.meta.SqlContext>
Tunwrap()<E> SimpleSaveResult<E>update(E entity) Update an entity object<E> SimpleSaveResult<E>update(E entity, @NotNull AssociatedSaveMode associatedSaveMode) Update an entity object<E> SimpleSaveResult<E>update(@NotNull org.babyfish.jimmer.Input<E> input) Update an input DTO<E> SimpleSaveResult<E>update(@NotNull org.babyfish.jimmer.Input<E> input, @NotNull AssociatedSaveMode associatedSaveMode) Update an input DTO从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 org.babyfish.jimmer.sql.JSqlClient
findOneById, findOneById, saveEntities, saveEntities, saveEntities, saveEntities, saveInputs, saveInputs, saveInputs, saveInputs
-
构造器详细资料
-
AbstractJSqlClientDelegate
public AbstractJSqlClientDelegate()
-
-
方法详细资料
-
sqlClient
-
unwrap
public <T extends org.babyfish.jimmer.sql.meta.SqlContext> T unwrap()- 指定者:
unwrap在接口中org.babyfish.jimmer.sql.meta.SqlContext
-
getUserIdGenerator
public org.babyfish.jimmer.sql.meta.UserIdGenerator<?> getUserIdGenerator(String ref) throws Exception - 指定者:
getUserIdGenerator在接口中org.babyfish.jimmer.sql.meta.SqlContext- 抛出:
Exception
-
getUserIdGenerator
public org.babyfish.jimmer.sql.meta.UserIdGenerator<?> getUserIdGenerator(Class<?> userIdGeneratorType) throws Exception - 指定者:
getUserIdGenerator在接口中org.babyfish.jimmer.sql.meta.SqlContext- 抛出:
Exception
-
getLogicalDeletedValueGenerator
public org.babyfish.jimmer.sql.meta.LogicalDeletedValueGenerator<?> getLogicalDeletedValueGenerator(String ref) throws Exception - 指定者:
getLogicalDeletedValueGenerator在接口中org.babyfish.jimmer.sql.meta.SqlContext- 抛出:
Exception
-
getLogicalDeletedValueGenerator
public org.babyfish.jimmer.sql.meta.LogicalDeletedValueGenerator<?> getLogicalDeletedValueGenerator(Class<?> logicalDeletedValueGeneratorType) throws Exception - 指定者:
getLogicalDeletedValueGenerator在接口中org.babyfish.jimmer.sql.meta.SqlContext- 抛出:
Exception
-
createQuery
- 指定者:
createQuery在接口中JSqlClient
-
createUpdate
- 指定者:
createUpdate在接口中JSqlClient
-
createDelete
- 指定者:
createDelete在接口中JSqlClient
-
createAssociationQuery
public <SE,ST extends Table<SE>, MutableRootQuery<AssociationTable<SE,TE, TT extends Table<TE>> ST, createAssociationQueryTE, TT>> (AssociationTable<SE, ST, TE, TT> table) - 指定者:
createAssociationQuery在接口中JSqlClient
-
getEntities
- 指定者:
getEntities在接口中JSqlClient
-
getTriggers
从接口复制的说明:JSqlClientThis method is equivalent to `getTriggers(false)`- 指定者:
getTriggers在接口中JSqlClient- 返回:
-
getTriggers
从接口复制的说明:JSqlClient-
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
- 指定者:
getTriggers在接口中JSqlClient- 参数:
transaction-- 返回:
- Trigger
-
If trigger type is 'BINLOG_ONLY'
-
getAssociations
- 指定者:
getAssociations在接口中JSqlClient
-
getAssociations
- 指定者:
getAssociations在接口中JSqlClient
-
getAssociations
- 指定者:
getAssociations在接口中JSqlClient
-
getCaches
- 指定者:
getCaches在接口中JSqlClient
-
getFilters
- 指定者:
getFilters在接口中JSqlClient
-
getBinLog
- 指定者:
getBinLog在接口中JSqlClient
-
findById
- 指定者:
findById在接口中JSqlClient- 类型参数:
T- Entity type or output DTO type
-
findById
- 指定者:
findById在接口中JSqlClient
-
findByIds
- 指定者:
findByIds在接口中JSqlClient- 类型参数:
T- Entity type or output DTO type
-
findByIds
- 指定者:
findByIds在接口中JSqlClient
-
findMapByIds
- 指定者:
findMapByIds在接口中JSqlClient- 类型参数:
V- Entity type or output DTO type
-
findMapByIds
- 指定者:
findMapByIds在接口中JSqlClient
-
save
public <E> SimpleSaveResult<E> save(E entity, SaveMode mode, @NotNull @NotNull AssociatedSaveMode associatedMode) 从接口复制的说明:JSqlClientSave an entity object- 指定者:
save在接口中JSqlClient- 类型参数:
E- The type of saved entity- 参数:
entity- The saved entity object.Note: The jimmer entity is not POJO, it can easily express data structures of arbitrary shape, you can use it to save data structures of arbitrary shape.
Unlike most JVM ORMs, Jimmer does not sepcified the shape of the saved data structure by using configuration such as `insertable`, `updatable` or `cascade`; instead, it uses the dynamic nature of entity object itself to describe the shape of saved data structure, without prior design
Unspecified properties will be ignored, only the specified properties (whether null or not) will be saved. In addition to objects with only id property, any associated objects will result in deeper recursive saves.
mode- The save mode of aggregate-rootassociatedMode- The save mode of associated-objects- 返回:
- The saved result for single object
-
save
从接口复制的说明:JSqlClientSave an entity object- 指定者:
save在接口中JSqlClient- 类型参数:
E- The type of saved entity- 参数:
entity- The saved entity object.Note: The jimmer entity is not POJO, it can easily express data structures of arbitrary shape, you can use it to save data structures of arbitrary shape.
Unlike most JVM ORMs, Jimmer does not sepcified the shape of the saved data structure by using configuration such as `insertable`, `updatable` or `cascade`; instead, it uses the dynamic nature of entity object itself to describe the shape of saved data structure, without prior design
Unspecified properties will be ignored, only the specified properties (whether null or not) will be saved. In addition to objects with only id property, any associated objects will result in deeper recursive saves.
associatedMode- The save mode of associated-objectsThe save mode of aggregate-root is
SaveMode.UPSERT- 返回:
- The saved result for single object
-
save
从接口复制的说明:JSqlClientSave an entity object- 指定者:
save在接口中JSqlClient- 类型参数:
E- The type of saved entity- 参数:
entity- The saved entity object.Note: The jimmer entity is not POJO, it can easily express data structures of arbitrary shape, you can use it to save data structures of arbitrary shape.
Unlike most JVM ORMs, Jimmer does not sepcified the shape of the saved data structure by using configuration such as `insertable`, `updatable` or `cascade`; instead, it uses the dynamic nature of entity object itself to describe the shape of saved data structure, without prior design
Unspecified properties will be ignored, only the specified properties (whether null or not) will be saved. In addition to objects with only id property, any associated objects will result in deeper recursive saves.
mode- The save mode of aggregate-rootThe associated save mode of associated objects is
AssociatedSaveMode.REPLACE- 返回:
- The saved result for single object
-
save
从接口复制的说明:JSqlClientSave an entity object- 指定者:
save在接口中JSqlClient- 类型参数:
E- The type of saved entity- 参数:
entity- The saved entity object.Note: The jimmer entity is not POJO, it can easily express data structures of arbitrary shape, you can use it to save data structures of arbitrary shape.
Unlike most JVM ORMs, Jimmer does not sepcified the shape of the saved data structure by using configuration such as `insertable`, `updatable` or `cascade`; instead, it uses the dynamic nature of entity object itself to describe the shape of saved data structure, without prior design
Unspecified properties will be ignored, only the specified properties (whether null or not) will be saved. In addition to objects with only id property, any associated objects will result in deeper recursive saves.
The save mode of aggregate-root is
SaveMode.UPSERTThe associated save mode of associated objects is
AssociatedSaveMode.REPLACE- 返回:
- The saved result for single object
-
insert
从接口复制的说明:JSqlClientInsert an entity object- 指定者:
insert在接口中JSqlClient- 类型参数:
E- The type of inserted entity- 参数:
entity- The inserted entity objectNote: The jimmer entity is not POJO, it can easily express data structures of arbitrary shape, you can use it to save data structures of arbitrary shape.
Unlike most JVM ORMs, Jimmer does not sepcified the shape of the saved data structure by using configuration such as `insertable`, `updatable` or `cascade`; instead, it uses the dynamic nature of entity object itself to describe the shape of saved data structure, without prior design
Unspecified properties will be ignored, only the specified properties (whether null or not) will be saved. In addition to objects with only id property, any associated objects will result in deeper recursive saves.
- The save mode of aggregate-root is
SaveMode.INSERT_ONLY - The associated save mode of associated objects is
AssociatedSaveMode.APPEND
- The save mode of aggregate-root is
- 返回:
- The save result for single object
-
insert
public <E> SimpleSaveResult<E> insert(@NotNull E entity, @NotNull @NotNull AssociatedSaveMode associatedSaveMode) 从接口复制的说明:JSqlClientInsert an entity object- 指定者:
insert在接口中JSqlClient- 类型参数:
E- The type of inserted entity- 参数:
entity- The inserted entity objectNote: The jimmer entity is not POJO, it can easily express data structures of arbitrary shape, you can use it to save data structures of arbitrary shape.
Unlike most JVM ORMs, Jimmer does not sepcified the shape of the saved data structure by using configuration such as `insertable`, `updatable` or `cascade`; instead, it uses the dynamic nature of entity object itself to describe the shape of saved data structure, without prior design
Unspecified properties will be ignored, only the specified properties (whether null or not) will be saved. In addition to objects with only id property, any associated objects will result in deeper recursive saves.
The save mode of aggregate-root is
SaveMode.INSERT_ONLYassociatedSaveMode- The associated save mode of associated objects.- 返回:
- The save result for single object
-
insertIfAbsent
从接口复制的说明:JSqlClientInsert an entity object if necessary, if the entity object exists in database, ignore it.- If the value of id property decorated by
Idis specified, use id value to check whether the entity object exists in database - otherwise, if the values of key properties decorated by
Keyis specified use key values to check whether the entity object exists in database - If neither value of id property nor values of key properties is specified, exception will be raised.
- 指定者:
insertIfAbsent在接口中JSqlClient- 类型参数:
E- The type of inserted entity- 参数:
entity- The inserted entity objectNote: The jimmer entity is not POJO, it can easily express data structures of arbitrary shape, you can use it to save data structures of arbitrary shape.
Unlike most JVM ORMs, Jimmer does not sepcified the shape of the saved data structure by using configuration such as `insertable`, `updatable` or `cascade`; instead, it uses the dynamic nature of entity object itself to describe the shape of saved data structure, without prior design
Unspecified properties will be ignored, only the specified properties (whether null or not) will be saved. In addition to objects with only id property, any associated objects will result in deeper recursive saves.
- The save mode of aggregate-root is
SaveMode.INSERT_IF_ABSENT - The associated save mode of associated objects
AssociatedSaveMode.APPEND_IF_ABSENT
- The save mode of aggregate-root is
- 返回:
- The save result for single object
- If the value of id property decorated by
-
insertIfAbsent
public <E> SimpleSaveResult<E> insertIfAbsent(@NotNull E entity, @NotNull @NotNull AssociatedSaveMode associatedSaveMode) 从接口复制的说明:JSqlClientInsert an entity object if necessary, if the entity object exists in database, ignore it.- If the value of id property decorated by
Idis specified, use id value to check whether the entity object exists in database - otherwise, if the values of key properties decorated by
Keyis specified use key values to check whether the entity object exists in database - If neither value of id property nor values of key properties is specified, exception will be raised.
- 指定者:
insertIfAbsent在接口中JSqlClient- 类型参数:
E- The type of inserted entity- 参数:
entity- The inserted entity objectNote: The jimmer entity is not POJO, it can easily express data structures of arbitrary shape, you can use it to save data structures of arbitrary shape.
Unlike most JVM ORMs, Jimmer does not sepcified the shape of the saved data structure by using configuration such as `insertable`, `updatable` or `cascade`; instead, it uses the dynamic nature of entity object itself to describe the shape of saved data structure, without prior design
Unspecified properties will be ignored, only the specified properties (whether null or not) will be saved. In addition to objects with only id property, any associated objects will result in deeper recursive saves.
The save mode of aggregate-root is
SaveMode.INSERT_IF_ABSENTassociatedSaveMode- The associated save mode of associated objects.- 返回:
- The save result for single object
- If the value of id property decorated by
-
update
从接口复制的说明:JSqlClientUpdate an entity object- 指定者:
update在接口中JSqlClient- 类型参数:
E- The type of inserted entity- 参数:
entity- The updated entity objectNote: The jimmer entity is not POJO, it can easily express data structures of arbitrary shape, you can use it to save data structures of arbitrary shape.
Unlike most JVM ORMs, Jimmer does not sepcified the shape of the saved data structure by using configuration such as `insertable`, `updatable` or `cascade`; instead, it uses the dynamic nature of entity object itself to describe the shape of saved data structure, without prior design
Unspecified properties will be ignored, only the specified properties (whether null or not) will be saved. In addition to objects with only id property, any associated objects will result in deeper recursive saves.
- The save mode of aggregate-root is
SaveMode.UPDATE_ONLY - The associated save mode of associated objects is
AssociatedSaveMode.UPDATE
- The save mode of aggregate-root is
- 返回:
- The save result for single object
-
update
public <E> SimpleSaveResult<E> update(@NotNull E entity, @NotNull @NotNull AssociatedSaveMode associatedSaveMode) 从接口复制的说明:JSqlClientUpdate an entity object- 指定者:
update在接口中JSqlClient- 类型参数:
E- The type of inserted entity- 参数:
entity- The updated entity objectNote: The jimmer entity is not POJO, it can easily express data structures of arbitrary shape, you can use it to save data structures of arbitrary shape.
Unlike most JVM ORMs, Jimmer does not sepcified the shape of the saved data structure by using configuration such as `insertable`, `updatable` or `cascade`; instead, it uses the dynamic nature of entity object itself to describe the shape of saved data structure, without prior design
Unspecified properties will be ignored, only the specified properties (whether null or not) will be saved. In addition to objects with only id property, any associated objects will result in deeper recursive saves.
The save mode of aggregate-root is
SaveMode.UPDATE_ONLYassociatedSaveMode- The associated save mode of associated objects.- 返回:
- The save result for single object
-
merge
从接口复制的说明:JSqlClientMerge an entity object- 指定者:
merge在接口中JSqlClient- 类型参数:
E- The type of inserted entity- 参数:
entity- The merged entity objectNote: The jimmer entity is not POJO, it can easily express data structures of arbitrary shape, you can use it to save data structures of arbitrary shape.
Unlike most JVM ORMs, Jimmer does not sepcified the shape of the saved data structure by using configuration such as `insertable`, `updatable` or `cascade`; instead, it uses the dynamic nature of entity object itself to describe the shape of saved data structure, without prior design
Unspecified properties will be ignored, only the specified properties (whether null or not) will be saved. In addition to objects with only id property, any associated objects will result in deeper recursive saves.
- The save mode of aggregate-root is
SaveMode.UPSERT - The associated save mode of associated objects is
AssociatedSaveMode.MERGE
- The save mode of aggregate-root is
- 返回:
- The save result for single object
-
merge
public <E> SimpleSaveResult<E> merge(@NotNull E entity, @NotNull @NotNull AssociatedSaveMode associatedSaveMode) 从接口复制的说明:JSqlClientMerge an entity object- 指定者:
merge在接口中JSqlClient- 类型参数:
E- The type of inserted entity- 参数:
entity- The merged entity objectNote: The jimmer entity is not POJO, it can easily express data structures of arbitrary shape, you can use it to save data structures of arbitrary shape.
Unlike most JVM ORMs, Jimmer does not sepcified the shape of the saved data structure by using configuration such as `insertable`, `updatable` or `cascade`; instead, it uses the dynamic nature of entity object itself to describe the shape of saved data structure, without prior design
Unspecified properties will be ignored, only the specified properties (whether null or not) will be saved. In addition to objects with only id property, any associated objects will result in deeper recursive saves.
The save mode of aggregate-root is
SaveMode.UPSERTassociatedSaveMode- The associated save mode of associated objects.- 返回:
- The save result for single object
-
save
从接口复制的说明:JSqlClientSave an input DTO- 指定者:
save在接口中JSqlClient- 类型参数:
E- The type of saved entity- 参数:
input- The saved input DTOIn terms of internal mechanisms, any type of Input DTO is automatically converted into an entity object of the same type.
Note: The jimmer entity is not POJO, it can easily express data structures of arbitrary shape, you can use it to save data structures of arbitrary shape.
Unlike most JVM ORMs, Jimmer does not sepcified the shape of the saved data structure by using configuration such as `insertable`, `updatable` or `cascade`; instead, it uses the dynamic nature of entity object itself to describe the shape of saved data structure, without prior design
Unspecified properties will be ignored, only the specified properties (whether null or not) will be saved. In addition to objects with only id property, any associated objects will result in deeper recursive saves.
The save mode of aggregate-root is
SaveMode.UPSERTThe associated save mode of associated objects is
AssociatedSaveMode.REPLACE- 返回:
- The saved result for single object
-
save
public <E> SimpleSaveResult<E> save(@NotNull @NotNull org.babyfish.jimmer.Input<E> input, @NotNull @NotNull SaveMode mode) 从接口复制的说明:JSqlClientSave an input DTO- 指定者:
save在接口中JSqlClient- 类型参数:
E- The type of saved entity- 参数:
input- The saved input DTOIn terms of internal mechanisms, any type of Input DTO is automatically converted into an entity object of the same type.
Note: The jimmer entity is not POJO, it can easily express data structures of arbitrary shape, you can use it to save data structures of arbitrary shape.
Unlike most JVM ORMs, Jimmer does not sepcified the shape of the saved data structure by using configuration such as `insertable`, `updatable` or `cascade`; instead, it uses the dynamic nature of entity object itself to describe the shape of saved data structure, without prior design
Unspecified properties will be ignored, only the specified properties (whether null or not) will be saved. In addition to objects with only id property, any associated objects will result in deeper recursive saves.
mode- The save mode of aggregate-rootThe associated save mode of associated objects is
AssociatedSaveMode.REPLACE- 返回:
- The saved result for single object
-
save
public <E> SimpleSaveResult<E> save(@NotNull @NotNull org.babyfish.jimmer.Input<E> input, @NotNull @NotNull AssociatedSaveMode associatedMode) 从接口复制的说明:JSqlClientSave an input DTO- 指定者:
save在接口中JSqlClient- 类型参数:
E- The type of saved entity- 参数:
input- The saved input DTOIn terms of internal mechanisms, any type of Input DTO is automatically converted into an entity object of the same type.
Note: The jimmer entity is not POJO, it can easily express data structures of arbitrary shape, you can use it to save data structures of arbitrary shape.
Unlike most JVM ORMs, Jimmer does not sepcified the shape of the saved data structure by using configuration such as `insertable`, `updatable` or `cascade`; instead, it uses the dynamic nature of entity object itself to describe the shape of saved data structure, without prior design
Unspecified properties will be ignored, only the specified properties (whether null or not) will be saved. In addition to objects with only id property, any associated objects will result in deeper recursive saves.
associatedMode- The save mode of associated-objectsThe save mode of aggregate-root is
SaveMode.UPSERT- 返回:
- The saved result for single object
-
save
public <E> SimpleSaveResult<E> save(@NotNull @NotNull org.babyfish.jimmer.Input<E> input, @NotNull @NotNull SaveMode mode, @NotNull @NotNull AssociatedSaveMode associatedMode) 从接口复制的说明:JSqlClientSave an input DTO- 指定者:
save在接口中JSqlClient- 类型参数:
E- The type of saved entity- 参数:
input- The saved input DTOIn terms of internal mechanisms, any type of Input DTO is automatically converted into an entity object of the same type.
Note: The jimmer entity is not POJO, it can easily express data structures of arbitrary shape, you can use it to save data structures of arbitrary shape.
Unlike most JVM ORMs, Jimmer does not sepcified the shape of the saved data structure by using configuration such as `insertable`, `updatable` or `cascade`; instead, it uses the dynamic nature of entity object itself to describe the shape of saved data structure, without prior design
Unspecified properties will be ignored, only the specified properties (whether null or not) will be saved. In addition to objects with only id property, any associated objects will result in deeper recursive saves.
mode- The save mode of aggregate-rootassociatedMode- The save mode of associated-objects- 返回:
- The saved result for single object
-
insert
从接口复制的说明:JSqlClientInsert an input DTO- 指定者:
insert在接口中JSqlClient- 类型参数:
E- The type of inserted entity- 参数:
input- The inserted input DTOIn terms of internal mechanisms, any type of Input DTO is automatically converted into an entity object of the same type.
Note: The jimmer entity is not POJO, it can easily express data structures of arbitrary shape, you can use it to save data structures of arbitrary shape.
Unlike most JVM ORMs, Jimmer does not sepcified the shape of the saved data structure by using configuration such as `insertable`, `updatable` or `cascade`; instead, it uses the dynamic nature of entity object itself to describe the shape of saved data structure, without prior design
Unspecified properties will be ignored, only the specified properties (whether null or not) will be saved. In addition to objects with only id property, any associated objects will result in deeper recursive saves.
- The save mode of aggregate-root is
SaveMode.INSERT_ONLY - The associated save mode of associated objects is
AssociatedSaveMode.APPEND
- The save mode of aggregate-root is
- 返回:
- The save result for single object
-
insert
public <E> SimpleSaveResult<E> insert(@NotNull @NotNull org.babyfish.jimmer.Input<E> input, @NotNull @NotNull AssociatedSaveMode associatedSaveMode) 从接口复制的说明:JSqlClientInsert an input DTO- 指定者:
insert在接口中JSqlClient- 类型参数:
E- The type of inserted entity- 参数:
input- The inserted input DTOIn terms of internal mechanisms, any type of Input DTO is automatically converted into an entity object of the same type.
Note: The jimmer entity is not POJO, it can easily express data structures of arbitrary shape, you can use it to save data structures of arbitrary shape.
Unlike most JVM ORMs, Jimmer does not sepcified the shape of the saved data structure by using configuration such as `insertable`, `updatable` or `cascade`; instead, it uses the dynamic nature of entity object itself to describe the shape of saved data structure, without prior design
Unspecified properties will be ignored, only the specified properties (whether null or not) will be saved. In addition to objects with only id property, any associated objects will result in deeper recursive saves.
The save mode of aggregate-root is
SaveMode.INSERT_ONLYassociatedSaveMode- The associated save mode of associated objects.- 返回:
- The save result for single object
-
insertIfAbsent
从接口复制的说明:JSqlClientInsert an input DTO if necessary, that means to convert the input DTO to entity object and save it. If the entity object exists in database, ignore it.- If the value of id property decorated by
Idis specified, use id value to check whether the entity object exists in database - otherwise, if the values of key properties decorated by
Keyis specified use key values to check whether the entity object exists in database - If neither value of id property nor values of key properties is specified, exception will be raised.
- 指定者:
insertIfAbsent在接口中JSqlClient- 类型参数:
E- The type of inserted entity- 参数:
input- The inserted input DTOIn terms of internal mechanisms, any type of Input DTO is automatically converted into an entity object of the same type.
Note: The jimmer entity is not POJO, it can easily express data structures of arbitrary shape, you can use it to save data structures of arbitrary shape.
Unlike most JVM ORMs, Jimmer does not sepcified the shape of the saved data structure by using configuration such as `insertable`, `updatable` or `cascade`; instead, it uses the dynamic nature of entity object itself to describe the shape of saved data structure, without prior design
Unspecified properties will be ignored, only the specified properties (whether null or not) will be saved. In addition to objects with only id property, any associated objects will result in deeper recursive saves.
- The save mode of aggregate-root is
SaveMode.INSERT_IF_ABSENT - The associated save mode of associated objects is
AssociatedSaveMode.APPEND_IF_ABSENT
- The save mode of aggregate-root is
- 返回:
- The save result for single object
- If the value of id property decorated by
-
insertIfAbsent
public <E> SimpleSaveResult<E> insertIfAbsent(@NotNull @NotNull org.babyfish.jimmer.Input<E> input, @NotNull @NotNull AssociatedSaveMode associatedSaveMode) 从接口复制的说明:JSqlClientInsert an input DTO if necessary, that means to convert the input DTO to entity object and save it. If the entity object exists in database, ignore it.- If the value of id property decorated by
Idis specified, use id value to check whether the entity object exists in database - otherwise, if the values of key properties decorated by
Keyis specified use key values to check whether the entity object exists in database - If neither value of id property nor values of key properties is specified, exception will be raised.
- 指定者:
insertIfAbsent在接口中JSqlClient- 类型参数:
E- The type of inserted entity- 参数:
input- The inserted input DTOIn terms of internal mechanisms, any type of Input DTO is automatically converted into an entity object of the same type.
Note: The jimmer entity is not POJO, it can easily express data structures of arbitrary shape, you can use it to save data structures of arbitrary shape.
Unlike most JVM ORMs, Jimmer does not sepcified the shape of the saved data structure by using configuration such as `insertable`, `updatable` or `cascade`; instead, it uses the dynamic nature of entity object itself to describe the shape of saved data structure, without prior design
Unspecified properties will be ignored, only the specified properties (whether null or not) will be saved. In addition to objects with only id property, any associated objects will result in deeper recursive saves.
The save mode of aggregate-root is
SaveMode.INSERT_IF_ABSENTassociatedSaveMode- The associated save mode of associated objects.- 返回:
- The save result for single object
- If the value of id property decorated by
-
update
从接口复制的说明:JSqlClientUpdate an input DTO- 指定者:
update在接口中JSqlClient- 类型参数:
E- The type of inserted entity- 参数:
input- The updated input DTOIn terms of internal mechanisms, any type of Input DTO is automatically converted into an entity object of the same type.
Note: The jimmer entity is not POJO, it can easily express data structures of arbitrary shape, you can use it to save data structures of arbitrary shape.
Unlike most JVM ORMs, Jimmer does not sepcified the shape of the saved data structure by using configuration such as `insertable`, `updatable` or `cascade`; instead, it uses the dynamic nature of entity object itself to describe the shape of saved data structure, without prior design
Unspecified properties will be ignored, only the specified properties (whether null or not) will be saved. In addition to objects with only id property, any associated objects will result in deeper recursive saves.
- The save mode of aggregate-root is
SaveMode.UPDATE_ONLY - The associated save mode of associated objects is
AssociatedSaveMode.UPDATE
- The save mode of aggregate-root is
- 返回:
- The save result for single object
-
update
public <E> SimpleSaveResult<E> update(@NotNull @NotNull org.babyfish.jimmer.Input<E> input, @NotNull @NotNull AssociatedSaveMode associatedSaveMode) 从接口复制的说明:JSqlClientUpdate an input DTO- 指定者:
update在接口中JSqlClient- 类型参数:
E- The type of inserted entity- 参数:
input- The updated input DTOIn terms of internal mechanisms, any type of Input DTO is automatically converted into an entity object of the same type.
Note: The jimmer entity is not POJO, it can easily express data structures of arbitrary shape, you can use it to save data structures of arbitrary shape.
Unlike most JVM ORMs, Jimmer does not sepcified the shape of the saved data structure by using configuration such as `insertable`, `updatable` or `cascade`; instead, it uses the dynamic nature of entity object itself to describe the shape of saved data structure, without prior design
Unspecified properties will be ignored, only the specified properties (whether null or not) will be saved. In addition to objects with only id property, any associated objects will result in deeper recursive saves.
The save mode of aggregate-root is
SaveMode.UPDATE_ONLYassociatedSaveMode- The associated save mode of associated objects.- 返回:
- The save result for single object
-
merge
从接口复制的说明:JSqlClientMerge an input DTO- 指定者:
merge在接口中JSqlClient- 类型参数:
E- The type of inserted entity- 参数:
input- The merged input DTOIn terms of internal mechanisms, any type of Input DTO is automatically converted into an entity object of the same type.
Note: The jimmer entity is not POJO, it can easily express data structures of arbitrary shape, you can use it to save data structures of arbitrary shape.
Unlike most JVM ORMs, Jimmer does not sepcified the shape of the saved data structure by using configuration such as `insertable`, `updatable` or `cascade`; instead, it uses the dynamic nature of entity object itself to describe the shape of saved data structure, without prior design
Unspecified properties will be ignored, only the specified properties (whether null or not) will be saved. In addition to objects with only id property, any associated objects will result in deeper recursive saves.
- The save mode of aggregate-root is
SaveMode.UPSERT - The associated save mode of associated objects is
AssociatedSaveMode.MERGE
- The save mode of aggregate-root is
- 返回:
- The save result for single object
-
merge
public <E> SimpleSaveResult<E> merge(@NotNull @NotNull org.babyfish.jimmer.Input<E> input, @NotNull @NotNull AssociatedSaveMode associatedSaveMode) 从接口复制的说明:JSqlClientMerge an input DTO- 指定者:
merge在接口中JSqlClient- 类型参数:
E- The type of inserted entity- 参数:
input- The merged input DTOIn terms of internal mechanisms, any type of Input DTO is automatically converted into an entity object of the same type.
Note: The jimmer entity is not POJO, it can easily express data structures of arbitrary shape, you can use it to save data structures of arbitrary shape.
Unlike most JVM ORMs, Jimmer does not sepcified the shape of the saved data structure by using configuration such as `insertable`, `updatable` or `cascade`; instead, it uses the dynamic nature of entity object itself to describe the shape of saved data structure, without prior design
Unspecified properties will be ignored, only the specified properties (whether null or not) will be saved. In addition to objects with only id property, any associated objects will result in deeper recursive saves.
The save mode of aggregate-root is
SaveMode.UPSERTassociatedSaveMode- The associated save mode of associated objects.- 返回:
- The save result for single object
-
deleteById
public DeleteResult deleteById(@NotNull @NotNull Class<?> type, @NotNull @NotNull Object id, @NotNull @NotNull DeleteMode mode) - 指定者:
deleteById在接口中JSqlClient
-
deleteById
- 指定者:
deleteById在接口中JSqlClient
-
deleteByIds
- 指定者:
deleteByIds在接口中JSqlClient
-
deleteByIds
- 指定者:
deleteByIds在接口中JSqlClient
-
createSubQuery
- 指定者:
createSubQuery在接口中SubQueryProvider
-
createAssociationSubQuery
public <SE,ST extends TableEx<SE>, MutableSubQuery createAssociationSubQueryTE, TT extends TableEx<TE>> (AssociationTable<SE, ST, TE, TT> table) - 指定者:
createAssociationSubQuery在接口中SubQueryProvider
-
getConnectionManager
- 指定者:
getConnectionManager在接口中JSqlClientImplementor
-
getSlaveConnectionManager
-
getDialect
- 指定者:
getDialect在接口中JSqlClientImplementor
-
getExecutor
- 指定者:
getExecutor在接口中JSqlClientImplementor
-
getEntityManager
- 指定者:
getEntityManager在接口中JSqlClientImplementor
-
getMetadataStrategy
public org.babyfish.jimmer.sql.meta.MetadataStrategy getMetadataStrategy()- 指定者:
getMetadataStrategy在接口中JSqlClientImplementor- 指定者:
getMetadataStrategy在接口中org.babyfish.jimmer.sql.meta.SqlContext
-
getExecutorContextPrefixes
-
getSqlFormatter
- 指定者:
getSqlFormatter在接口中JSqlClientImplementor
-
getCacheOperator
- 指定者:
getCacheOperator在接口中JSqlClientImplementor
-
getTriggerType
- 指定者:
getTriggerType在接口中JSqlClientImplementor
-
getScalarProvider
- 指定者:
getScalarProvider在接口中JSqlClientImplementor
-
getScalarProvider
- 指定者:
getScalarProvider在接口中JSqlClientImplementor
-
getScalarProvider
- 指定者:
getScalarProvider在接口中JSqlClientImplementor
-
getZoneId
- 指定者:
getZoneId在接口中JSqlClientImplementor
-
getIdGenerator
- 指定者:
getIdGenerator在接口中JSqlClientImplementor
-
getDefaultBatchSize
public int getDefaultBatchSize()- 指定者:
getDefaultBatchSize在接口中JSqlClientImplementor
-
getDefaultListBatchSize
public int getDefaultListBatchSize()- 指定者:
getDefaultListBatchSize在接口中JSqlClientImplementor
-
isInListPaddingEnabled
public boolean isInListPaddingEnabled()- 指定者:
isInListPaddingEnabled在接口中JSqlClientImplementor
-
isExpandedInListPaddingEnabled
public boolean isExpandedInListPaddingEnabled() -
getOffsetOptimizingThreshold
public int getOffsetOptimizingThreshold() -
getDefaultLockMode
- 指定者:
getDefaultLockMode在接口中JSqlClientImplementor
-
getMaxCommandJoinCount
public int getMaxCommandJoinCount()- 指定者:
getMaxCommandJoinCount在接口中JSqlClientImplementor
-
isTargetTransferable
public boolean isTargetTransferable()- 指定者:
isTargetTransferable在接口中JSqlClientImplementor
-
getExceptionTranslator
- 指定者:
getExceptionTranslator在接口中JSqlClientImplementor
-
getResolver
- 指定者:
getResolver在接口中JSqlClientImplementor
-
getUserIdGeneratorProvider
public StrategyProvider<org.babyfish.jimmer.sql.meta.UserIdGenerator<?>> getUserIdGeneratorProvider() -
getTransientResolverProvider
-
isDefaultDissociationActionCheckable
public boolean isDefaultDissociationActionCheckable() -
getIdOnlyTargetCheckingLevel
-
getDraftPreProcessor
public org.babyfish.jimmer.sql.DraftPreProcessor<?> getDraftPreProcessor(org.babyfish.jimmer.meta.ImmutableType type) - 指定者:
getDraftPreProcessor在接口中JSqlClientImplementor
-
getDraftInterceptor
@Nullable public @Nullable org.babyfish.jimmer.sql.DraftInterceptor<?,?> getDraftInterceptor(org.babyfish.jimmer.meta.ImmutableType type) - 指定者:
getDraftInterceptor在接口中JSqlClientImplementor
-
getReader
- 指定者:
getReader在接口中JSqlClientImplementor
-
getReader
- 指定者:
getReader在接口中JSqlClientImplementor
-
getReader
- 指定者:
getReader在接口中JSqlClientImplementor
-
getMicroServiceName
- 指定者:
getMicroServiceName在接口中JSqlClientImplementor
-
getMicroServiceExchange
- 指定者:
getMicroServiceExchange在接口中JSqlClientImplementor
-
caches
- 指定者:
caches在接口中JSqlClient- 指定者:
caches在接口中JSqlClientImplementor
-
filters
- 指定者:
filters在接口中JSqlClient- 指定者:
filters在接口中JSqlClientImplementor
-
disableSlaveConnectionManager
- 指定者:
disableSlaveConnectionManager在接口中JSqlClient- 指定者:
disableSlaveConnectionManager在接口中JSqlClientImplementor
-
executor
- 指定者:
executor在接口中JSqlClient- 指定者:
executor在接口中JSqlClientImplementor
-
getLoaders
- 指定者:
getLoaders在接口中JSqlClientImplementor
-
initialize
public void initialize()- 指定者:
initialize在接口中JSqlClientImplementor
-