Back to Exposed

EntityBatchUpdate

docs/api/exposed-dao/org.jetbrains.exposed.v1.dao/-entity-batch-update/index.html

1.2.01.5 KB
Original Source

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.

Members

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?)

Generated by Dokka © 2026 Copyright