void setUnique(
boolean unique
)
Specify that only the first result of the query should be returned, rather than a collection. The execute method will return null if the query result size is 0.
- Parameters:
unique
- if true, only one element is returned
- Since:
- JDO 2.0