Package org.hibernate.loader.custom
Interface CustomQuery
-
- All Known Implementing Classes:
SQLCustomQuery
public interface CustomQuery
Extension point allowing any SQL query with named and positional parameters to be executed by Hibernate, returning managed entities, collections and simple scalar values.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<Return>
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<java.lang.String>
getQuerySpaces()
Any query spaces to apply to the query execution.java.lang.String
getSQL()
The SQL query string to be performed.
-
-
-
Method Detail
-
getSQL
java.lang.String getSQL()
The SQL query string to be performed.- Returns:
- The SQL statement string.
-
getQuerySpaces
java.util.Set<java.lang.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.- Returns:
- The query spaces
-
getParameterValueBinders
java.util.List<ParameterBinder> getParameterValueBinders()
-
getCustomQueryReturns
java.util.List<Return> getCustomQueryReturns()
A collection ofdescriptors
describing the JDBC result set to be expected and how to map this result set.- Returns:
- List of return descriptors.
-
-