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
HibernateException
public String getSQL()
CustomQuery
getSQL
in interface CustomQuery
public Set getQuerySpaces()
CustomQuery
getQuerySpaces
in interface CustomQuery
public Map getNamedParameterBindPoints()
CustomQuery
query
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 CustomQuery
public List getCustomQueryReturns()
CustomQuery
descriptors
describing the
JDBC result set to be expected and how to map this result set.getCustomQueryReturns
in interface CustomQuery
Copyright © 2016 JBoss by Red Hat. All rights reserved.