mongodb / de.comhix.database.dao / Query

Query

open class Query<Type>

Author
Benjamin Beeker

Types

Operation

class Operation<AllowedValueType>

Constructors

<init>

only for de.comhix.database.dao.test.MockQuery

Query()Query(typeClass: Class<Type>?, datastore: Datastore)

Functions

find

open fun find(): Maybe<Type>

limit

open fun limit(limit: Int): Query<Type>?

order

open fun order(field: String?): Query<Type>?

query

open fun query(): Single<QueryResult<Type>>

skip

open fun skip(skip: Int): Query<Type>?

with

open fun <AllowedValueType> with(field: String?, operation: Operation<AllowedValueType>, value: AllowedValueType): Query<Type>?

Inheritors

MockQuery

class MockQuery<Type> : Query<Type>