public class SQLCustomQuery extends Object implements CustomQuery, Serializable
| 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. | 
Map | 
getNamedParameterBindPoints()
A map representing positions within the supplied  
query to
 which we need to bind named parameters. | 
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()
CustomQuerygetSQL in interface CustomQuerypublic Set getQuerySpaces()
CustomQuerygetQuerySpaces in interface CustomQuerypublic Map getNamedParameterBindPoints()
CustomQueryquery to
 which we need to bind named parameters.
 
 Optional, may return null if no named parameters.
 
 The structure of the returned map (if one) as follows:Integer if the
 parameter occurs only once in the query; or a List of Integers if the
 parameter occurs more than oncegetNamedParameterBindPoints in interface CustomQuerypublic List getCustomQueryReturns()
CustomQuerydescriptors describing the
 JDBC result set to be expected and how to map this result set.getCustomQueryReturns in interface CustomQueryCopyright © 2001-2015 Red Hat, Inc. All Rights Reserved.