Entity
Class representing a mapping to values stored in a table record in a database.
Parameters
id
The unique stored identity value for the mapped record.
Inheritors
Properties
Link copied to clipboard
Link copied to clipboard
The associated EntityClass that manages this Entity instance.
Link copied to clipboard
The final column-value mapping for this Entity instance after being flushed and retrieved from the database.
Link copied to clipboard
The initial column-value mapping for this Entity instance before being flushed and inserted into the database.
Functions
Link copied to clipboard
Sends all cached inserts and updates for this Entity instance to the database.
Link copied to clipboard
operator fun <Unwrapped, Wrapped> EntityFieldWithTransform<Unwrapped, Wrapped>.getValue(o: Entity<ID>, desc: KProperty<*>): Wrapped
operator fun <REF : Any, RID : Any, T : Entity<RID>> OptionalReference<REF, RID, T>.getValue(o: Entity<ID>, desc: KProperty<*>): T?
Link copied to clipboard
operator fun <Unwrapped, Wrapped> EntityFieldWithTransform<Unwrapped, Wrapped>.setValue(o: Entity<ID>, desc: KProperty<*>, value: Wrapped)
operator fun <REF : Any, RID : Any, T : Entity<RID>> OptionalReference<REF, RID, T>.setValue(o: Entity<ID>, desc: KProperty<*>, value: T?)
Link copied to clipboard
Transfers initial column-value mappings from writeValues to readValues and clears the former once complete.
Link copied to clipboard
infix fun <TID : Any, Target : Entity<TID>> EntityClass<TID, Target>.via(table: Table): InnerTableLink<ID, Entity<ID>, TID, Target>
fun <TID : Any, Target : Entity<TID>> EntityClass<TID, Target>.via(sourceColumn: Column<EntityID<ID>>, targetColumn: Column<EntityID<TID>>): InnerTableLink<ID, Entity<ID>, TID, Target>
Registers a reference as a field of the child entity class, which returns a parent object of this EntityClass, for use in many-to-many relations.