com.vladsch.kotlin.jdbc.ModelPropertyProvider.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kotlin-jdbc Show documentation
Show all versions of kotlin-jdbc Show documentation
A thin library that exposes JDBC API with the convenience of Kotlin and gets out of the way when not needed.
The newest version!
package com.vladsch.kotlin.jdbc
import kotlin.reflect.KProperty
interface ModelPropertyProvider {
val autoKey: ModelPropertyProvider
val key: ModelPropertyProvider
val auto: ModelPropertyProvider
val default: ModelPropertyProvider
fun column(columnName: String?):ModelPropertyProvider
fun default(value:Any? = null):ModelPropertyProvider
operator fun provideDelegate(thisRef: T, prop: KProperty<*>): ModelPropertyProvider
operator fun getValue(thisRef: T, property: KProperty<*>): V
operator fun setValue(thisRef: T, property: KProperty<*>, value: V)
}