DefaultDeserializationContext

Constructors

Link copied to clipboard
constructor(registry: ResultConverterRegistry, 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 <T> convert(source: Any?, expectedType: KType, sourceType: PgType, pathSegment: String? = null): T

Converts a raw value to the expected type using registered converters.

open fun <T> convert(source: Any?, expectedType: KType, sourceOid: Int, pathSegment: String? = null): T

Converts a raw value to the expected type using registered converters, resolving the PostgreSQL type from its OID.

Link copied to clipboard
open override fun findConverter(sourceClass: KClass<*>, expectedType: KType, sourceType: PgType): ResultConverter<Any, *>?

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