docs/api/exposed-dao/org.jetbrains.exposed.v1.dao/-entity-change/index.html
data class EntityChange(val entityClass: EntityClass<*, Entity<*>>, val entityId: EntityID<*>, val changeType: EntityChangeType, val transactionId: String)
Stores details about a state-change event for an Entity instance.
MembersMembers & Extensions
Link copied to clipboard
constructor(entityClass: EntityClass<*, Entity<*>>, entityId: EntityID<*>, changeType: EntityChangeType, transactionId: String)
Link copied to clipboard
val changeType: EntityChangeType
The exact changed state of the event.
Link copied to clipboard
val entityClass: EntityClass<*, Entity<*>>
The EntityClass of the changed entity instance.
Link copied to clipboard
The unique EntityID associated with the entity instance.
Link copied to clipboard
val transactionId: String
The unique id for the Transaction in which the event took place.
Link copied to clipboard
fun <ID : Any, T : Entity<ID>> EntityChange.toEntity(): T?
Returns the actual Entity instance associated with this event, or null if the entity is not found.
fun <ID : Any, T : Entity<ID>> EntityChange.toEntity(klass: EntityClass<ID, T>): T?
Returns the actual Entity instance associated with this event, or null if either its EntityClass type is neither equivalent to nor a subclass of klass, or if the entity is not found.
Generated by Dokka © 2026 Copyright