mongodb / de.comhix.database.dao.test / MockQuery

MockQuery

class MockQuery<Type> : Query<Type>

Author
Benjamin Beeker

Constructors

<init>

MockQuery(vararg data: Type)
MockQuery(data: Collection<Type> = Lists.newArrayList())

Functions

find

fun find(): Maybe<Type>

limit

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

order

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

query

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

skip

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

with

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