memoizedTransform

Returns a EntityFieldWithTransform delegate that will cache the transformed value on first read of this same stored Unwrapped value.

Parameters

transformer

An instance of ColumnTransformer to handle the transformations.

Samples

org.jetbrains.exposed.sql.tests.shared.entities.TransformationsTableorg.jetbrains.exposed.sql.tests.shared.entities.TransformationEntity

Returns a EntityFieldWithTransform delegate that will cache the transformed value on first read of this same stored Unwrapped value.

Parameters

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.

Samples

org.jetbrains.exposed.sql.tests.shared.entities.TransformationsTableorg.jetbrains.exposed.sql.tests.shared.entities.TransformationEntity

Returns a EntityFieldWithTransform that extends transformation of existing EntityFieldWithTransform and caches the transformed value on first read.

Parameters

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

Samples

org.jetbrains.exposed.sql.tests.shared.entities.TransformationsTableorg.jetbrains.exposed.sql.tests.shared.entities.TransformationEntity