|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.hibernate.loader.custom.sql.SQLCustomQuery
public class SQLCustomQuery
Implements Hibernate's built-in support for native SQL queries.
This support is built on top of the notion of "custom queries"...
Constructor Summary | |
---|---|
SQLCustomQuery(String sqlQuery,
NativeSQLQueryReturn[] queryReturns,
Collection additionalQuerySpaces,
SessionFactoryImplementor factory)
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SQLCustomQuery(String sqlQuery, NativeSQLQueryReturn[] queryReturns, Collection additionalQuerySpaces, SessionFactoryImplementor factory) throws HibernateException
HibernateException
Method Detail |
---|
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 once
getNamedParameterBindPoints
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |