org.eclipse.persistence.config
Class QueryType

java.lang.Object
  extended by org.eclipse.persistence.config.QueryType

public class QueryType
extends Object

Query type hint values. The class contains all the valid values for QueryHints.QUERY_TYPE query hint. A fully qualified class name of a valid subclass of DatabaseQuery can also be used.

i.e. "org.acme.persistence.CustomQuery" JPA Query Hint Usage:

query.setHint(QueryHints.QUERY_TYPE, QueryType.ReadObject);

or

@QueryHint(name=QueryHints.QUERY_TYPE, value=QueryType.ReadObject)

Hint values are case-insensitive. "" could be used instead of default value CacheUsage.DEFAULT.

See Also:
QueryHints.QUERY_TYPE, DatabaseQuery

Field Summary
static String Auto
           
static String DataModify
           
static String DataRead
           
static String DEFAULT
           
static String DeleteAll
           
static String DirectRead
           
static String ReadAll
           
static String ReadObject
           
static String Report
           
static String ResultSetMapping
           
static String UpdateAll
           
static String ValueRead
           
 
Constructor Summary
QueryType()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Auto

public static final String Auto
See Also:
Constant Field Values

ReadObject

public static final String ReadObject
See Also:
Constant Field Values

ReadAll

public static final String ReadAll
See Also:
Constant Field Values

Report

public static final String Report
See Also:
Constant Field Values

ResultSetMapping

public static final String ResultSetMapping
See Also:
Constant Field Values

DeleteAll

public static final String DeleteAll
See Also:
Constant Field Values

UpdateAll

public static final String UpdateAll
See Also:
Constant Field Values

DataRead

public static final String DataRead
See Also:
Constant Field Values

DataModify

public static final String DataModify
See Also:
Constant Field Values

ValueRead

public static final String ValueRead
See Also:
Constant Field Values

DirectRead

public static final String DirectRead
See Also:
Constant Field Values

DEFAULT

public static final String DEFAULT
See Also:
Constant Field Values
Constructor Detail

QueryType

public QueryType()