EclipseLink 2.1.2, build 'v20101206-r8635' API Reference

org.eclipse.persistence.config
Class QueryType

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

public class QueryType
extends java.lang.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 java.lang.String Auto
           
static java.lang.String DataModify
           
static java.lang.String DataRead
           
static java.lang.String DEFAULT
           
static java.lang.String DeleteAll
           
static java.lang.String DirectRead
           
static java.lang.String ReadAll
           
static java.lang.String ReadObject
           
static java.lang.String Report
           
static java.lang.String ResultSetMapping
           
static java.lang.String UpdateAll
           
static java.lang.String ValueRead
           
 
Constructor Summary
QueryType()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Auto

public static final java.lang.String Auto
See Also:
Constant Field Values

ReadObject

public static final java.lang.String ReadObject
See Also:
Constant Field Values

ReadAll

public static final java.lang.String ReadAll
See Also:
Constant Field Values

Report

public static final java.lang.String Report
See Also:
Constant Field Values

ResultSetMapping

public static final java.lang.String ResultSetMapping
See Also:
Constant Field Values

DeleteAll

public static final java.lang.String DeleteAll
See Also:
Constant Field Values

UpdateAll

public static final java.lang.String UpdateAll
See Also:
Constant Field Values

DataRead

public static final java.lang.String DataRead
See Also:
Constant Field Values

DataModify

public static final java.lang.String DataModify
See Also:
Constant Field Values

ValueRead

public static final java.lang.String ValueRead
See Also:
Constant Field Values

DirectRead

public static final java.lang.String DirectRead
See Also:
Constant Field Values

DEFAULT

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

QueryType

public QueryType()

EclipseLink 2.1.2, build 'v20101206-r8635' API Reference