# 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

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

## Functions

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

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

execute
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.

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