接口 CustomQuery
-
- 所有已知实现类:
SQLCustomQuery
public interface CustomQueryExtension point allowing any SQL query with named and positional parameters to be executed by Hibernate, returning managed entities, collections and simple scalar values.- 作者:
- Gavin King, Steve Ebersole
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 List<Return>getCustomQueryReturns()A collection ofdescriptorsdescribing the JDBC result set to be expected and how to map this result set.List<ParameterBinder>getParameterValueBinders()Set<String>getQuerySpaces()Any query spaces to apply to the query execution.StringgetSQL()The SQL query string to be performed.
-
-
-
方法详细资料
-
getSQL
String getSQL()
The SQL query string to be performed.- 返回:
- The SQL statement string.
-
getQuerySpaces
Set<String> getQuerySpaces()
Any 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.- 返回:
- The query spaces
-
getParameterValueBinders
List<ParameterBinder> getParameterValueBinders()
-
getCustomQueryReturns
List<Return> getCustomQueryReturns()
A collection ofdescriptorsdescribing the JDBC result set to be expected and how to map this result set.- 返回:
- List of return descriptors.
-
-