use of siena.core.options.QueryOption in project siena by mandubian.
the class AbstractPersistenceManagerAsync method release.
public <T> void release(QueryAsync<T> query) {
QueryOptionOffset offset = (QueryOptionOffset) query.option(QueryOptionOffset.ID);
QueryOption reuse = query.option(QueryOptionState.ID);
// resets offset
if (offset.isActive())
offset.offset = 0;
// disables reusable and cludge
if (reuse.isActive()) {
reuse.passivate();
}
}
Aggregations