public class SQLCustomQuery extends Object implements CustomQuery, Serializable
Implements Hibernate’s built-in support for native SQL queries. <p/> This support is built on top of the notion of "custom queries"…
| Constructor and Description |
|---|
SQLCustomQuery(String sqlQuery,
NativeSQLQueryReturn[] queryReturns,
Collection additionalQuerySpaces,
SessionFactoryImplementor factory) |
| Modifier and Type | Method and Description |
|---|---|
List |
getCustomQueryReturns()
A collection of
descriptors describing the
JDBC result set to be expected and how to map this result set. |
List<ParameterBinder> |
getParameterValueBinders() |
Set |
getQuerySpaces()
Any query spaces to apply to the query execution.
|
String |
getSQL()
The SQL query string to be performed.
|
public SQLCustomQuery(String sqlQuery, NativeSQLQueryReturn[] queryReturns, Collection additionalQuerySpaces, SessionFactoryImplementor factory) throws HibernateException
HibernateExceptionpublic String getSQL()
CustomQueryThe SQL query string to be performed.
getSQL in interface CustomQuerypublic 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 in interface CustomQuerypublic List<ParameterBinder> getParameterValueBinders()
getParameterValueBinders in interface CustomQuerypublic List getCustomQueryReturns()
CustomQueryA collection of descriptors describing the
JDBC result set to be expected and how to map this result set.
getCustomQueryReturns in interface CustomQueryCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.