public interface SpiOrmQueryRequest<T>
| Modifier and Type | Method and Description |
|---|---|
void |
endTransIfRequired()
Will end a locally created transaction.
|
Object |
findId()
Execute the query as findById.
|
List<Object> |
findIds()
Execute the find ids query.
|
QueryIterator<T> |
findIterate()
Execute the find returning a QueryIterator.
|
List<T> |
findList()
Execute the query as findList.
|
Map<?,?> |
findMap()
Execute the query as findMap.
|
int |
findRowCount()
Execute the find row count query.
|
Set<?> |
findSet()
Execute the query as findSet.
|
void |
findVisit(QueryResultVisitor<T> visitor)
Execute the find returning a QueryIterator and visitor pattern.
|
BeanDescriptor<?> |
getBeanDescriptor()
Return the associated BeanDescriptor.
|
BeanCollection<T> |
getFromQueryCache()
Try to get the query result from the query cache.
|
SpiQuery<T> |
getQuery()
Return the query.
|
void |
initTransIfRequired()
This will create a local (readOnly) transaction if no current transaction
exists.
|
void |
rollbackTransIfRequired() |
BeanDescriptor<?> getBeanDescriptor()
void initTransIfRequired()
A transaction may have been passed in explicitly or currently be active in the thread local. If not, then a readOnly transaction is created to execute this query.
void endTransIfRequired()
It ends the transaction by using a rollback() as the transaction is known to be readOnly.
void rollbackTransIfRequired()
Object findId()
int findRowCount()
void findVisit(QueryResultVisitor<T> visitor)
QueryIterator<T> findIterate()
Set<?> findSet()
Map<?,?> findMap()
BeanCollection<T> getFromQueryCache()
Copyright © 2014. All Rights Reserved.