com.atlassian.jira.entity
Interface SelectQuery.ExecutionContext<E>

All Known Implementing Classes:
SelectQueryImpl.ExecutionContextImpl
Enclosing interface:
SelectQuery<E>

public static interface SelectQuery.ExecutionContext<E>


Method Summary
 List<E> asList()
           
<R> R
consumeWith(EntityListConsumer<E,R> consumer)
           
 E singleValue()
          Returns the single Entity that is the result of this query.
 

Method Detail

asList

List<E> asList()

singleValue

E singleValue()
              throws IllegalStateException
Returns the single Entity that is the result of this query.

Will return null if no rows were returned by the DB query. Throws IllegalStateException if more than one row is found.

Returns:
the Entity found or null of none found.
Throws:
IllegalStateException - if more than one row is found.

consumeWith

<R> R consumeWith(EntityListConsumer<E,R> consumer)


Copyright © 2002-2012 Atlassian. All Rights Reserved.