java.lang.Object
org.hibernate.loader.custom.SQLCustomQuery
- All Implemented Interfaces:
- CustomQuery
- public class SQLCustomQuery
- extends java.lang.Object
- implements CustomQuery
Implements Hibernate's built-in support for
native SQL queries.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
entityNames
private final java.lang.String[] entityNames
collectionRoles
private final java.lang.String[] collectionRoles
collectionOwners
private final int[] collectionOwners
entityOwners
private final int[] entityOwners
lockModes
private final org.hibernate.LockMode[] lockModes
sql
private final java.lang.String sql
querySpaces
private final java.util.Set querySpaces
namedParameters
private final java.util.Map namedParameters
scalarTypes
private final org.hibernate.type.Type[] scalarTypes
scalarColumnAliases
private final java.lang.String[] scalarColumnAliases
entityDescriptors
private final org.hibernate.loader.EntityAliases[] entityDescriptors
collectionDescriptors
private final org.hibernate.loader.CollectionAliases[] collectionDescriptors
returnAliases
private final java.lang.String[] returnAliases
SQLCustomQuery
public SQLCustomQuery(SQLQueryReturn[] queryReturns,
SQLQueryScalarReturn[] scalarQueryReturns,
java.lang.String sqlQuery,
java.util.Collection additionalQuerySpaces,
org.hibernate.engine.SessionFactoryImplementor factory)
throws org.hibernate.HibernateException
getSQL
public java.lang.String getSQL()
- Specified by:
getSQL in interface CustomQuery
getNamedParameterBindPoints
public java.util.Map getNamedParameterBindPoints()
- Description copied from interface:
CustomQuery
- Optional, may return null
- Specified by:
getNamedParameterBindPoints in interface CustomQuery
getCollectionRoles
public java.lang.String[] getCollectionRoles()
- Description copied from interface:
CustomQuery
- Optional, may return null
- Specified by:
getCollectionRoles in interface CustomQuery
getEntityNames
public java.lang.String[] getEntityNames()
- Specified by:
getEntityNames in interface CustomQuery
getLockModes
public org.hibernate.LockMode[] getLockModes()
- Specified by:
getLockModes in interface CustomQuery
getEntityAliases
public org.hibernate.loader.EntityAliases[] getEntityAliases()
- Specified by:
getEntityAliases in interface CustomQuery
getCollectionAliases
public org.hibernate.loader.CollectionAliases[] getCollectionAliases()
- Specified by:
getCollectionAliases in interface CustomQuery
getQuerySpaces
public java.util.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 java.lang.String[] getScalarColumnAliases()
- Description copied from interface:
CustomQuery
- Optional, may return null
- Specified by:
getScalarColumnAliases in interface CustomQuery
getScalarTypes
public org.hibernate.type.Type[] getScalarTypes()
- Description copied from interface:
CustomQuery
- Optional, may return null
- Specified by:
getScalarTypes in interface CustomQuery
getReturnAliases
public java.lang.String[] getReturnAliases()
- Description copied from interface:
CustomQuery
- Optional, may return null
- Specified by:
getReturnAliases in interface CustomQuery