MultiRangeParameterConverter

Properties

Link copied to clipboard
open override val supportedClass: KClass<MultiRange<*>>

The Kotlin class this converter handles. The default canConvert also accepts its subtypes.

Functions

Link copied to clipboard
open fun canConvert(sourceClass: KClass<*>, expectedOid: Int, context: SerializationContext): Boolean

Decides whether this converter handles the value at hand.

Link copied to clipboard
open override fun convert(source: MultiRange<*>, expectedOid: Int, context: SerializationContext): Any

Converts a value this converter has claimed into something a codec can encode.

Link copied to clipboard
open fun getDefaultTypeName(sourceClass: KClass<*>, context: SerializationContext): QualifiedName?

Names the PostgreSQL type to declare for the converted value, where nothing else has named one.