org.mapdb / DB / AtomicVarMaker

AtomicVarMaker

class AtomicVarMaker<E> : Maker<Var<E>>


Constructors

<init> AtomicVarMaker(db: DB, name: String, serializer: Serializer<E> = db.defaultSerializer as Serializer<E>, value: E? = null)

Properties

db val db: DB
name val name: String
serializer val serializer: Serializer<E>
type val type: String
value val value: E?

Functions

create2 fun create2(catalog: SortedMap<String, String>): Var<E>
open2 fun open2(catalog: SortedMap<String, String>): Var<E>

Inherited Functions

create open fun create(): E

Creates new collection if it does not exist, or throw {@link DBException.WrongConfiguration} if collection already exists.

createOrOpen open fun createOrOpen(): E

Create new collection or open existing.

make open fun make(): E

Create new collection or open existing.

make2 fun make2(create: Boolean?): E
makeOrGet open fun makeOrGet(): E
open open fun open(): E

Open existing collection, or throw {@link DBException.WrongConfiguration} if collection already exists.

verify open fun verify(): Unit