org.hibernate.loader.custom
Class SQLCustomQuery

java.lang.Object
  extended byorg.hibernate.loader.custom.SQLCustomQuery
All Implemented Interfaces:
CustomQuery

public class SQLCustomQuery
extends Object
implements CustomQuery

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

Author:
Gavin King, Max Andersen

Constructor Summary
SQLCustomQuery(SQLQueryReturn[] queryReturns, SQLQueryScalarReturn[] scalarQueryReturns, String sqlQuery, Collection additionalQuerySpaces, SessionFactoryImplementor factory)
           
 
Method Summary
 CollectionAliases[] getCollectionAliases()
           
 int[] getCollectionOwner()
          Optional, may return null
 String[] getCollectionRoles()
          Optional, may return null
 EntityAliases[] getEntityAliases()
           
 String[] getEntityNames()
           
 int[] getEntityOwners()
          Optional, may return null
 LockMode[] getLockModes()
           
 Map getNamedParameterBindPoints()
          Optional, may return null
 Set getQuerySpaces()
           
 String[] getScalarColumnAliases()
          Optional, may return null
 Type[] getScalarTypes()
          Optional, may return null
 String getSQL()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SQLCustomQuery

public SQLCustomQuery(SQLQueryReturn[] queryReturns,
                      SQLQueryScalarReturn[] scalarQueryReturns,
                      String sqlQuery,
                      Collection additionalQuerySpaces,
                      SessionFactoryImplementor factory)
               throws HibernateException
Method Detail

getSQL

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

getNamedParameterBindPoints

public Map getNamedParameterBindPoints()
Description copied from interface: CustomQuery
Optional, may return null

Specified by:
getNamedParameterBindPoints in interface CustomQuery

getCollectionRoles

public String[] getCollectionRoles()
Description copied from interface: CustomQuery
Optional, may return null

Specified by:
getCollectionRoles in interface CustomQuery

getEntityNames

public String[] getEntityNames()
Specified by:
getEntityNames in interface CustomQuery

getLockModes

public LockMode[] getLockModes()
Specified by:
getLockModes in interface CustomQuery

getEntityAliases

public EntityAliases[] getEntityAliases()
Specified by:
getEntityAliases in interface CustomQuery

getCollectionAliases

public CollectionAliases[] getCollectionAliases()
Specified by:
getCollectionAliases in interface CustomQuery

getQuerySpaces

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

getCollectionOwner

public int[] getCollectionOwner()
Description copied from interface: CustomQuery
Optional, may return null

Specified by:
getCollectionOwner in interface CustomQuery

getEntityOwners

public int[] getEntityOwners()
Description copied from interface: CustomQuery
Optional, may return null

Specified by:
getEntityOwners in interface CustomQuery

getScalarColumnAliases

public String[] getScalarColumnAliases()
Description copied from interface: CustomQuery
Optional, may return null

Specified by:
getScalarColumnAliases in interface CustomQuery

getScalarTypes

public Type[] getScalarTypes()
Description copied from interface: CustomQuery
Optional, may return null

Specified by:
getScalarTypes in interface CustomQuery