org.jpox.annotations
Annotation Type Query


@Target(value=TYPE)
@Retention(value=RUNTIME)
public @interface Query

Annotation for a named query. Maps across to the JDO2 element "query".

Version:
$Revision: 1.1 $

Required Element Summary
 java.lang.String name
          Name of the query (mandatory)
 java.lang.String value
          The query string (mandatory)
 
Optional Element Summary
 QueryLanguage language
          The query language
 java.lang.String resultClass
          Result Class to dump the results into
 java.lang.String unique
          Whether the query returns unique results.
 boolean unmodifiable
          Whether the query is unmodifiable.
 

Element Detail

name

public abstract java.lang.String name
Name of the query (mandatory)


value

public abstract java.lang.String value
The query string (mandatory)

language

public abstract QueryLanguage language
The query language

Default:
JDOQL

unmodifiable

public abstract boolean unmodifiable
Whether the query is unmodifiable.

Default:
false

unique

public abstract java.lang.String unique
Whether the query returns unique results.

Default:
""

resultClass

public abstract java.lang.String resultClass
Result Class to dump the results into

Default:
""


Copyright © 2003-2008 Java Persistent Objects (JPOX). All Rights Reserved.