Top Description Methods
org.hibernate.annotations

public @Interface NamedQuery

extends Annotation
Annotations
@Target:TYPE, PACKAGE
@Retention:RUNTIME
Static Imports
java.lang.annotation.ElementType.PACKAGE, .ElementType.TYPE, .RetentionPolicy.RUNTIME

Extends javax.persistence.NamedQuery with Hibernate features
Author
Carlos Gonz�lez-Cadenas

Method Summary

Modifier and TypeMethod and Description
public boolean
cacheable()

mark the query as cacheable or not

public CacheModeType
cacheMode()

the cache mode used for this query

public String
cacheRegion()

the cache region to use

public String
comment()

comment added to the SQL query, useful for the DBA

public int
fetchSize()

the number of rows fetched by the JDBC Driver per roundtrip

public FlushModeType
flushMode()

the flush mode for the query

public String
name()

the name of the NamedQuery

public String
query()

the Query String for the NamedQuery

public boolean
readOnly()

marks whether the results are fetched in read-only mode or not

public int
timeout()

the query timeout in seconds

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

cacheableback to summary
public boolean cacheable()

mark the query as cacheable or not

cacheModeback to summary
public CacheModeType cacheMode()

the cache mode used for this query

cacheRegionback to summary
public String cacheRegion()

the cache region to use

commentback to summary
public String comment()

comment added to the SQL query, useful for the DBA

fetchSizeback to summary
public int fetchSize()

the number of rows fetched by the JDBC Driver per roundtrip

flushModeback to summary
public FlushModeType flushMode()

the flush mode for the query

nameback to summary
public String name()

the name of the NamedQuery

queryback to summary
public String query()

the Query String for the NamedQuery

readOnlyback to summary
public boolean readOnly()

marks whether the results are fetched in read-only mode or not

timeoutback to summary
public int timeout()

the query timeout in seconds