接口 Saver

所有已知子接口:
Entities, JSqlClient, JSqlClientImplementor
所有已知实现类:
AbstractJSqlClientDelegate, EntitiesImpl, JLazyInitializationSqlClient

public interface Saver
  • 方法详细资料

    • saveCommand

      <E> SimpleEntitySaveCommand<E> saveCommand(E entity)
    • saveCommand

      default <E> SimpleEntitySaveCommand<E> saveCommand(org.babyfish.jimmer.Input<E> input)
    • saveEntitiesCommand

      <E> BatchEntitySaveCommand<E> saveEntitiesCommand(Iterable<E> entities)
    • saveInputsCommand

      default <E> BatchEntitySaveCommand<E> saveInputsCommand(Iterable<? extends org.babyfish.jimmer.Input<E>> inputs)
    • save

      default <E> SimpleSaveResult<E> save(E entity, SaveMode mode, @NotNull @NotNull AssociatedSaveMode associatedMode)
      Save an entity object
      类型参数:
      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-root
      associatedMode - The save mode of associated-objects
      返回:
      The saved result for single object
    • save

      default <E> SimpleSaveResult<E> save(E entity, SaveMode mode)
      Save an entity object
      类型参数:
      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-root

      The associated save mode of associated objects is AssociatedSaveMode.REPLACE

      返回:
      The saved result for single object
    • save

      default <E> SimpleSaveResult<E> save(E entity, AssociatedSaveMode associatedMode)
      Save an entity object
      类型参数:
      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-objects

      The save mode of aggregate-root is SaveMode.UPSERT

      返回:
      The saved result for single object
    • save

      default <E> SimpleSaveResult<E> save(E entity)
      Save an entity object
      类型参数:
      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.UPSERT

      The associated save mode of associated objects is AssociatedSaveMode.REPLACE

      返回:
      The saved result for single object
    • save

      default <E> SimpleSaveResult<E> save(org.babyfish.jimmer.Input<E> input, SaveMode mode, AssociatedSaveMode associatedMode)
      Save an input DTO
      类型参数:
      E - The type of saved entity
      参数:
      input - The saved input DTO

      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-root
      associatedMode - The save mode of associated-objects
      返回:
      The saved result for single object
    • save

      default <E> SimpleSaveResult<E> save(org.babyfish.jimmer.Input<E> input, SaveMode mode)
      Save an input DTO
      类型参数:
      E - The type of saved entity
      参数:
      input - The saved input DTO

      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-root

      The associated save mode of associated objects is AssociatedSaveMode.REPLACE

      返回:
      The saved result for single object
    • save

      default <E> SimpleSaveResult<E> save(org.babyfish.jimmer.Input<E> input, AssociatedSaveMode associatedMode)
      Save an input DTO
      类型参数:
      E - The type of saved entity
      参数:
      input - The saved input DTO

      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 save mode of aggregate-root is SaveMode.UPSERT

      返回:
      The saved result for single object
    • save

      default <E> SimpleSaveResult<E> save(org.babyfish.jimmer.Input<E> input)
      Save an input DTO
      类型参数:
      E - The type of saved entity
      参数:
      input - The saved input DTO

      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-root is SaveMode.UPSERT

      The associated save mode of associated objects is AssociatedSaveMode.REPLACE

      返回:
      The saved result for single object
    • insert

      default <E> SimpleSaveResult<E> insert(@NotNull E entity)
      Insert an entity object
      类型参数:
      E - The type of inserted entity
      参数:
      entity - The inserted 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 result for single object
    • insert

      default <E> SimpleSaveResult<E> insert(@NotNull E entity, @NotNull @NotNull AssociatedSaveMode associatedMode)
      Insert an entity object
      类型参数:
      E - The type of inserted entity
      参数:
      entity - The inserted 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.INSERT_ONLY

      associatedMode - The associated save mode of associated objects.
      返回:
      The save result for single object
    • insert

      default <E> SimpleSaveResult<E> insert(@NotNull @NotNull org.babyfish.jimmer.Input<E> input)
      Insert an input DTO
      类型参数:
      E - The type of inserted entity
      参数:
      input - The inserted input DTO

      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 result for single object
    • insert

      default <E> SimpleSaveResult<E> insert(@NotNull @NotNull org.babyfish.jimmer.Input<E> input, @NotNull @NotNull AssociatedSaveMode associatedMode)
      Insert an input DTO
      类型参数:
      E - The type of inserted entity
      参数:
      input - The inserted input DTO

      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-root is SaveMode.INSERT_ONLY

      associatedMode - The associated save mode of associated objects.
      返回:
      The save result for single object
    • insertIfAbsent

      default <E> SimpleSaveResult<E> insertIfAbsent(@NotNull E entity)
      Insert an entity object if necessary, if the entity object exists in database, ignore it.
      • If the value of id property decorated by Id is specified, use id value to check whether the entity object exists in database
      • otherwise, if the values of key properties decorated by Key is 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.
      类型参数:
      E - The type of inserted entity
      参数:
      entity - The inserted 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 result for single object
    • insertIfAbsent

      default <E> SimpleSaveResult<E> insertIfAbsent(@NotNull E entity, @NotNull @NotNull AssociatedSaveMode associatedMode)
      Insert an entity object if necessary, if the entity object exists in database, ignore it.
      • If the value of id property decorated by Id is specified, use id value to check whether the entity object exists in database
      • otherwise, if the values of key properties decorated by Key is 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.
      类型参数:
      E - The type of inserted entity
      参数:
      entity - The inserted 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.INSERT_IF_ABSENT

      associatedMode - The associated save mode of associated objects.
      返回:
      The save result for single object
    • insertIfAbsent

      default <E> SimpleSaveResult<E> insertIfAbsent(@NotNull @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. If the entity object exists in database, ignore it.
      • If the value of id property decorated by Id is specified, use id value to check whether the entity object exists in database
      • otherwise, if the values of key properties decorated by Key is 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.
      类型参数:
      E - The type of inserted entity
      参数:
      input - The inserted input DTO

      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 result for single object
    • insertIfAbsent

      default <E> SimpleSaveResult<E> insertIfAbsent(@NotNull @NotNull org.babyfish.jimmer.Input<E> input, @NotNull @NotNull AssociatedSaveMode associatedMode)
      Insert 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 Id is specified, use id value to check whether the entity object exists in database
      • otherwise, if the values of key properties decorated by Key is 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.
      类型参数:
      E - The type of inserted entity
      参数:
      input - The inserted input DTO

      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-root is SaveMode.INSERT_IF_ABSENT

      associatedMode - The associated save mode of associated objects.
      返回:
      The save result for single object
    • update

      default <E> SimpleSaveResult<E> update(@NotNull E entity)
      Update an entity object
      类型参数:
      E - The type of inserted entity
      参数:
      entity - The updated 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 result for single object
    • update

      default <E> SimpleSaveResult<E> update(@NotNull E entity, @NotNull @NotNull AssociatedSaveMode associatedMode)
      Update an entity object
      类型参数:
      E - The type of inserted entity
      参数:
      entity - The updated 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.UPDATE_ONLY

      associatedMode - The associated save mode of associated objects.
      返回:
      The save result for single object
    • update

      default <E> SimpleSaveResult<E> update(@NotNull @NotNull org.babyfish.jimmer.Input<E> input)
      Update an input DTO
      类型参数:
      E - The type of inserted entity
      参数:
      input - The updated input DTO

      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 result for single object
    • update

      default <E> SimpleSaveResult<E> update(@NotNull @NotNull org.babyfish.jimmer.Input<E> input, @NotNull @NotNull AssociatedSaveMode associatedMode)
      Update an input DTO
      类型参数:
      E - The type of inserted entity
      参数:
      input - The updated input DTO

      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-root is SaveMode.UPDATE_ONLY

      associatedMode - The associated save mode of associated objects.
      返回:
      The save result for single object
    • merge

      default <E> SimpleSaveResult<E> merge(@NotNull E entity)
      Merge an entity object
      类型参数:
      E - The type of inserted entity
      参数:
      entity - The merged 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 result for single object
    • merge

      default <E> SimpleSaveResult<E> merge(@NotNull @NotNull org.babyfish.jimmer.Input<E> input)
      Merge an input DTO
      类型参数:
      E - The type of inserted entity
      参数:
      input - The merged input DTO

      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 result for single object
    • saveEntities

      default <E> BatchSaveResult<E> saveEntities(@NotNull @NotNull Iterable<E> entities, @NotNull @NotNull SaveMode mode, @NotNull @NotNull AssociatedSaveMode associatedMode)
      Save some entities objects
      类型参数:
      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-roots
      associatedMode - The save mode of associated-objects
      返回:
      The saved result for multiple objects
    • saveEntities

      default <E> BatchSaveResult<E> saveEntities(@NotNull @NotNull Iterable<E> entities, @NotNull @NotNull SaveMode mode)
      Save some entities objects
      类型参数:
      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.REPLACE

      mode - The save mode of aggregate-roots
      返回:
      The saved result for multiple objects
    • saveEntities

      default <E> BatchSaveResult<E> saveEntities(@NotNull @NotNull Iterable<E> entities, @NotNull @NotNull AssociatedSaveMode associatedMode)
      Save some entities objects
      类型参数:
      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

      associatedMode - The save mode of associated-objects
      返回:
      The saved result for multiple objects
    • saveEntities

      default <E> BatchSaveResult<E> saveEntities(@NotNull @NotNull Iterable<E> entities)
      Save some entities objects
      类型参数:
      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 saved result for multiple objects
    • saveInputs

      default <E> BatchSaveResult<E> saveInputs(@NotNull @NotNull Iterable<? extends org.babyfish.jimmer.Input<E>> inputs, @NotNull @NotNull SaveMode mode, @NotNull @NotNull AssociatedSaveMode associatedMode)
      Save some input DTOs
      类型参数:
      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-roots
      associatedMode - The save mode of associated-objects
      返回:
      The saved result for multiple objects
    • saveInputs

      default <E> BatchSaveResult<E> saveInputs(@NotNull @NotNull Iterable<? extends org.babyfish.jimmer.Input<E>> inputs, @NotNull @NotNull SaveMode mode)
      Save some input DTOs
      类型参数:
      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.REPLACE

      mode - The save mode of aggregate-roots
      返回:
      The saved result for multiple objects
    • saveInputs

      default <E> BatchSaveResult<E> saveInputs(@NotNull @NotNull Iterable<? extends org.babyfish.jimmer.Input<E>> inputs, AssociatedSaveMode associatedMode)
      Save some input DTOs
      类型参数:
      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

      associatedMode - The save mode of associated-objects
      返回:
      The saved result for multiple objects
    • saveInputs

      default <E> BatchSaveResult<E> saveInputs(@NotNull @NotNull Iterable<? extends org.babyfish.jimmer.Input<E>> inputs)
      Save some input DTOs
      类型参数:
      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 saved result for multiple objects
    • insertEntities

      default <E> BatchSaveResult<E> insertEntities(@NotNull @NotNull Iterable<E> entities, @NotNull @NotNull AssociatedSaveMode associatedMode)
      Insert some entities objects
      类型参数:
      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

      default <E> BatchSaveResult<E> insertEntities(@NotNull @NotNull Iterable<E> entities)
      Insert some entities objects
      类型参数:
      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

      default <E> BatchSaveResult<E> insertInputs(@NotNull @NotNull Iterable<? extends org.babyfish.jimmer.Input<E>> inputs, @NotNull @NotNull AssociatedSaveMode associatedMode)
      Insert some input DTOs
      类型参数:
      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

      default <E> BatchSaveResult<E> insertInputs(@NotNull @NotNull Iterable<? extends org.babyfish.jimmer.Input<E>> inputs)
      Insert some input DTOs
      类型参数:
      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

      default <E> BatchSaveResult<E> insertEntitiesIfAbsent(@NotNull @NotNull Iterable<E> entities, @NotNull @NotNull AssociatedSaveMode associatedMode)
      Insert some entity objects if necessary, if some entity objects exists in database, ignore them.
      类型参数:
      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

      default <E> BatchSaveResult<E> insertEntitiesIfAbsent(@NotNull @NotNull Iterable<E> entities)
      Insert 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

      类型参数:
      E - The type of saved entities
      返回:
      The saved result for multiple objects
    • insertInputsIfAbsent

      default <E> BatchSaveResult<E> insertInputsIfAbsent(@NotNull @NotNull Iterable<? extends org.babyfish.jimmer.Input<E>> inputs, @NotNull @NotNull AssociatedSaveMode associatedMode)
      Insert some DTOs if necessary, if some DTOs exists in database, ignore them.
      类型参数:
      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

      default <E> BatchSaveResult<E> insertInputsIfAbsent(@NotNull @NotNull Iterable<? extends org.babyfish.jimmer.Input<E>> inputs)
      Insert some DTOs if necessary, if some DTOs exists in database, ignore them.
      类型参数:
      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

      default <E> BatchSaveResult<E> updateEntities(@NotNull @NotNull Iterable<E> entities, @NotNull @NotNull AssociatedSaveMode associatedMode)
      Update some entities objects
      类型参数:
      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

      default <E> BatchSaveResult<E> updateEntities(@NotNull @NotNull Iterable<E> entities)
      Update some entities objects
      类型参数:
      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

      default <E> BatchSaveResult<E> updateInputs(@NotNull @NotNull Iterable<? extends org.babyfish.jimmer.Input<E>> inputs, @NotNull @NotNull AssociatedSaveMode associatedMode)
      Update some input DTOs
      类型参数:
      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

      default <E> BatchSaveResult<E> updateInputs(@NotNull @NotNull Iterable<? extends org.babyfish.jimmer.Input<E>> inputs)
      Update some input DTOs
      类型参数:
      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

      default <E> BatchSaveResult<E> mergeEntities(@NotNull @NotNull Iterable<E> entities)
      Merge some entities objects
      类型参数:
      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

      default <E> BatchSaveResult<E> mergeInputs(@NotNull @NotNull Iterable<? extends org.babyfish.jimmer.Input<E>> inputs)
      Merge some input DTOs
      类型参数:
      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