org.hibernate.loader.custom
Interface CustomQuery

All Known Implementing Classes:
SQLCustomQuery

public interface CustomQuery

Extension point allowing any SQL query with named and positional parameters to be executed by Hibernate, returning managed entities, collections and simple scalar values.

Author:
Gavin King

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[] getReturnAliases()
          Optional, may return null
 String[] getScalarColumnAliases()
          Optional, may return null
 Type[] getScalarTypes()
          Optional, may return null
 String getSQL()
           
 

Method Detail

getSQL

String getSQL()

getQuerySpaces

Set getQuerySpaces()

getNamedParameterBindPoints

Map getNamedParameterBindPoints()
Optional, may return null


getEntityNames

String[] getEntityNames()

getEntityAliases

EntityAliases[] getEntityAliases()

getCollectionAliases

CollectionAliases[] getCollectionAliases()

getLockModes

LockMode[] getLockModes()

getEntityOwners

int[] getEntityOwners()
Optional, may return null


getCollectionOwner

int[] getCollectionOwner()
Optional, may return null


getCollectionRoles

String[] getCollectionRoles()
Optional, may return null


getScalarTypes

Type[] getScalarTypes()
Optional, may return null


getScalarColumnAliases

String[] getScalarColumnAliases()
Optional, may return null


getReturnAliases

String[] getReturnAliases()
Optional, may return null