org.hibernate.envers.entities.mapper.relation.lazy
Class AbstractDelegateSessionImplementor
java.lang.Object
org.hibernate.envers.entities.mapper.relation.lazy.AbstractDelegateSessionImplementor
- All Implemented Interfaces:
- Serializable, org.hibernate.engine.SessionImplementor
- Direct Known Subclasses:
- ToOneDelegateSessionImplementor
public abstract class AbstractDelegateSessionImplementor
- extends Object
- implements org.hibernate.engine.SessionImplementor
- Author:
- Adam Warski (adam at warski dot org)
- See Also:
- Serialized Form
Method Summary |
void |
afterScrollOperation()
|
void |
afterTransactionCompletion(boolean successful,
org.hibernate.Transaction tx)
|
void |
beforeTransactionCompletion(org.hibernate.Transaction tx)
|
String |
bestGuessEntityName(Object object)
|
Connection |
connection()
|
abstract Object |
doImmediateLoad(String entityName)
|
int |
executeNativeUpdate(org.hibernate.engine.query.sql.NativeSQLQuerySpecification specification,
org.hibernate.engine.QueryParameters queryParameters)
|
int |
executeUpdate(String query,
org.hibernate.engine.QueryParameters queryParameters)
|
void |
flush()
|
org.hibernate.jdbc.Batcher |
getBatcher()
|
org.hibernate.CacheMode |
getCacheMode()
|
Serializable |
getContextEntityIdentifier(Object object)
|
int |
getDontFlushFromFind()
|
Map |
getEnabledFilters()
|
org.hibernate.EntityMode |
getEntityMode()
|
org.hibernate.persister.entity.EntityPersister |
getEntityPersister(String entityName,
Object object)
|
Object |
getEntityUsingInterceptor(org.hibernate.engine.EntityKey key)
|
org.hibernate.engine.SessionFactoryImplementor |
getFactory()
|
String |
getFetchProfile()
|
org.hibernate.type.Type |
getFilterParameterType(String filterParameterName)
|
Object |
getFilterParameterValue(String filterParameterName)
|
org.hibernate.FlushMode |
getFlushMode()
|
org.hibernate.Interceptor |
getInterceptor()
|
org.hibernate.jdbc.JDBCContext |
getJDBCContext()
|
org.hibernate.event.EventListeners |
getListeners()
|
org.hibernate.engine.LoadQueryInfluencers |
getLoadQueryInfluencers()
|
org.hibernate.Query |
getNamedQuery(String name)
|
org.hibernate.Query |
getNamedSQLQuery(String name)
|
org.hibernate.engine.PersistenceContext |
getPersistenceContext()
|
long |
getTimestamp()
|
String |
guessEntityName(Object entity)
|
Object |
immediateLoad(String entityName,
Serializable id)
|
void |
initializeCollection(org.hibernate.collection.PersistentCollection collection,
boolean writing)
|
Object |
instantiate(String entityName,
Serializable id)
|
Object |
internalLoad(String entityName,
Serializable id,
boolean eager,
boolean nullable)
|
boolean |
isClosed()
|
boolean |
isConnected()
|
boolean |
isEventSource()
|
boolean |
isOpen()
|
boolean |
isTransactionInProgress()
|
Iterator |
iterate(String query,
org.hibernate.engine.QueryParameters queryParameters)
|
Iterator |
iterateFilter(Object collection,
String filter,
org.hibernate.engine.QueryParameters queryParameters)
|
List |
list(org.hibernate.impl.CriteriaImpl criteria)
|
List |
list(org.hibernate.engine.query.sql.NativeSQLQuerySpecification spec,
org.hibernate.engine.QueryParameters queryParameters)
|
List |
list(String query,
org.hibernate.engine.QueryParameters queryParameters)
|
List |
listCustomQuery(org.hibernate.loader.custom.CustomQuery customQuery,
org.hibernate.engine.QueryParameters queryParameters)
|
List |
listFilter(Object collection,
String filter,
org.hibernate.engine.QueryParameters queryParameters)
|
org.hibernate.ScrollableResults |
scroll(org.hibernate.impl.CriteriaImpl criteria,
org.hibernate.ScrollMode scrollMode)
|
org.hibernate.ScrollableResults |
scroll(org.hibernate.engine.query.sql.NativeSQLQuerySpecification spec,
org.hibernate.engine.QueryParameters queryParameters)
|
org.hibernate.ScrollableResults |
scroll(String query,
org.hibernate.engine.QueryParameters queryParameters)
|
org.hibernate.ScrollableResults |
scrollCustomQuery(org.hibernate.loader.custom.CustomQuery customQuery,
org.hibernate.engine.QueryParameters queryParameters)
|
void |
setAutoClear(boolean enabled)
|
void |
setCacheMode(org.hibernate.CacheMode cm)
|
void |
setFetchProfile(String name)
|
void |
setFlushMode(org.hibernate.FlushMode fm)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractDelegateSessionImplementor
public AbstractDelegateSessionImplementor(org.hibernate.engine.SessionImplementor delegate)
doImmediateLoad
public abstract Object doImmediateLoad(String entityName)
immediateLoad
public Object immediateLoad(String entityName,
Serializable id)
throws org.hibernate.HibernateException
- Specified by:
immediateLoad
in interface org.hibernate.engine.SessionImplementor
- Throws:
org.hibernate.HibernateException
getLoadQueryInfluencers
public org.hibernate.engine.LoadQueryInfluencers getLoadQueryInfluencers()
- Specified by:
getLoadQueryInfluencers
in interface org.hibernate.engine.SessionImplementor
getInterceptor
public org.hibernate.Interceptor getInterceptor()
- Specified by:
getInterceptor
in interface org.hibernate.engine.SessionImplementor
setAutoClear
public void setAutoClear(boolean enabled)
- Specified by:
setAutoClear
in interface org.hibernate.engine.SessionImplementor
isTransactionInProgress
public boolean isTransactionInProgress()
- Specified by:
isTransactionInProgress
in interface org.hibernate.engine.SessionImplementor
initializeCollection
public void initializeCollection(org.hibernate.collection.PersistentCollection collection,
boolean writing)
throws org.hibernate.HibernateException
- Specified by:
initializeCollection
in interface org.hibernate.engine.SessionImplementor
- Throws:
org.hibernate.HibernateException
internalLoad
public Object internalLoad(String entityName,
Serializable id,
boolean eager,
boolean nullable)
throws org.hibernate.HibernateException
- Specified by:
internalLoad
in interface org.hibernate.engine.SessionImplementor
- Throws:
org.hibernate.HibernateException
getTimestamp
public long getTimestamp()
- Specified by:
getTimestamp
in interface org.hibernate.engine.SessionImplementor
getFactory
public org.hibernate.engine.SessionFactoryImplementor getFactory()
- Specified by:
getFactory
in interface org.hibernate.engine.SessionImplementor
getBatcher
public org.hibernate.jdbc.Batcher getBatcher()
- Specified by:
getBatcher
in interface org.hibernate.engine.SessionImplementor
list
public List list(String query,
org.hibernate.engine.QueryParameters queryParameters)
throws org.hibernate.HibernateException
- Specified by:
list
in interface org.hibernate.engine.SessionImplementor
- Throws:
org.hibernate.HibernateException
iterate
public Iterator iterate(String query,
org.hibernate.engine.QueryParameters queryParameters)
throws org.hibernate.HibernateException
- Specified by:
iterate
in interface org.hibernate.engine.SessionImplementor
- Throws:
org.hibernate.HibernateException
scroll
public org.hibernate.ScrollableResults scroll(String query,
org.hibernate.engine.QueryParameters queryParameters)
throws org.hibernate.HibernateException
- Specified by:
scroll
in interface org.hibernate.engine.SessionImplementor
- Throws:
org.hibernate.HibernateException
scroll
public org.hibernate.ScrollableResults scroll(org.hibernate.impl.CriteriaImpl criteria,
org.hibernate.ScrollMode scrollMode)
- Specified by:
scroll
in interface org.hibernate.engine.SessionImplementor
list
public List list(org.hibernate.impl.CriteriaImpl criteria)
- Specified by:
list
in interface org.hibernate.engine.SessionImplementor
listFilter
public List listFilter(Object collection,
String filter,
org.hibernate.engine.QueryParameters queryParameters)
throws org.hibernate.HibernateException
- Specified by:
listFilter
in interface org.hibernate.engine.SessionImplementor
- Throws:
org.hibernate.HibernateException
iterateFilter
public Iterator iterateFilter(Object collection,
String filter,
org.hibernate.engine.QueryParameters queryParameters)
throws org.hibernate.HibernateException
- Specified by:
iterateFilter
in interface org.hibernate.engine.SessionImplementor
- Throws:
org.hibernate.HibernateException
getEntityPersister
public org.hibernate.persister.entity.EntityPersister getEntityPersister(String entityName,
Object object)
throws org.hibernate.HibernateException
- Specified by:
getEntityPersister
in interface org.hibernate.engine.SessionImplementor
- Throws:
org.hibernate.HibernateException
getEntityUsingInterceptor
public Object getEntityUsingInterceptor(org.hibernate.engine.EntityKey key)
throws org.hibernate.HibernateException
- Specified by:
getEntityUsingInterceptor
in interface org.hibernate.engine.SessionImplementor
- Throws:
org.hibernate.HibernateException
afterTransactionCompletion
public void afterTransactionCompletion(boolean successful,
org.hibernate.Transaction tx)
- Specified by:
afterTransactionCompletion
in interface org.hibernate.engine.SessionImplementor
beforeTransactionCompletion
public void beforeTransactionCompletion(org.hibernate.Transaction tx)
- Specified by:
beforeTransactionCompletion
in interface org.hibernate.engine.SessionImplementor
getContextEntityIdentifier
public Serializable getContextEntityIdentifier(Object object)
- Specified by:
getContextEntityIdentifier
in interface org.hibernate.engine.SessionImplementor
bestGuessEntityName
public String bestGuessEntityName(Object object)
- Specified by:
bestGuessEntityName
in interface org.hibernate.engine.SessionImplementor
guessEntityName
public String guessEntityName(Object entity)
throws org.hibernate.HibernateException
- Specified by:
guessEntityName
in interface org.hibernate.engine.SessionImplementor
- Throws:
org.hibernate.HibernateException
instantiate
public Object instantiate(String entityName,
Serializable id)
throws org.hibernate.HibernateException
- Specified by:
instantiate
in interface org.hibernate.engine.SessionImplementor
- Throws:
org.hibernate.HibernateException
listCustomQuery
public List listCustomQuery(org.hibernate.loader.custom.CustomQuery customQuery,
org.hibernate.engine.QueryParameters queryParameters)
throws org.hibernate.HibernateException
- Specified by:
listCustomQuery
in interface org.hibernate.engine.SessionImplementor
- Throws:
org.hibernate.HibernateException
scrollCustomQuery
public org.hibernate.ScrollableResults scrollCustomQuery(org.hibernate.loader.custom.CustomQuery customQuery,
org.hibernate.engine.QueryParameters queryParameters)
throws org.hibernate.HibernateException
- Specified by:
scrollCustomQuery
in interface org.hibernate.engine.SessionImplementor
- Throws:
org.hibernate.HibernateException
list
public List list(org.hibernate.engine.query.sql.NativeSQLQuerySpecification spec,
org.hibernate.engine.QueryParameters queryParameters)
throws org.hibernate.HibernateException
- Specified by:
list
in interface org.hibernate.engine.SessionImplementor
- Throws:
org.hibernate.HibernateException
scroll
public org.hibernate.ScrollableResults scroll(org.hibernate.engine.query.sql.NativeSQLQuerySpecification spec,
org.hibernate.engine.QueryParameters queryParameters)
throws org.hibernate.HibernateException
- Specified by:
scroll
in interface org.hibernate.engine.SessionImplementor
- Throws:
org.hibernate.HibernateException
getFilterParameterValue
public Object getFilterParameterValue(String filterParameterName)
- Specified by:
getFilterParameterValue
in interface org.hibernate.engine.SessionImplementor
getFilterParameterType
public org.hibernate.type.Type getFilterParameterType(String filterParameterName)
- Specified by:
getFilterParameterType
in interface org.hibernate.engine.SessionImplementor
getEnabledFilters
public Map getEnabledFilters()
- Specified by:
getEnabledFilters
in interface org.hibernate.engine.SessionImplementor
getDontFlushFromFind
public int getDontFlushFromFind()
- Specified by:
getDontFlushFromFind
in interface org.hibernate.engine.SessionImplementor
getListeners
public org.hibernate.event.EventListeners getListeners()
- Specified by:
getListeners
in interface org.hibernate.engine.SessionImplementor
getPersistenceContext
public org.hibernate.engine.PersistenceContext getPersistenceContext()
- Specified by:
getPersistenceContext
in interface org.hibernate.engine.SessionImplementor
executeUpdate
public int executeUpdate(String query,
org.hibernate.engine.QueryParameters queryParameters)
throws org.hibernate.HibernateException
- Specified by:
executeUpdate
in interface org.hibernate.engine.SessionImplementor
- Throws:
org.hibernate.HibernateException
executeNativeUpdate
public int executeNativeUpdate(org.hibernate.engine.query.sql.NativeSQLQuerySpecification specification,
org.hibernate.engine.QueryParameters queryParameters)
throws org.hibernate.HibernateException
- Specified by:
executeNativeUpdate
in interface org.hibernate.engine.SessionImplementor
- Throws:
org.hibernate.HibernateException
getEntityMode
public org.hibernate.EntityMode getEntityMode()
- Specified by:
getEntityMode
in interface org.hibernate.engine.SessionImplementor
getCacheMode
public org.hibernate.CacheMode getCacheMode()
- Specified by:
getCacheMode
in interface org.hibernate.engine.SessionImplementor
setCacheMode
public void setCacheMode(org.hibernate.CacheMode cm)
- Specified by:
setCacheMode
in interface org.hibernate.engine.SessionImplementor
isOpen
public boolean isOpen()
- Specified by:
isOpen
in interface org.hibernate.engine.SessionImplementor
isConnected
public boolean isConnected()
- Specified by:
isConnected
in interface org.hibernate.engine.SessionImplementor
getFlushMode
public org.hibernate.FlushMode getFlushMode()
- Specified by:
getFlushMode
in interface org.hibernate.engine.SessionImplementor
setFlushMode
public void setFlushMode(org.hibernate.FlushMode fm)
- Specified by:
setFlushMode
in interface org.hibernate.engine.SessionImplementor
connection
public Connection connection()
- Specified by:
connection
in interface org.hibernate.engine.SessionImplementor
flush
public void flush()
- Specified by:
flush
in interface org.hibernate.engine.SessionImplementor
getNamedQuery
public org.hibernate.Query getNamedQuery(String name)
- Specified by:
getNamedQuery
in interface org.hibernate.engine.SessionImplementor
getNamedSQLQuery
public org.hibernate.Query getNamedSQLQuery(String name)
- Specified by:
getNamedSQLQuery
in interface org.hibernate.engine.SessionImplementor
isEventSource
public boolean isEventSource()
- Specified by:
isEventSource
in interface org.hibernate.engine.SessionImplementor
afterScrollOperation
public void afterScrollOperation()
- Specified by:
afterScrollOperation
in interface org.hibernate.engine.SessionImplementor
setFetchProfile
public void setFetchProfile(String name)
- Specified by:
setFetchProfile
in interface org.hibernate.engine.SessionImplementor
getFetchProfile
public String getFetchProfile()
- Specified by:
getFetchProfile
in interface org.hibernate.engine.SessionImplementor
getJDBCContext
public org.hibernate.jdbc.JDBCContext getJDBCContext()
- Specified by:
getJDBCContext
in interface org.hibernate.engine.SessionImplementor
isClosed
public boolean isClosed()
- Specified by:
isClosed
in interface org.hibernate.engine.SessionImplementor
Copyright © 2008 Hibernate.org. All Rights Reserved.