org.hibernate.loader.custom.sql

Class SQLCustomQuery

Implemented Interfaces:
CustomQuery

public class SQLCustomQuery
extends java.lang.Object
implements CustomQuery

Implements Hibernate's built-in support for native SQL queries.

This support is built on top of the notion of "custom queries"...

Authors:
Gavin King
Max Andersen
Steve Ebersole

Field Summary

static Logger
log

Constructor Summary

SQLCustomQuery(String sqlQuery, NativeSQLQueryReturn[] queryReturns, Collection additionalQuerySpaces, SessionFactoryImplementor factory)

Method Summary

List
getCustomQueryReturns()
Map
getNamedParameterBindPoints()
Set
getQuerySpaces()
String
getSQL()

Field Details

log

public static final Logger log

Constructor Details

SQLCustomQuery

public SQLCustomQuery(String sqlQuery,
                      NativeSQLQueryReturn[] queryReturns,
                      Collection additionalQuerySpaces,
                      SessionFactoryImplementor factory)
            throws HibernateException

Method Details

getCustomQueryReturns

public List getCustomQueryReturns()
Specified by:
getCustomQueryReturns in interface CustomQuery

getNamedParameterBindPoints

public Map getNamedParameterBindPoints()
Specified by:
getNamedParameterBindPoints in interface CustomQuery

getQuerySpaces

public Set getQuerySpaces()
Specified by:
getQuerySpaces in interface CustomQuery

getSQL

public String getSQL()
Specified by:
getSQL in interface CustomQuery