# View

class View<out Target : Entity<*>>(val op: Op<Boolean>, val factory: EntityClass<*, Target>) : SizedIterable<Target>

A SizedIterable of Entity instances that represent a subset of all managed entities that conform to the provided op conditional expression.

#### Parameters

op

The conditional expression to use when querying for matching entities.

factory

The EntityClass to use when searching for matching entities.

## Constructors

View
Link copied to clipboard
constructor(op: Op<Boolean>, factory: EntityClass<*, Target>)

## Properties

factory
Link copied to clipboard
val factory: EntityClass<*, Target>
op
Link copied to clipboard
val op: Op<Boolean>

## Functions

copy
Link copied to clipboard
open override fun copy(): SizedIterable<Target>
count
Link copied to clipboard
open override fun count(): Long
empty
Link copied to clipboard
open override fun empty(): Boolean
forEach
Link copied to clipboard
open fun forEach(p0: Consumer<in Target>)
forUpdate
Link copied to clipboard
open override fun forUpdate(option: ForUpdateOption): SizedIterable<Target>
getValue
Link copied to clipboard
operator fun getValue(o: Any?, desc: KProperty<*>): SizedIterable<Target>
iterator
Link copied to clipboard
open operator override fun iterator(): Iterator<Target>
limit
Link copied to clipboard
open override fun limit(count: Int): SizedIterable<Target>
open override fun limit(n: Int, offset: Long): SizedIterable<Target>
notForUpdate
Link copied to clipboard
open override fun notForUpdate(): SizedIterable<Target>
offset
Link copied to clipboard
open override fun offset(start: Long): SizedIterable<Target>
orderBy
Link copied to clipboard
open override fun orderBy(vararg order: Pair<Expression<*>, SortOrder>): SizedIterable<Target>
spliterator
Link copied to clipboard
open fun spliterator(): Spliterator<Target>