com.atlassian.jira.entity.EntityListConsumer<E, R> |
Provide an entity list consumer to consumeWith(EntityListConsumer)
to accept a stream of results from the entity engine.
Note that use of this interface is not sufficient to guarantee streaming behaviour on all database types. Some
implementations (MySQL and Postgres in particular) have special requirements regarding transaction state and
fetch size to make that work. If you need an example of how to do this, see DefaultSaxEntitiesExporter
.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Called by the entity engine so that the entity yielded by the query may be accepted and processed by the
consumer.
| |||||||||||
Called by the entity engine to obtain the return value after all entities have been consumed.
|
Called by the entity engine so that the entity yielded by the query may be accepted and processed by the consumer.
entity | the entity yielded by the select query |
---|
Called by the entity engine to obtain the return value after all entities have been consumed. Implementations
may assume that this will be called exactly once and that consume(Object)
will not be called again
afterwards.