@Target(value={TYPE,PACKAGE}) @Retention(value=RUNTIME) @Repeatable(value=NamedQueries.class) public @interface NamedQuery
NamedQuery
with Hibernate features.Query
Modifier and Type | Required Element and Description |
---|---|
java.lang.String |
name
The name of this
NamedQuery . |
java.lang.String |
query
The query string for this
NamedQuery . |
Modifier and Type | Optional Element and Description |
---|---|
boolean |
cacheable
Whether the query (results) is cacheable or not.
|
CacheModeType |
cacheMode
The cache mode used for this query.
|
java.lang.String |
cacheRegion
If the query results are cacheable, name the query cache region to use.
|
java.lang.String |
comment
A comment added to the generated SQL query.
|
int |
fetchSize
The number of rows fetched by the JDBC Driver per trip.
|
FlushModeType |
flushMode
The flush mode for this query.
|
boolean |
readOnly
Whether the results should be read-only.
|
int |
timeout
The query timeout (in seconds).
|
public abstract FlushModeType flushMode
public abstract boolean cacheable
false
, that is not cacheable.public abstract java.lang.String cacheRegion
public abstract int fetchSize
public abstract int timeout
public abstract java.lang.String comment
public abstract CacheModeType cacheMode
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.