|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hibernate.engine.NamedQueryDefinition
org.hibernate.engine.NamedSQLQueryDefinition
public class NamedSQLQueryDefinition
Definition of a named native SQL query, defined in the mapping metadata.
Constructor Summary | |
---|---|
NamedSQLQueryDefinition(java.lang.String query,
NativeSQLQueryReturn[] queryReturns,
java.util.List<java.lang.String> querySpaces,
boolean cacheable,
java.lang.String cacheRegion,
java.lang.Integer timeout,
java.lang.Integer fetchSize,
FlushMode flushMode,
CacheMode cacheMode,
boolean readOnly,
java.lang.String comment,
java.util.Map parameterTypes,
boolean callable)
This form used to construct a NamedSQLQueryDefinition from the binder code when a the result-set mapping information is explicitly provided in the query definition (i.e., no resultset-mapping used) |
|
NamedSQLQueryDefinition(java.lang.String query,
java.lang.String resultSetRef,
java.util.List<java.lang.String> querySpaces,
boolean cacheable,
java.lang.String cacheRegion,
java.lang.Integer timeout,
java.lang.Integer fetchSize,
FlushMode flushMode,
CacheMode cacheMode,
boolean readOnly,
java.lang.String comment,
java.util.Map parameterTypes,
boolean callable)
This form used to construct a NamedSQLQueryDefinition from the binder code when a resultset-mapping reference is used. |
|
NamedSQLQueryDefinition(java.lang.String query,
java.lang.String resultSetRef,
java.util.List<java.lang.String> querySpaces,
boolean cacheable,
java.lang.String cacheRegion,
java.lang.Integer timeout,
java.lang.Integer fetchSize,
FlushMode flushMode,
java.util.Map parameterTypes,
boolean callable)
Deprecated. |
Method Summary | |
---|---|
NativeSQLQueryReturn[] |
getQueryReturns()
|
java.util.List<java.lang.String> |
getQuerySpaces()
|
java.lang.String |
getResultSetRef()
|
boolean |
isCallable()
|
Methods inherited from class org.hibernate.engine.NamedQueryDefinition |
---|
getCacheMode, getCacheRegion, getComment, getFetchSize, getFlushMode, getParameterTypes, getQuery, getQueryString, getTimeout, isCacheable, isReadOnly, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public NamedSQLQueryDefinition(java.lang.String query, NativeSQLQueryReturn[] queryReturns, java.util.List<java.lang.String> querySpaces, boolean cacheable, java.lang.String cacheRegion, java.lang.Integer timeout, java.lang.Integer fetchSize, FlushMode flushMode, CacheMode cacheMode, boolean readOnly, java.lang.String comment, java.util.Map parameterTypes, boolean callable)
query
- 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)public NamedSQLQueryDefinition(java.lang.String query, java.lang.String resultSetRef, java.util.List<java.lang.String> querySpaces, boolean cacheable, java.lang.String cacheRegion, java.lang.Integer timeout, java.lang.Integer fetchSize, FlushMode flushMode, CacheMode cacheMode, boolean readOnly, java.lang.String comment, java.util.Map parameterTypes, boolean callable)
query
- 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 NamedSQLQueryDefinition(java.lang.String query, java.lang.String resultSetRef, java.util.List<java.lang.String> querySpaces, boolean cacheable, java.lang.String cacheRegion, java.lang.Integer timeout, java.lang.Integer fetchSize, FlushMode flushMode, java.util.Map parameterTypes, boolean callable)
query
- The sql query stringresultSetRef
- The result-set-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 queryparameterTypes
- parameter type mapcallable
- Does the query string represent a callable object (i.e., proc)Method Detail |
---|
public NativeSQLQueryReturn[] getQueryReturns()
public java.util.List<java.lang.String> getQuerySpaces()
public boolean isCallable()
public java.lang.String getResultSetRef()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |