Whereas jakarta. allows settings to be
specified using stringly-typed jakarta.s, this
annotation is typesafe.
Note that the members of this annotation correspond to hints enumerated by
org..
org.hibernate.query.NativeQuery
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public @Remove CacheModeType | cacheMode()
Deprecated
since 6.2. use
The cache interaction mode for this query.
cacheStoreMode() and
cacheRetrieveMode() since
CacheModeType is deprecated
|
| public String | |
| public CacheRetrieveMode | |
| public CacheStoreMode | |
| public boolean | callable()
Deprecated
since 6.0. Calling database procedures and functions through
Is the SQL query a call to a stored procedure
or function?
org. is no longer supported;
use jakarta. instead.
|
| public String | |
| public int | |
| public FlushModeType | |
| public String | |
| public String | |
| public String[] | |
| public boolean | |
| public Class | |
| public String | |
| public int |
| cacheable | back to summary |
|---|---|
| public boolean cacheable() Whether the query results are cacheable.
Default is | |
| cacheMode | back to summary |
|---|---|
| public @Remove CacheModeType cacheMode()
The cache interaction mode for this query.
| |
| cacheRegion | back to summary |
|---|---|
| public String cacheRegion() If the query results are cacheable, the name of the query cache region. | |
| cacheRetrieveMode | back to summary |
|---|---|
| public CacheRetrieveMode cacheRetrieveMode() The cache retrieval mode for objects returned by this query. | |
| cacheStoreMode | back to summary |
|---|---|
| public CacheStoreMode cacheStoreMode() The cache storage mode for objects returned by this query. | |
| callable | back to summary |
|---|---|
| public boolean callable()
Deprecated since 6.0. Calling database procedures and functions through
Is the SQL query a call to a stored procedure or function?
| |
| comment | back to summary |
|---|---|
| public String comment() A comment added to the SQL query. Useful when engaging with DBA. | |
| fetchSize | back to summary |
|---|---|
| public int fetchSize() The number of rows fetched by the JDBC driver per trip. | |
| flushMode | back to summary |
|---|---|
| public FlushModeType flushMode() The flush mode for the query. | |
| name | back to summary |
|---|---|
| public String name() The name of this query. Must be unique within a persistence unit. | |
| query | back to summary |
|---|---|
| public String query() The text of the SQL query. | |
| querySpaces | back to summary |
|---|---|
| public String[] querySpaces() The query spaces involved in this query. Typically, the names of tables which are referenced by the query. | |
| readOnly | back to summary |
|---|---|
| public boolean readOnly() Whether the results should be loaded in read-only mode.
Default is | |
| resultClass | back to summary |
|---|---|
| public Class The resulting
Should not be used in conjunction with | |
| resultSetMapping | back to summary |
|---|---|
| public String resultSetMapping() The name of a
Should not be used in conjunction with | |
| timeout | back to summary |
|---|---|
| public int timeout() The query timeout in seconds. Default is no timeout. | |