EntityBatchUpdate

class EntityBatchUpdate(klass: EntityClass<*, Entity<*>>)

Class responsible for performing a batch update operation on multiple instances of an Entity class.

Parameters

klass

The EntityClass associated with the entities to batch update.

Constructors

Link copied to clipboard
constructor(klass: EntityClass<*, Entity<*>>)

Functions

Link copied to clipboard
fun addBatch(entity: Entity<*>)

Adds the specified entity to the list of entities to batch update.

Link copied to clipboard
fun execute(transaction: Transaction): Int

Executes the batch update SQL statement for each added entity in the provided transaction and returns the number of updated rows.

Link copied to clipboard
operator fun set(column: Column<*>, value: Any?)