KSqlClientImplementor

interface KSqlClientImplementor : KSqlClient

Functions

Link copied to clipboard
@NewChain
abstract fun caches(block: KCacheDisableDsl.() -> Unit): KSqlClient
Link copied to clipboard
abstract fun <E : Any> createDelete(entityType: KClass<E>, block: KMutableDelete<E>.() -> Unit): KExecutable<Int>
Link copied to clipboard
open fun <E : Any, R> createQuery(entityType: KClass<E>, block: KMutableRootQuery<E>.() -> KConfigurableRootQuery<E, R>): KConfigurableRootQuery<E, R>
Link copied to clipboard
abstract fun <E : Any> createUpdate(entityType: KClass<E>, block: KMutableUpdate<E>.() -> Unit): KExecutable<Int>
Link copied to clipboard
open fun <E : Any> deleteById(type: KClass<E>, id: Any, block: KDeleteCommandDsl.() -> Unit): KDeleteResult
open fun <E : Any> deleteById(type: KClass<E>, id: Any, mode: DeleteMode = DeleteMode.AUTO): KDeleteResult
Link copied to clipboard
open fun <E : Any> deleteByIds(type: KClass<E>, ids: Collection<*>, block: KDeleteCommandDsl.() -> Unit): KDeleteResult
open fun <E : Any> deleteByIds(type: KClass<E>, ids: Collection<*>, mode: DeleteMode = DeleteMode.AUTO): KDeleteResult
Link copied to clipboard
@NewChain
abstract fun disableSlaveConnectionManager(): KSqlClient
Link copied to clipboard
@NewChain
abstract fun filters(block: KFilterDsl.() -> Unit): KSqlClient
Link copied to clipboard
open fun <E : Any> findById(type: KClass<E>, id: Any): E?
open fun <E : Any> findById(fetcher: Fetcher<E>, id: Any): E?
Link copied to clipboard
open fun <E : Any> findByIds(type: KClass<E>, ids: Collection<*>): List<E>
open fun <E : Any> findByIds(fetcher: Fetcher<E>, ids: Collection<*>): List<E>
Link copied to clipboard
open fun <K, V : Any> findMapByIds(type: KClass<V>, ids: Collection<K>): Map<K, V>
open fun <K, V : Any> findMapByIds(fetcher: Fetcher<V>, ids: Collection<K>): Map<K, V>
Link copied to clipboard
abstract fun getAssociations(prop: KProperty1<*, *>): KAssociations
Link copied to clipboard
abstract fun getTriggers(transaction: Boolean): KTriggers
  • If trigger type is 'BINLOG_ONLY'
    • If `transaction` is true, throws exception
    • If `transaction` is false, return binlog trigger
  • If trigger type is 'TRANSACTION_ONLY', returns transaction trigger no matter what the `transaction` is
  • If trigger type is 'BOTH'
    • If `transaction` is true, return transaction trigger
    • If `transaction` is false, return binlog trigger
    Note that the objects returned by different parameters are independent of each other.
Link copied to clipboard
abstract fun initialize()
Link copied to clipboard
open fun <E : Any> insert(entity: E): KSimpleSaveResult<E>
open fun <E : Any> insert(input: Input<E>): KSimpleSaveResult<E>
Link copied to clipboard
open fun <E : Any> save(entity: E, block: KSaveCommandDsl.() -> Unit): KSimpleSaveResult<E>
open fun <E : Any> save(entity: E, mode: SaveMode = SaveMode.UPSERT): KSimpleSaveResult<E>
open fun <E : Any> save(input: Input<E>, block: KSaveCommandDsl.() -> Unit): KSimpleSaveResult<E>
open fun <E : Any> save(input: Input<E>, mode: SaveMode = SaveMode.UPSERT): KSimpleSaveResult<E>
Link copied to clipboard
open fun <E : Any> update(entity: E): KSimpleSaveResult<E>
open fun <E : Any> update(input: Input<E>): KSimpleSaveResult<E>

Properties

Link copied to clipboard
abstract val binLog: BinLog
Link copied to clipboard
abstract val caches: KCaches
Link copied to clipboard
abstract val entities: KEntities
Link copied to clipboard
abstract val entityManager: EntityManager
Link copied to clipboard
abstract val filters: KFilters
Link copied to clipboard
abstract val javaClient: JSqlClientImplementor
Link copied to clipboard
abstract val loaders: KLoaders
Link copied to clipboard
abstract val queries: KQueries
Link copied to clipboard
abstract val triggers: KTriggers

This property is equivalent to getTriggers(false)