类 NamedSQLQueryDefinition
- java.lang.Object
-
- org.hibernate.engine.spi.NamedQueryDefinition
-
- org.hibernate.engine.spi.NamedSQLQueryDefinition
-
- 所有已实现的接口:
Serializable
public class NamedSQLQueryDefinition extends NamedQueryDefinition
Definition of a named native SQL query, defined in the mapping metadata.- 作者:
- Max Andersen, Steve Ebersole
- 另请参阅:
- 序列化表格
-
-
构造器概要
构造器 构造器 说明 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)已过时。UseNamedSQLQueryDefinitionBuilderinstead.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)已过时。UseNamedSQLQueryDefinitionBuilderinstead.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidaddQueryReturns(NativeSQLQueryReturn[] queryReturnsToAdd)NativeSQLQueryReturn[]getQueryReturns()List<String>getQuerySpaces()StringgetResultSetRef()booleanisCallable()NamedSQLQueryDefinitionmakeCopy(String name)-
从类继承的方法 org.hibernate.engine.spi.NamedQueryDefinition
getCacheMode, getCacheRegion, getComment, getFetchSize, getFirstResult, getFlushMode, getLockOptions, getMaxResults, getName, getParameterTypes, getPassDistinctThrough, getQuery, getQueryString, getTimeout, isCacheable, isReadOnly, toString
-
-
-
-
构造器详细资料
-
NamedSQLQueryDefinition
@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)
已过时。UseNamedSQLQueryDefinitionBuilderinstead.This form was initially used to construct a NamedSQLQueryDefinition from the binder code when the result-set mapping information is not explicitly provided in the query definition (i.e., no resultset-mapping used).- 参数:
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)
-
NamedSQLQueryDefinition
@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)
已过时。UseNamedSQLQueryDefinitionBuilderinstead.This form was initially used to construct a NamedSQLQueryDefinition from the binder code when a resultset-mapping reference is used.- 参数:
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)
-
-
方法详细资料
-
getQueryReturns
public NativeSQLQueryReturn[] getQueryReturns()
-
isCallable
public boolean isCallable()
-
getResultSetRef
public String getResultSetRef()
-
makeCopy
public NamedSQLQueryDefinition makeCopy(String name)
- 覆盖:
makeCopy在类中NamedQueryDefinition
-
addQueryReturns
public void addQueryReturns(NativeSQLQueryReturn[] queryReturnsToAdd)
-
-