ModelBatch

interface ModelBatch : ModelWrite, Closeable

Functions

close
Link copied to clipboard
common
abstract fun close()
delete
Link copied to clipboard
common
open fun <M : Any> delete(type: KClass<M>, key: Key<M>)
abstract fun <M : Any> delete(type: KClass<M>, key: Key<M>, vararg options: Options.BatchDelete)
open override fun <M : Any> delete(type: KClass<M>, key: Key<M>, vararg options: Options.Deletes)
keyById
Link copied to clipboard
common
abstract fun <M : Any> keyById(type: KClass<M>, vararg id: Any): Key<M>
keyFrom
Link copied to clipboard
common
abstract fun <M : Any> keyFrom(model: M, vararg options: Options.Puts): Key<M>
keyFromB64
Link copied to clipboard
common
abstract fun <M : Any> keyFromB64(type: KClass<M>, b64: String): Key<M>
put
Link copied to clipboard
common
open fun <M : Any> put(model: M): KeyAndSize<M>
abstract fun <M : Any> put(model: M, vararg options: Options.BatchPut): KeyAndSize<M>
open override fun <M : Any> put(model: M, vararg options: Options.Puts): KeyAndSize<M>
open fun <M : Any> put(key: Key<M>, model: M): Int
abstract fun <M : Any> put(key: Key<M>, model: M, vararg options: Options.BatchPut): Int
open override fun <M : Any> put(key: Key<M>, model: M, vararg options: Options.Puts): Int
valueOf
Link copied to clipboard
common
abstract fun valueOf(value: Any): Value
valueOfAll
Link copied to clipboard
common
abstract fun valueOfAll(vararg values: Any): Value
write
Link copied to clipboard
common
abstract fun write(afterErrors: MaybeThrowable, vararg options: Options.BatchWrite)

Extensions

delete
Link copied to clipboard
common
inline fun <M : Any> ModelBatch.delete(key: Key<M>, vararg options: Options.BatchDelete)
putAll
Link copied to clipboard
common
fun ModelBatch.putAll(models: Iterable<Any>, vararg options: Options.BatchPut)