docs/api/exposed-dao/org.jetbrains.exposed.v1.dao/-entity-class/memoized-transform.html
fun <Unwrapped, Wrapped> Column<Unwrapped>.memoizedTransform(transformer: ColumnTransformer<Unwrapped, Wrapped>): EntityFieldWithTransform<Unwrapped, Wrapped>
Returns a EntityFieldWithTransform delegate that will cache the transformed value on first read of this same stored Unwrapped value.
transformer
An instance of ColumnTransformer to handle the transformations.
org.jetbrains.exposed.v1.tests.shared.entities.TransformationsTableorg.jetbrains.exposed.v1.tests.shared.entities.TransformationEntity
fun <Unwrapped, Wrapped> Column<Unwrapped>.memoizedTransform(unwrap: (Wrapped) -> Unwrapped, wrap: (Unwrapped) -> Wrapped): EntityFieldWithTransform<Unwrapped, Wrapped>
Returns a EntityFieldWithTransform delegate that will cache the transformed value on first read of this same stored Unwrapped value.
unwrap
A pure function that converts a transformed value to a value that can be stored in this original column type.
wrap
A pure function that transforms a value stored in this original column type.
org.jetbrains.exposed.v1.tests.shared.entities.TransformationsTableorg.jetbrains.exposed.v1.tests.shared.entities.TransformationEntity
fun <TColumn, Unwrapped, Wrapped> EntityFieldWithTransform<TColumn, Unwrapped>.memoizedTransform(unwrap: (Wrapped) -> Unwrapped, wrap: (Unwrapped) -> Wrapped): EntityFieldWithTransform<TColumn, Wrapped>
Returns a EntityFieldWithTransform that extends transformation of existing EntityFieldWithTransform and caches the transformed value on first read.
unwrap
A function that transforms the value to the wrapping type of previously defined transformation
wrap
A function that transforms value to the wrapping type
org.jetbrains.exposed.v1.tests.shared.entities.TransformationsTableorg.jetbrains.exposed.v1.tests.shared.entities.TransformationEntity
Generated by Dokka © 2026 Copyright