update

@GenerateBridge
open fun update(query: String, vararg params: Any): Int

Update all entities of this type matching the given query, with optional indexed parameters.

Return

the number of entities updated.

Parameters

query

a query string

params

optional sequence of indexed parameters


@GenerateBridge
open fun update(query: String, params: Map<String, Any>): Int

Update all entities of this type matching the given query, with named parameters.

Return

the number of entities updated.

Parameters

query

a query string

params

Map of named parameters


@GenerateBridge
open fun update(query: String, params: Parameters): Int

Update all entities of this type matching the given query, with named parameters.

Return

the number of entities updated.

Parameters

query

a query string

params

Parameters of named parameters