DefaultSerializationContext

Constructors

Link copied to clipboard
constructor(registry: ParameterConverterRegistry, typeManager: TypeManager)

Properties

Link copied to clipboard
open override val typeManager: TypeManager

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

Functions

Link copied to clipboard
open override 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
open override fun findConverter(source: Any, expectedOid: Int): ParameterConverter<Any>?

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

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

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