mongodb / de.comhix.database.dao / SyncDaoWrapper

SyncDaoWrapper

open class SyncDaoWrapper<ObjectBase : DatabaseObject>

Author
Benjamin Beeker

Constructors

<init>

SyncDaoWrapper(dao: SimpleDao<ObjectBase>)

Functions

delete

fun <Type : ObjectBase> delete(id: String, typeClass: Class<Type>): Unit

get

fun <Type : ObjectBase> get(id: String, typeClass: Class<Type>): Type?

query

fun <Type : ObjectBase> query(typeClass: Class<Type>): Query<Type>

save

fun <Type : ObjectBase> save(instance: Type): Type