|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.hibernate.impl.AbstractSessionImpl
public abstract class AbstractSessionImpl
Functionality common to stateless and stateful sessions
Field Summary | |
---|---|
protected SessionFactoryImpl |
factory
|
Constructor Summary | |
---|---|
protected |
AbstractSessionImpl(SessionFactoryImpl factory)
|
Method Summary | |
---|---|
Query |
createQuery(String queryString)
|
SQLQuery |
createSQLQuery(String sql)
|
protected void |
errorIfClosed()
|
SessionFactoryImplementor |
getFactory()
Get the creating SessionFactoryImplementor |
protected HQLQueryPlan |
getHQLQueryPlan(String query,
boolean shallow)
|
Query |
getNamedQuery(String queryName)
Get a Query instance for a named query or named native SQL query |
Query |
getNamedSQLQuery(String queryName)
Get a Query instance for a named native SQL query |
protected NativeSQLQueryPlan |
getNativeSQLQueryPlan(NativeSQLQuerySpecification spec)
|
boolean |
isClosed()
Determine whether the session is closed. |
List |
list(NativeSQLQuerySpecification spec,
QueryParameters queryParameters)
Execute a native SQL query, and return the results as a fully built list. |
ScrollableResults |
scroll(NativeSQLQuerySpecification spec,
QueryParameters queryParameters)
Execute a native SQL query, and return the results as a scrollable result. |
protected void |
setClosed()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected transient SessionFactoryImpl factory
Constructor Detail |
---|
protected AbstractSessionImpl(SessionFactoryImpl factory)
Method Detail |
---|
public SessionFactoryImplementor getFactory()
SessionImplementor
getFactory
in interface SessionImplementor
public boolean isClosed()
SessionImplementor
SessionImplementor.isOpen()
as this method does not attempt any JTA synch
registration, where as SessionImplementor.isOpen()
does; which makes this one
nicer to use for most internal purposes.
isClosed
in interface SessionImplementor
protected void setClosed()
protected void errorIfClosed()
public Query getNamedQuery(String queryName) throws MappingException
SessionImplementor
getNamedQuery
in interface SessionImplementor
MappingException
public Query getNamedSQLQuery(String queryName) throws MappingException
SessionImplementor
getNamedSQLQuery
in interface SessionImplementor
MappingException
public Query createQuery(String queryString)
public SQLQuery createSQLQuery(String sql)
protected HQLQueryPlan getHQLQueryPlan(String query, boolean shallow) throws HibernateException
HibernateException
protected NativeSQLQueryPlan getNativeSQLQueryPlan(NativeSQLQuerySpecification spec) throws HibernateException
HibernateException
public List list(NativeSQLQuerySpecification spec, QueryParameters queryParameters) throws HibernateException
SessionImplementor
list
in interface SessionImplementor
spec
- The specification of the native SQL query to execute.queryParameters
- The parameters by which to perform the execution.
HibernateException
public ScrollableResults scroll(NativeSQLQuerySpecification spec, QueryParameters queryParameters) throws HibernateException
SessionImplementor
scroll
in interface SessionImplementor
spec
- The specification of the native SQL query to execute.queryParameters
- The parameters by which to perform the execution.
HibernateException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |