Package org.hibernate.loader.custom.sql
Class SQLCustomQuery
- java.lang.Object
-
- org.hibernate.loader.custom.sql.SQLCustomQuery
-
- All Implemented Interfaces:
java.io.Serializable
,CustomQuery
public class SQLCustomQuery extends java.lang.Object implements CustomQuery, java.io.Serializable
Implements Hibernate's built-in support for native SQL queries. This support is built on top of the notion of "custom queries"...- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SQLCustomQuery(java.lang.String sqlQuery, NativeSQLQueryReturn[] queryReturns, java.util.Collection additionalQuerySpaces, SessionFactoryImplementor factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List
getCustomQueryReturns()
A collection ofdescriptors
describing the JDBC result set to be expected and how to map this result set.java.util.List<ParameterBinder>
getParameterValueBinders()
java.util.Set
getQuerySpaces()
Any query spaces to apply to the query execution.java.lang.String
getSQL()
The SQL query string to be performed.
-
-
-
Constructor Detail
-
SQLCustomQuery
public SQLCustomQuery(java.lang.String sqlQuery, NativeSQLQueryReturn[] queryReturns, java.util.Collection additionalQuerySpaces, SessionFactoryImplementor factory) throws HibernateException
- Throws:
HibernateException
-
-
Method Detail
-
getSQL
public java.lang.String getSQL()
Description copied from interface:CustomQuery
The SQL query string to be performed.- Specified by:
getSQL
in interfaceCustomQuery
- Returns:
- The SQL statement string.
-
getQuerySpaces
public java.util.Set getQuerySpaces()
Description copied from interface:CustomQuery
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.- Specified by:
getQuerySpaces
in interfaceCustomQuery
- Returns:
- The query spaces
-
getParameterValueBinders
public java.util.List<ParameterBinder> getParameterValueBinders()
- Specified by:
getParameterValueBinders
in interfaceCustomQuery
-
getCustomQueryReturns
public java.util.List getCustomQueryReturns()
Description copied from interface:CustomQuery
A collection ofdescriptors
describing the JDBC result set to be expected and how to map this result set.- Specified by:
getCustomQueryReturns
in interfaceCustomQuery
- Returns:
- List of return descriptors.
-
-