|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IQuery
Abstract definition of Query available for the DAO implementation.
The DAO API exposes this interface but it will be automatically adapted
from the underlying JPA-specific implementation (see IAdapter).
JPA and specific implementations define similar abstractions e.g.
Query but despite their similarities, their types actually
mismatch making it difficult to provide a generic unified DAO
solution.
Note that this is a subset of the functionality that the underlying
implementation offers. This is the subset required to make the DAO
portable.

| Method Summary | ||
|---|---|---|
int |
executeUpdate()
Returns the number of entities updated or deleted. |
|
|
getResultList()
Returns the query results as a List |
|
Object |
getSingleResult()
Returns the query result as a single result |
|
| Method Detail |
|---|
<E> List<E> getResultList()
Object getSingleResult()
int executeUpdate()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||