All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.babyfish.jimmer.sql.kt.KCacheDisableDsl.kt Maven / Gradle / Ivy

There is a newer version: 0.9.35
Show newest version
package org.babyfish.jimmer.sql.kt

import org.babyfish.jimmer.kt.toImmutableProp
import org.babyfish.jimmer.meta.ImmutableProp
import org.babyfish.jimmer.meta.ImmutableType
import org.babyfish.jimmer.sql.cache.CacheDisableConfig
import kotlin.reflect.KClass
import kotlin.reflect.KProperty1

class KCacheDisableDsl internal constructor(
    private val javaCfg: CacheDisableConfig
) {
    fun disableAll() {
        javaCfg.disableAll()
    }

    fun disable(type: KClass<*>) {
        javaCfg.disable(type.java)
    }

    fun disable(type: ImmutableType) {
        javaCfg.disable(type)
    }

    fun disable(prop: KProperty1<*, *>) {
        javaCfg.disable(prop.toImmutableProp())
    }

    fun disable(prop: ImmutableProp) {
        javaCfg.disable(prop)
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy