# PrimitiveTypeMapper

class PrimitiveTypeMapper : TypeMapper

Mapper for primitive types (Int, Long, Float, Double, etc.).

## Constructors

PrimitiveTypeMapper
Link copied to clipboard
constructor()

## Properties

columnTypes
Link copied to clipboard
open override val columnTypes: List<KClass<out IColumnType<*>>>

List of column types this mapper supports. If empty, the mapper supports all column types.

dialects
Link copied to clipboard
open val dialects: List<KClass<out DatabaseDialect>>

List of dialects this mapper supports. If empty, the mapper supports all dialects.

priority
Link copied to clipboard
open override val priority: Double = 0.3

The priority of this type mapper used for ordering during mapper resolution.

## Functions

getValue
Link copied to clipboard
open fun <T> getValue(row: Row, type: Class<T>?, index: Int, dialect: DatabaseDialect, columnType: IColumnType<*>): ValueContainer<T?>

Retrieves a value from the given row at the specified index. This method attempts to extract and convert a value from the database row to the requested type, taking into account the database dialect and column type.

setValue
Link copied to clipboard
open override fun setValue(statement: Statement, dialect: DatabaseDialect, typeMapping: R2dbcTypeMapping, columnType: IColumnType<*>, value: Any?, index: Int): Boolean

Sets a value in the statement.