|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.hibernate.impl.AbstractQueryImpl org.hibernate.impl.SQLQueryImpl
public class SQLQueryImpl
Implements SQL query passthrough.
SELECT {person}.NAME AS {person.name}, {person}.AGE AS {person.age}, {person}.SEX AS {person.sex} FROM PERSON {person} WHERE {person}.NAME LIKE 'Hiber%'
Field Summary |
---|
Fields inherited from class org.hibernate.impl.AbstractQueryImpl |
---|
parameterMetadata, session |
Method Summary | |
---|---|
org.hibernate.SQLQuery |
addEntity(java.lang.Class entityClass)
|
org.hibernate.SQLQuery |
addEntity(java.lang.String entityName)
|
org.hibernate.SQLQuery |
addEntity(java.lang.String alias,
java.lang.Class entityClass)
|
org.hibernate.SQLQuery |
addEntity(java.lang.String alias,
java.lang.Class entityClass,
org.hibernate.LockMode lockMode)
|
org.hibernate.SQLQuery |
addEntity(java.lang.String alias,
java.lang.String entityName)
|
org.hibernate.SQLQuery |
addEntity(java.lang.String alias,
java.lang.String entityName,
org.hibernate.LockMode lockMode)
|
org.hibernate.SQLQuery |
addJoin(java.lang.String alias,
java.lang.String path)
|
org.hibernate.SQLQuery |
addJoin(java.lang.String alias,
java.lang.String path,
org.hibernate.LockMode lockMode)
|
org.hibernate.SQLQuery |
addScalar(java.lang.String columnAlias)
|
org.hibernate.SQLQuery |
addScalar(java.lang.String columnAlias,
org.hibernate.type.Type type)
|
org.hibernate.SQLQuery |
addSynchronizedEntityClass(java.lang.Class entityClass)
|
org.hibernate.SQLQuery |
addSynchronizedEntityName(java.lang.String entityName)
|
org.hibernate.SQLQuery |
addSynchronizedQuerySpace(java.lang.String querySpace)
|
int |
count()
Return the query results count without extracting it. |
int |
executeUpdate()
Execute the update or delete statement. |
protected java.util.Map |
getLockModes()
|
org.hibernate.engine.QueryParameters |
getQueryParameters(java.util.Map namedParams)
|
java.lang.String[] |
getReturnAliases()
Return the HQL select clause aliases (if any) |
org.hibernate.type.Type[] |
getReturnTypes()
Return the Hibernate types of the query result set. |
java.util.Iterator |
iterate()
Return the query results as an Iterator. |
java.util.List |
list()
Return the query results as a List. |
org.hibernate.ScrollableResults |
scroll()
Return the query results as ScrollableResults. |
org.hibernate.ScrollableResults |
scroll(org.hibernate.ScrollMode scrollMode)
Return the query results as ScrollableResults. |
Query |
setLockMode(java.lang.String alias,
org.hibernate.LockMode lockMode)
Set the lockmode for the objects idententified by the given alias that appears in the FROM clause. |
org.hibernate.SQLQuery |
setResultSetMapping(java.lang.String name)
|
protected void |
verifyParameters()
|
Methods inherited from class org.hibernate.impl.AbstractQueryImpl |
---|
after, before, determineType, determineType, determineType, determineType, determineType, expandParameterLists, getNamedParameterLists, getNamedParameters, getNamedParams, getQueryString, getRowSelection, getSelection, getTypes, getValues, hasNamedParameters, isReadOnly, setBigDecimal, setBigDecimal, setBigInteger, setBigInteger, setBinary, setBinary, setBoolean, setBoolean, setByte, setByte, setCacheable, setCacheMode, setCacheRegion, setCalendar, setCalendar, setCalendarDate, setCalendarDate, setCharacter, setCharacter, setCollectionKey, setComment, setDate, setDate, setDouble, setDouble, setEntity, setEntity, setFetchSize, setFirstResult, setFloat, setFloat, setFlushMode, setInteger, setInteger, setLocale, setLocale, setLong, setLong, setMaxResults, setOptionalEntityName, setOptionalId, setOptionalObject, setParameter, setParameter, setParameter, setParameter, setParameterList, setParameterList, setParameterList, setParameterList, setParameters, setProperties, setProperties, setReadOnly, setResultTransformer, setSerializable, setSerializable, setShort, setShort, setString, setString, setText, setText, setTime, setTime, setTimeout, setTimestamp, setTimestamp, toString, typeArray, uniqueResult, valueArray, verifyParameters |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public java.util.List list() throws org.hibernate.HibernateException
Query
list
in interface Query
HibernateException
public org.hibernate.ScrollableResults scroll(org.hibernate.ScrollMode scrollMode) throws org.hibernate.HibernateException
Query
scroll
in interface Query
HibernateException
ScrollableResults
,
ScrollMode
public org.hibernate.ScrollableResults scroll() throws org.hibernate.HibernateException
Query
scroll
in interface Query
HibernateException
ScrollableResults
public java.util.Iterator iterate() throws org.hibernate.HibernateException
Query
iterate
in interface Query
HibernateException
public org.hibernate.engine.QueryParameters getQueryParameters(java.util.Map namedParams)
getQueryParameters
in class org.hibernate.impl.AbstractQueryImpl
protected void verifyParameters()
verifyParameters
in class org.hibernate.impl.AbstractQueryImpl
public java.lang.String[] getReturnAliases() throws org.hibernate.HibernateException
Query
getReturnAliases
in interface Query
getReturnAliases
in class org.hibernate.impl.AbstractQueryImpl
org.hibernate.HibernateException
public org.hibernate.type.Type[] getReturnTypes() throws org.hibernate.HibernateException
Query
getReturnTypes
in interface Query
getReturnTypes
in class org.hibernate.impl.AbstractQueryImpl
org.hibernate.HibernateException
public Query setLockMode(java.lang.String alias, org.hibernate.LockMode lockMode)
Query
setLockMode
in interface Query
alias
- a query alias, or this for a collection filterprotected java.util.Map getLockModes()
getLockModes
in class org.hibernate.impl.AbstractQueryImpl
public org.hibernate.SQLQuery addScalar(java.lang.String columnAlias, org.hibernate.type.Type type)
addScalar
in interface org.hibernate.SQLQuery
public org.hibernate.SQLQuery addScalar(java.lang.String columnAlias)
addScalar
in interface org.hibernate.SQLQuery
public org.hibernate.SQLQuery addJoin(java.lang.String alias, java.lang.String path)
addJoin
in interface org.hibernate.SQLQuery
public org.hibernate.SQLQuery addEntity(java.lang.Class entityClass)
addEntity
in interface org.hibernate.SQLQuery
public org.hibernate.SQLQuery addEntity(java.lang.String entityName)
addEntity
in interface org.hibernate.SQLQuery
public org.hibernate.SQLQuery addEntity(java.lang.String alias, java.lang.String entityName)
addEntity
in interface org.hibernate.SQLQuery
public org.hibernate.SQLQuery addEntity(java.lang.String alias, java.lang.Class entityClass)
addEntity
in interface org.hibernate.SQLQuery
public org.hibernate.SQLQuery addJoin(java.lang.String alias, java.lang.String path, org.hibernate.LockMode lockMode)
addJoin
in interface org.hibernate.SQLQuery
public org.hibernate.SQLQuery addEntity(java.lang.String alias, java.lang.String entityName, org.hibernate.LockMode lockMode)
addEntity
in interface org.hibernate.SQLQuery
public org.hibernate.SQLQuery addEntity(java.lang.String alias, java.lang.Class entityClass, org.hibernate.LockMode lockMode)
addEntity
in interface org.hibernate.SQLQuery
public org.hibernate.SQLQuery setResultSetMapping(java.lang.String name)
setResultSetMapping
in interface org.hibernate.SQLQuery
public org.hibernate.SQLQuery addSynchronizedQuerySpace(java.lang.String querySpace)
addSynchronizedQuerySpace
in interface org.hibernate.SQLQuery
public org.hibernate.SQLQuery addSynchronizedEntityName(java.lang.String entityName)
addSynchronizedEntityName
in interface org.hibernate.SQLQuery
public org.hibernate.SQLQuery addSynchronizedEntityClass(java.lang.Class entityClass)
addSynchronizedEntityClass
in interface org.hibernate.SQLQuery
public int executeUpdate() throws org.hibernate.HibernateException
Query
executeUpdate
in interface Query
HibernateException
public int count() throws org.hibernate.HibernateException
Query
count
in interface Query
HibernateException
Query.count()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |