JDO Annotation

Query

Target: ElementType.TYPE
Implemented Interfaces:
Annotation

Annotation for a named query. Corresponds to the xml element "query".
Since:
JDO 2.1

Public Annotation Attributes

Extension[] extensions default {}
Vendor extensions.
Since:
JDO 2.1
String fetchPlan default ""
The name of the fetch plan used by this query
Since:
JDO 2.1
String language default "JDOQL"
The query language
Since:
JDO 2.1
String name default null
Name of the query (mandatory)
Since:
JDO 2.1
Class resultClass default void.class
Result class into which to put the results.
Since:
JDO 2.1
String unique default ""
Whether the query returns a single unique result.
Since:
JDO 2.1
String unmodifiable default ""
Whether the query is unmodifiable.
Since:
JDO 2.1
String value default null
The query string (mandatory)
Since:
JDO 2.1