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

org.jetbrains.exposed.dao.DaoEntityID.kt Maven / Gradle / Ivy

There is a newer version: 0.56.0
Show newest version
package org.jetbrains.exposed.dao

import org.jetbrains.exposed.dao.id.EntityID
import org.jetbrains.exposed.dao.id.IdTable
import org.jetbrains.exposed.sql.transactions.TransactionManager

/**
 * Class representing a wrapper for a stored identity value of type [T], which is managed and cached
 * by an [EntityClass] using a data access object pattern.
 */
class DaoEntityID>(id: T?, table: IdTable) : EntityID(table, id) {
    override fun invokeOnNoValue() {
        TransactionManager.current().entityCache.flushInserts(table)
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy