SerializationContext

What a ParameterConverter is handed to convert the values nested inside the one it was given.

Going through convert rather than converting a nested value by hand is what keeps the failure legible: each call contributes a segment to the path of any MappingException raised below it, so an error in one attribute of a composite arrives naming that attribute.

Inheritors

Properties

Link copied to clipboard
abstract val typeManager: TypeManager

The session's type manager, for resolving OIDs and looking up type definitions.

Functions

Link copied to clipboard
abstract fun convert(source: Any, expectedOid: Int, pathSegment: String? = null): Any?

Converts a Kotlin value to an object compatible with PostgreSQL using registered converters.

Link copied to clipboard
abstract fun findConverter(source: Any, expectedOid: Int): ParameterConverter<Any>?

Looks up the converter that would claim a value, without converting anything.

Link copied to clipboard
abstract fun findConverterByClass(sourceClass: KClass<*>, expectedOid: Int): ParameterConverter<Any>?

Same as findConverter, keyed on a class rather than an instance.