类 SQLCustomQuery
- java.lang.Object
-
- org.hibernate.loader.custom.sql.SQLCustomQuery
-
- 所有已实现的接口:
Serializable,CustomQuery
public class SQLCustomQuery extends Object implements CustomQuery, Serializable
Implements Hibernate's built-in support for native SQL queries. This support is built on top of the notion of "custom queries"...- 作者:
- Gavin King, Max Andersen, Steve Ebersole
- 另请参阅:
- 序列化表格
-
-
构造器概要
构造器 构造器 说明 SQLCustomQuery(String sqlQuery, NativeSQLQueryReturn[] queryReturns, Collection additionalQuerySpaces, SessionFactoryImplementor factory)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 ListgetCustomQueryReturns()A collection ofdescriptorsdescribing the JDBC result set to be expected and how to map this result set.List<ParameterBinder>getParameterValueBinders()SetgetQuerySpaces()Any query spaces to apply to the query execution.StringgetSQL()The SQL query string to be performed.
-
-
-
构造器详细资料
-
SQLCustomQuery
public SQLCustomQuery(String sqlQuery, NativeSQLQueryReturn[] queryReturns, Collection additionalQuerySpaces, SessionFactoryImplementor factory) throws HibernateException
-
-
方法详细资料
-
getSQL
public String getSQL()
从接口复制的说明:CustomQueryThe SQL query string to be performed.- 指定者:
getSQL在接口中CustomQuery- 返回:
- The SQL statement string.
-
getQuerySpaces
public Set getQuerySpaces()
从接口复制的说明:CustomQueryAny query spaces to apply to the query execution. Query spaces are used in Hibernate's auto-flushing mechanism to determine which entities need to be checked for pending changes.- 指定者:
getQuerySpaces在接口中CustomQuery- 返回:
- The query spaces
-
getParameterValueBinders
public List<ParameterBinder> getParameterValueBinders()
- 指定者:
getParameterValueBinders在接口中CustomQuery
-
getCustomQueryReturns
public List getCustomQueryReturns()
从接口复制的说明:CustomQueryA collection ofdescriptorsdescribing the JDBC result set to be expected and how to map this result set.- 指定者:
getCustomQueryReturns在接口中CustomQuery- 返回:
- List of return descriptors.
-
-