public abstract class AbstractSessionImpl extends Object implements SessionImplementor
| Modifier and Type | Field and Description |
|---|---|
protected SessionFactoryImpl |
factory |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractSessionImpl(SessionFactoryImpl factory) |
| Modifier and Type | Method and Description |
|---|---|
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() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitafterScrollOperation, afterTransactionCompletion, applyNonFlushedChanges, beforeTransactionCompletion, bestGuessEntityName, connection, executeNativeUpdate, executeUpdate, flush, getBatcher, getCacheMode, getContextEntityIdentifier, getDontFlushFromFind, getEnabledFilters, getEntityMode, getEntityPersister, getEntityUsingInterceptor, getFetchProfile, getFilterParameterType, getFilterParameterValue, getFlushMode, getInterceptor, getJDBCContext, getListeners, getLoadQueryInfluencers, getNonFlushedChanges, getPersistenceContext, getTimestamp, guessEntityName, immediateLoad, initializeCollection, instantiate, internalLoad, isConnected, isEventSource, isOpen, isTransactionInProgress, iterate, iterateFilter, list, list, listCustomQuery, listFilter, scroll, scroll, scrollCustomQuery, setAutoClear, setCacheMode, setFetchProfile, setFlushModeprotected transient SessionFactoryImpl factory
protected AbstractSessionImpl(SessionFactoryImpl factory)
public SessionFactoryImplementor getFactory()
SessionImplementorgetFactory in interface SessionImplementorpublic boolean isClosed()
SessionImplementorSessionImplementor.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 SessionImplementorprotected void setClosed()
protected void errorIfClosed()
public Query getNamedQuery(String queryName) throws MappingException
SessionImplementorgetNamedQuery in interface SessionImplementorMappingExceptionpublic Query getNamedSQLQuery(String queryName) throws MappingException
SessionImplementorgetNamedSQLQuery in interface SessionImplementorMappingExceptionprotected HQLQueryPlan getHQLQueryPlan(String query, boolean shallow) throws HibernateException
HibernateExceptionprotected NativeSQLQueryPlan getNativeSQLQueryPlan(NativeSQLQuerySpecification spec) throws HibernateException
HibernateExceptionpublic List list(NativeSQLQuerySpecification spec, QueryParameters queryParameters) throws HibernateException
SessionImplementorlist in interface SessionImplementorspec - The specification of the native SQL query to execute.queryParameters - The parameters by which to perform the execution.HibernateExceptionpublic ScrollableResults scroll(NativeSQLQuerySpecification spec, QueryParameters queryParameters) throws HibernateException
SessionImplementorscroll in interface SessionImplementorspec - The specification of the native SQL query to execute.queryParameters - The parameters by which to perform the execution.HibernateExceptionCopyright © 2002-2017 Red Hat Middleware, LLC. All Rights Reserved