类 AbstractJSqlClientDelegate
- 所有已实现的接口:
SubQueryProvider,JSqlClient,org.babyfish.jimmer.sql.meta.SqlContext,JSqlClientImplementor,Saver
- 直接已知子类:
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<?> intintorg.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> BatchSaveResult<E> insertEntities(@NotNull Iterable<E> entities) Insert some entities objects<E> BatchSaveResult<E> insertEntities(@NotNull Iterable<E> entities, @NotNull AssociatedSaveMode associatedMode) Insert some entities objects<E> BatchSaveResult<E> insertEntitiesIfAbsent(@NotNull Iterable<E> entities) Insert some entity objects if necessary, if some entity objects exists in database, ignore them.<E> BatchSaveResult<E> insertEntitiesIfAbsent(@NotNull Iterable<E> entities, @NotNull AssociatedSaveMode associatedMode) Insert some entity objects if necessary, if some entity objects exists in database, ignore them.<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.<E> BatchSaveResult<E> insertInputs(@NotNull Iterable<? extends org.babyfish.jimmer.Input<E>> inputs) Insert some input DTOs<E> BatchSaveResult<E> insertInputs(@NotNull Iterable<? extends org.babyfish.jimmer.Input<E>> inputs, @NotNull AssociatedSaveMode associatedMode) Insert some input DTOs<E> BatchSaveResult<E> insertInputsIfAbsent(@NotNull Iterable<? extends org.babyfish.jimmer.Input<E>> inputs) Insert some DTOs if necessary, if some DTOs exists in database, ignore them.<E> BatchSaveResult<E> insertInputsIfAbsent(@NotNull Iterable<? extends org.babyfish.jimmer.Input<E>> inputs, @NotNull AssociatedSaveMode associatedMode) Insert some DTOs if necessary, if some DTOs exists in database, ignore them.booleanisBatchForbidden(boolean dumbBatchAcceptable) booleanbooleanbooleanbooleanbooleanbooleanbooleanisUpsertWithUniqueConstraintSupported(org.babyfish.jimmer.meta.ImmutableType type) <E> SimpleSaveResult<E> merge(E entity) Merge an entity object<E> SimpleSaveResult<E> merge(@NotNull org.babyfish.jimmer.Input<E> input) Merge an input DTO<E> BatchSaveResult<E> mergeEntities(@NotNull Iterable<E> entities) Merge some entities objects<E> BatchSaveResult<E> mergeInputs(@NotNull Iterable<? extends org.babyfish.jimmer.Input<E>> inputs) Merge some input DTOs<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 DTO<E> SimpleEntitySaveCommand<E> saveCommand(E entity) <E> SimpleEntitySaveCommand<E> saveCommand(org.babyfish.jimmer.Input<E> input) <E> BatchSaveResult<E> saveEntities(@NotNull Iterable<E> entities) Save some entities objects<E> BatchSaveResult<E> saveEntities(@NotNull Iterable<E> entities, @NotNull AssociatedSaveMode associatedMode) Save some entities objects<E> BatchSaveResult<E> saveEntities(@NotNull Iterable<E> entities, @NotNull SaveMode mode) Save some entities objects<E> BatchSaveResult<E> saveEntities(@NotNull Iterable<E> entities, @NotNull SaveMode mode, @NotNull AssociatedSaveMode associatedMode) Save some entities objects<E> BatchEntitySaveCommand<E> saveEntitiesCommand(Iterable<E> entities) <E> BatchSaveResult<E> saveInputs(@NotNull Iterable<? extends org.babyfish.jimmer.Input<E>> inputs) Save some input DTOs<E> BatchSaveResult<E> saveInputs(@NotNull Iterable<? extends org.babyfish.jimmer.Input<E>> inputs, @NotNull SaveMode mode) Save some input DTOs<E> BatchSaveResult<E> saveInputs(@NotNull Iterable<? extends org.babyfish.jimmer.Input<E>> inputs, @NotNull SaveMode mode, @NotNull AssociatedSaveMode associatedMode) Save some input DTOs<E> BatchSaveResult<E> saveInputs(@NotNull Iterable<? extends org.babyfish.jimmer.Input<E>> inputs, AssociatedSaveMode associatedMode) Save some input DTOs<E> BatchEntitySaveCommand<E> saveInputsCommand(Iterable<? extends org.babyfish.jimmer.Input<E>> inputs) protected abstract JSqlClientImplementor<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.<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<E> BatchSaveResult<E> updateEntities(@NotNull Iterable<E> entities) Update some entities objects<E> BatchSaveResult<E> updateEntities(@NotNull Iterable<E> entities, @NotNull AssociatedSaveMode associatedMode) Update some entities objects<E> BatchSaveResult<E> updateInputs(@NotNull Iterable<? extends org.babyfish.jimmer.Input<E>> inputs) Update some input DTOs<E> BatchSaveResult<E> updateInputs(@NotNull Iterable<? extends org.babyfish.jimmer.Input<E>> inputs, @NotNull AssociatedSaveMode associatedMode) Update some input DTOs从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 org.babyfish.jimmer.sql.JSqlClient
findOneById, findOneById, transaction
-
构造器详细资料
-
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
-
saveCommand
- 指定者:
saveCommand在接口中JSqlClient- 指定者:
saveCommand在接口中Saver
-
saveCommand
- 指定者:
saveCommand在接口中Saver
-
saveEntitiesCommand
- 指定者:
saveEntitiesCommand在接口中JSqlClient- 指定者:
saveEntitiesCommand在接口中Saver
-
saveInputsCommand
public <E> BatchEntitySaveCommand<E> saveInputsCommand(Iterable<? extends org.babyfish.jimmer.Input<E>> inputs) - 指定者:
saveInputsCommand在接口中Saver
-
save
public <E> SimpleSaveResult<E> save(E entity, SaveMode mode, @NotNull @NotNull AssociatedSaveMode associatedMode) 从接口复制的说明:SaverSave an entity object- 指定者:
save在接口中Saver- 类型参数:
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 specified 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
从接口复制的说明:SaverSave an entity object- 指定者:
save在接口中Saver- 类型参数:
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 specified 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
从接口复制的说明:SaverSave an entity object- 指定者:
save在接口中Saver- 类型参数:
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 specified 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
从接口复制的说明:SaverSave an entity object- 指定者:
save在接口中Saver- 类型参数:
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 specified 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 AssociatedSaveMode associatedMode) 从接口复制的说明:SaverSave an input DTO- 指定者:
save在接口中Saver- 类型参数:
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 specified 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) 从接口复制的说明:SaverSave an input DTO- 指定者:
save在接口中Saver- 类型参数:
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 specified 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
从接口复制的说明:SaverSave an input DTO- 指定者:
save在接口中Saver- 类型参数:
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 specified 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) 从接口复制的说明:SaverSave an input DTO- 指定者:
save在接口中Saver- 类型参数:
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 specified 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
-
insert
从接口复制的说明:SaverInsert an entity object- 指定者:
insert在接口中Saver- 类型参数:
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 specified 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) 从接口复制的说明:SaverInsert an entity object- 指定者:
insert在接口中Saver- 类型参数:
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 specified 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
-
insert
从接口复制的说明:SaverInsert an input DTO- 指定者:
insert在接口中Saver- 类型参数:
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 specified 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) 从接口复制的说明:SaverInsert an input DTO- 指定者:
insert在接口中Saver- 类型参数:
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 specified 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
从接口复制的说明:SaverInsert 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在接口中Saver- 类型参数:
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 specified 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) 从接口复制的说明:SaverInsert 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在接口中Saver- 类型参数:
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 specified 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
-
insertIfAbsent
从接口复制的说明:SaverInsert 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在接口中Saver- 类型参数:
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 specified 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) 从接口复制的说明:SaverInsert 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在接口中Saver- 类型参数:
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 specified 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
从接口复制的说明:SaverUpdate an entity object- 指定者:
update在接口中Saver- 类型参数:
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 specified 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) 从接口复制的说明:SaverUpdate an entity object- 指定者:
update在接口中Saver- 类型参数:
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 specified 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
-
update
从接口复制的说明:SaverUpdate an input DTO- 指定者:
update在接口中Saver- 类型参数:
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 specified 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) 从接口复制的说明:SaverUpdate an input DTO- 指定者:
update在接口中Saver- 类型参数:
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 specified 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
从接口复制的说明:SaverMerge an entity object- 指定者:
merge在接口中Saver- 类型参数:
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 specified 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
从接口复制的说明:SaverMerge an input DTO- 指定者:
merge在接口中Saver- 类型参数:
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 specified 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
-
saveEntities
public <E> BatchSaveResult<E> saveEntities(@NotNull @NotNull Iterable<E> entities, @NotNull @NotNull SaveMode mode, @NotNull @NotNull AssociatedSaveMode associatedMode) 从接口复制的说明:SaverSave some entities objects- 指定者:
saveEntities在接口中Saver- 类型参数:
E- The type of saved entities- 参数:
entities- The saved entity objects.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 specified 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-rootsassociatedMode- The save mode of associated-objects- 返回:
- The saved result for multiple objects
-
saveEntities
public <E> BatchSaveResult<E> saveEntities(@NotNull @NotNull Iterable<E> entities, @NotNull @NotNull SaveMode mode) 从接口复制的说明:SaverSave some entities objects- 指定者:
saveEntities在接口中Saver- 类型参数:
E- The type of saved entities- 参数:
entities- The saved entity objects.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 specified 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 associated save mode of associated objects is
AssociatedSaveMode.REPLACEmode- The save mode of aggregate-roots- 返回:
- The saved result for multiple objects
-
saveEntities
public <E> BatchSaveResult<E> saveEntities(@NotNull @NotNull Iterable<E> entities, @NotNull @NotNull AssociatedSaveMode associatedMode) 从接口复制的说明:SaverSave some entities objects- 指定者:
saveEntities在接口中Saver- 类型参数:
E- The type of saved entities- 参数:
entities- The saved entity objects.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 specified 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-roots is
SaveMode.UPSERTassociatedMode- The save mode of associated-objects- 返回:
- The saved result for multiple objects
-
saveEntities
从接口复制的说明:SaverSave some entities objects- 指定者:
saveEntities在接口中Saver- 类型参数:
E- The type of saved entities- 参数:
entities- The saved entity objects.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 specified 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-roots is
SaveMode.UPSERT - The associated save mode of aggregated objects is
AssociatedSaveMode.REPLACE
- The save mode of aggregate-roots is
- 返回:
- The saved result for multiple objects
-
saveInputs
public <E> BatchSaveResult<E> saveInputs(@NotNull @NotNull Iterable<? extends org.babyfish.jimmer.Input<E>> inputs, @NotNull @NotNull SaveMode mode, @NotNull @NotNull AssociatedSaveMode associatedMode) 从接口复制的说明:SaverSave some input DTOs- 指定者:
saveInputs在接口中Saver- 类型参数:
E- The type of saved entities- 参数:
inputs- The saved input DTOs.In 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 specified 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-rootsassociatedMode- The save mode of associated-objects- 返回:
- The saved result for multiple objects
-
saveInputs
public <E> BatchSaveResult<E> saveInputs(@NotNull @NotNull Iterable<? extends org.babyfish.jimmer.Input<E>> inputs, @NotNull @NotNull SaveMode mode) 从接口复制的说明:SaverSave some input DTOs- 指定者:
saveInputs在接口中Saver- 类型参数:
E- The type of saved entities- 参数:
inputs- The saved input DTOs.In 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 specified 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 associated save mode of associated objects is
AssociatedSaveMode.REPLACEmode- The save mode of aggregate-roots- 返回:
- The saved result for multiple objects
-
saveInputs
public <E> BatchSaveResult<E> saveInputs(@NotNull @NotNull Iterable<? extends org.babyfish.jimmer.Input<E>> inputs, AssociatedSaveMode associatedMode) 从接口复制的说明:SaverSave some input DTOs- 指定者:
saveInputs在接口中Saver- 类型参数:
E- The type of saved entities- 参数:
inputs- The saved input DTOs.In 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 specified 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-roots is
SaveMode.UPSERTassociatedMode- The save mode of associated-objects- 返回:
- The saved result for multiple objects
-
saveInputs
public <E> BatchSaveResult<E> saveInputs(@NotNull @NotNull Iterable<? extends org.babyfish.jimmer.Input<E>> inputs) 从接口复制的说明:SaverSave some input DTOs- 指定者:
saveInputs在接口中Saver- 类型参数:
E- The type of saved entities- 参数:
inputs- The saved input DTOs.In 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 specified 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-roots is
SaveMode.UPSERT - The associated save mode of associated objects is
AssociatedSaveMode.REPLACE
- The save mode of aggregate-roots is
- 返回:
- The saved result for multiple objects
-
insertEntities
public <E> BatchSaveResult<E> insertEntities(@NotNull @NotNull Iterable<E> entities, @NotNull @NotNull AssociatedSaveMode associatedMode) 从接口复制的说明:SaverInsert some entities objects- 指定者:
insertEntities在接口中Saver- 类型参数:
E- The type of saved entities- 参数:
entities- The inserted entity objects.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 specified 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-objects- 返回:
- The saved result for multiple objects
-
insertEntities
从接口复制的说明:SaverInsert some entities objects- 指定者:
insertEntities在接口中Saver- 类型参数:
E- The type of saved entities- 参数:
entities- The inserted entity objects.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 specified 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 associated save mode of associated objects is
AssociatedSaveMode.APPEND- 返回:
- The saved result for multiple objects
-
insertInputs
public <E> BatchSaveResult<E> insertInputs(@NotNull @NotNull Iterable<? extends org.babyfish.jimmer.Input<E>> inputs, @NotNull @NotNull AssociatedSaveMode associatedMode) 从接口复制的说明:SaverInsert some input DTOs- 指定者:
insertInputs在接口中Saver- 类型参数:
E- The type of saved entities- 参数:
inputs- The inserted input DTOs.In 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 specified 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-objects- 返回:
- The saved result for multiple objects
-
insertInputs
public <E> BatchSaveResult<E> insertInputs(@NotNull @NotNull Iterable<? extends org.babyfish.jimmer.Input<E>> inputs) 从接口复制的说明:SaverInsert some input DTOs- 指定者:
insertInputs在接口中Saver- 类型参数:
E- The type of saved entities- 参数:
inputs- The inserted input DTOs.In 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 specified 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 associated save mode of associated objects is
AssociatedSaveMode.APPEND- 返回:
- The saved result for multiple objects
-
insertEntitiesIfAbsent
public <E> BatchSaveResult<E> insertEntitiesIfAbsent(@NotNull @NotNull Iterable<E> entities, @NotNull @NotNull AssociatedSaveMode associatedMode) 从接口复制的说明:SaverInsert some entity objects if necessary, if some entity objects exists in database, ignore them.- 指定者:
insertEntitiesIfAbsent在接口中Saver- 类型参数:
E- The type of saved entities- 参数:
entities- The inserted entity objects.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 specified 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-objects- 返回:
- The saved result for multiple objects
-
insertEntitiesIfAbsent
从接口复制的说明:SaverInsert some entity objects if necessary, if some entity objects exists in database, ignore them.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 specified 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 associated save mode of associated objects is
AssociatedSaveMode.APPEND_IF_ABSENT- 指定者:
insertEntitiesIfAbsent在接口中Saver- 类型参数:
E- The type of saved entities- 返回:
- The saved result for multiple objects
-
insertInputsIfAbsent
public <E> BatchSaveResult<E> insertInputsIfAbsent(@NotNull @NotNull Iterable<? extends org.babyfish.jimmer.Input<E>> inputs, @NotNull @NotNull AssociatedSaveMode associatedMode) 从接口复制的说明:SaverInsert some DTOs if necessary, if some DTOs exists in database, ignore them.- 指定者:
insertInputsIfAbsent在接口中Saver- 类型参数:
E- The type of saved entities- 参数:
inputs- The inserted input DTOs.In 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 specified 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-objects- 返回:
- The saved result for multiple objects
-
insertInputsIfAbsent
public <E> BatchSaveResult<E> insertInputsIfAbsent(@NotNull @NotNull Iterable<? extends org.babyfish.jimmer.Input<E>> inputs) 从接口复制的说明:SaverInsert some DTOs if necessary, if some DTOs exists in database, ignore them.- 指定者:
insertInputsIfAbsent在接口中Saver- 类型参数:
E- The type of saved entities- 参数:
inputs- The inserted input DTOs.In 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 specified 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 associated save mode of associated objects is
AssociatedSaveMode.APPEND_IF_ABSENT- 返回:
- The saved result for multiple objects
-
updateEntities
public <E> BatchSaveResult<E> updateEntities(@NotNull @NotNull Iterable<E> entities, @NotNull @NotNull AssociatedSaveMode associatedMode) 从接口复制的说明:SaverUpdate some entities objects- 指定者:
updateEntities在接口中Saver- 类型参数:
E- The type of saved entities- 参数:
entities- The updated entity objects.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 specified 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-objects- 返回:
- The saved result for multiple objects
-
updateEntities
从接口复制的说明:SaverUpdate some entities objects- 指定者:
updateEntities在接口中Saver- 类型参数:
E- The type of saved entities- 参数:
entities- The updated entity objects.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 specified 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 associated save mode of associated objects is
AssociatedSaveMode.UPDATE- 返回:
- The saved result for multiple objects
-
updateInputs
public <E> BatchSaveResult<E> updateInputs(@NotNull @NotNull Iterable<? extends org.babyfish.jimmer.Input<E>> inputs, @NotNull @NotNull AssociatedSaveMode associatedMode) 从接口复制的说明:SaverUpdate some input DTOs- 指定者:
updateInputs在接口中Saver- 类型参数:
E- The type of saved entities- 参数:
inputs- The updated input DTOs.In 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 specified 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-objects- 返回:
- The saved result for multiple objects
-
updateInputs
public <E> BatchSaveResult<E> updateInputs(@NotNull @NotNull Iterable<? extends org.babyfish.jimmer.Input<E>> inputs) 从接口复制的说明:SaverUpdate some input DTOs- 指定者:
updateInputs在接口中Saver- 类型参数:
E- The type of saved entities- 参数:
inputs- The updated input DTOs.In 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 specified 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 associated save mode of associated objects is
AssociatedSaveMode.UPDATE- 返回:
- The saved result for multiple objects
-
mergeEntities
从接口复制的说明:SaverMerge some entities objects- 指定者:
mergeEntities在接口中Saver- 类型参数:
E- The type of saved entities- 参数:
entities- The merged entity objects.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 specified 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 associated save mode of associated objects is
AssociatedSaveMode.MERGE- 返回:
- The saved result for multiple objects
-
mergeInputs
public <E> BatchSaveResult<E> mergeInputs(@NotNull @NotNull Iterable<? extends org.babyfish.jimmer.Input<E>> inputs) 从接口复制的说明:SaverMerge some input DTOs- 指定者:
mergeInputs在接口中Saver- 类型参数:
E- The type of saved entities- 参数:
inputs- The merged input DTOs.In 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 specified 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 associated save mode of associated objects is
AssociatedSaveMode.MERGE- 返回:
- The saved result for multiple objects
-
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
-
transaction
从接口复制的说明:JSqlClientExecute 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)
- 指定者:
transaction在接口中JSqlClient- 参数:
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
-
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
-
getDefaultReferenceFetchType
-
getMaxJoinFetchDepth
public int getMaxJoinFetchDepth()- 指定者:
getMaxJoinFetchDepth在接口中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() -
getMaxCommandJoinCount
public int getMaxCommandJoinCount()- 指定者:
getMaxCommandJoinCount在接口中JSqlClientImplementor
-
isTargetTransferable
public boolean isTargetTransferable()- 指定者:
isTargetTransferable在接口中JSqlClientImplementor
-
isBatchForbidden
public boolean isBatchForbidden(boolean dumbBatchAcceptable) - 指定者:
isBatchForbidden在接口中JSqlClientImplementor
-
isUpsertWithUniqueConstraintSupported
public boolean isUpsertWithUniqueConstraintSupported(org.babyfish.jimmer.meta.ImmutableType type) -
isConstraintViolationTranslatable
public boolean isConstraintViolationTranslatable() -
isMutationTransactionRequired
public boolean isMutationTransactionRequired() -
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
-