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

Method Detail

getSQL

public String getSQL()

getQuerySpaces

public Set getQuerySpaces()

getNamedParameterBindPoints

public Map getNamedParameterBindPoints()
Optional, may return null


getEntityNames

public String[] getEntityNames()

getEntityAliases

public EntityAliases[] getEntityAliases()

getCollectionAliases

public CollectionAliases[] getCollectionAliases()

getLockModes

public LockMode[] getLockModes()

getEntityOwners

public int[] getEntityOwners()
Optional, may return null


getCollectionOwner

public int[] getCollectionOwner()
Optional, may return null


getCollectionRoles

public String[] getCollectionRoles()
Optional, may return null


getScalarTypes

public Type[] getScalarTypes()
Optional, may return null


getScalarColumnAliases

public String[] getScalarColumnAliases()
Optional, may return null