DynamicRegistry

internal class DynamicRegistry

The dynamic_dto names a database knows and the class each stands for, attached to the driver's type catalog, since a discriminator stored in the data has to mean the same class to every client on the database. It is replaced and dropped with the catalog, and pinned for an execution with the converters reading it.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun anyFits(kClass: KClass<*>): Boolean

Whether any registered class fits kClass, so a read as a supertype works.

Link copied to clipboard
fun forClass(kClass: KClass<*>): Registration<*>?

The registration for exactly kClass.

Link copied to clipboard
fun forName(name: String): Registration<*>?

The registration a stored discriminator names.

Link copied to clipboard
fun with(registration: Registration<*>): DynamicRegistry

This registry with registration in it. The same class under the same name again changes nothing, the Json it was first registered with included.