ObjectDB ObjectDB

javax.jdo.annotations.Query - JDO annotation

javax.jdo.annotations
Annotation Query

Target:
Classes
Annotation for a named query. Corresponds to the xml element "query".
Since:
JDO 2.1
Vendor extensions.
Vendor extensions.
Returns:
the vendor extensions
Default value:
{}
Since:
JDO 2.1
String fetchPlan
The name of the fetch plan used by this query
The name of the fetch plan used by this query
Returns:
the fetch plan
Default value:
""
Since:
JDO 2.1
String language
The query language
The query language
Returns:
the query language
Default value:
"JDOQL"
Since:
JDO 2.1
String name
Name of the query (mandatory)
Name of the query (mandatory)
Returns:
the name of the query
Since:
JDO 2.1
Class resultClass
Result class into which to put the results.
Result class into which to put the results.
Returns:
the class of the result
Default value:
void.class
Since:
JDO 2.1
String unique
Whether the query returns a single unique result.
Whether the query returns a single unique result.
Returns:
whether the query returns a single unique result
Default value:
""
Since:
JDO 2.1
String unmodifiable
Whether the query is unmodifiable.
Whether the query is unmodifiable.
Returns:
whether the query is unmodifiable
Default value:
""
Since:
JDO 2.1
String value
The query string (mandatory)
The query string (mandatory)
Returns:
the query string
Since:
JDO 2.1