public class NamedSQLQueryDefinition extends NamedQueryDefinition
Constructor and Description |
---|
NamedSQLQueryDefinition(String name,
String query,
NativeSQLQueryReturn[] queryReturns,
List<String> querySpaces,
boolean cacheable,
String cacheRegion,
Integer timeout,
Integer fetchSize,
FlushMode flushMode,
CacheMode cacheMode,
boolean readOnly,
String comment,
Map parameterTypes,
boolean callable)
Deprecated.
Use
NamedSQLQueryDefinitionBuilder instead. |
NamedSQLQueryDefinition(String name,
String query,
String resultSetRef,
List<String> querySpaces,
boolean cacheable,
String cacheRegion,
Integer timeout,
Integer fetchSize,
FlushMode flushMode,
CacheMode cacheMode,
boolean readOnly,
String comment,
Map parameterTypes,
boolean callable)
Deprecated.
Use
NamedSQLQueryDefinitionBuilder instead. |
Modifier and Type | Method and Description |
---|---|
void |
addQueryReturns(NativeSQLQueryReturn[] queryReturnsToAdd) |
NativeSQLQueryReturn[] |
getQueryReturns() |
List<String> |
getQuerySpaces() |
String |
getResultSetRef() |
boolean |
isCallable() |
NamedSQLQueryDefinition |
makeCopy(String name) |
getCacheMode, getCacheRegion, getComment, getFetchSize, getFirstResult, getFlushMode, getLockOptions, getMaxResults, getName, getParameterTypes, getQuery, getQueryString, getTimeout, isCacheable, isReadOnly, toString
@Deprecated public NamedSQLQueryDefinition(String name, String query, NativeSQLQueryReturn[] queryReturns, List<String> querySpaces, boolean cacheable, String cacheRegion, Integer timeout, Integer fetchSize, FlushMode flushMode, CacheMode cacheMode, boolean readOnly, String comment, Map parameterTypes, boolean callable)
NamedSQLQueryDefinitionBuilder
instead.name
- The name of named queryquery
- The sql query stringqueryReturns
- The in-lined query return definitionsquerySpaces
- Any specified query spaces (used for auto-flushing)cacheable
- Whether the query results are cacheablecacheRegion
- If cacheable, the region into which to store the resultstimeout
- A JDBC-level timeout to be appliedfetchSize
- A JDBC-level fetch-size to be appliedflushMode
- The flush mode to use for this querycacheMode
- The cache mode to use during execution and subsequent result loadingreadOnly
- Whether returned entities should be marked as read-only in the sessioncomment
- Any sql comment to be applied to the queryparameterTypes
- parameter type mapcallable
- Does the query string represent a callable object (i.e., proc)@Deprecated public NamedSQLQueryDefinition(String name, String query, String resultSetRef, List<String> querySpaces, boolean cacheable, String cacheRegion, Integer timeout, Integer fetchSize, FlushMode flushMode, CacheMode cacheMode, boolean readOnly, String comment, Map parameterTypes, boolean callable)
NamedSQLQueryDefinitionBuilder
instead.name
- The name of named queryquery
- The sql query stringresultSetRef
- The resultset-mapping namequerySpaces
- Any specified query spaces (used for auto-flushing)cacheable
- Whether the query results are cacheablecacheRegion
- If cacheable, the region into which to store the resultstimeout
- A JDBC-level timeout to be appliedfetchSize
- A JDBC-level fetch-size to be appliedflushMode
- The flush mode to use for this querycacheMode
- The cache mode to use during execution and subsequent result loadingreadOnly
- Whether returned entities should be marked as read-only in the sessioncomment
- Any sql comment to be applied to the queryparameterTypes
- parameter type mapcallable
- Does the query string represent a callable object (i.e., proc)public NativeSQLQueryReturn[] getQueryReturns()
public boolean isCallable()
public String getResultSetRef()
public NamedSQLQueryDefinition makeCopy(String name)
makeCopy
in class NamedQueryDefinition
public void addQueryReturns(NativeSQLQueryReturn[] queryReturnsToAdd)
Copyright © 2019 JBoss by Red Hat. All rights reserved.