org.hibernate.event
Interface EventSource

All Superinterfaces:
Serializable, Session, SessionImplementor
All Known Implementing Classes:
SessionImpl

public interface EventSource
extends SessionImplementor, Session

Author:
Gavin King

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.hibernate.Session
Session.LockRequest
 
Method Summary
 void delete(String entityName, Object child, boolean isCascadeDeleteEnabled, Set transientEntities)
          Cascade delete an entity instance
 void forceFlush(EntityEntry e)
          Force an immediate flush
 ActionQueue getActionQueue()
          Get the ActionQueue for this session
 Object instantiate(EntityPersister persister, Serializable id)
          Instantiate an entity instance, using either an interceptor, or the given persister
 void merge(String entityName, Object object, Map copiedAlready)
          Cascade merge an entity instance
 void persist(String entityName, Object object, Map createdAlready)
          Cascade persist an entity instance
 void persistOnFlush(String entityName, Object object, Map copiedAlready)
          Cascade persist an entity instance during the flush process
 void refresh(Object object, Map refreshedAlready)
          Cascade refesh an entity instance
 void saveOrUpdateCopy(String entityName, Object object, Map copiedAlready)
          Cascade copy an entity instance
 
Methods inherited from interface org.hibernate.engine.SessionImplementor
afterScrollOperation, afterTransactionCompletion, applyNonFlushedChanges, beforeTransactionCompletion, bestGuessEntityName, connection, executeNativeUpdate, executeUpdate, flush, getBatcher, getCacheMode, getContextEntityIdentifier, getDontFlushFromFind, getEnabledFilters, getEntityMode, getEntityPersister, getEntityUsingInterceptor, getFactory, getFetchProfile, getFilterParameterType, getFilterParameterValue, getFlushMode, getInterceptor, getJDBCContext, getListeners, getLoadQueryInfluencers, getNamedQuery, getNamedSQLQuery, getNonFlushedChanges, getPersistenceContext, getTimestamp, guessEntityName, immediateLoad, initializeCollection, instantiate, internalLoad, isClosed, isConnected, isEventSource, isOpen, isTransactionInProgress, iterate, iterateFilter, list, list, list, listCustomQuery, listFilter, scroll, scroll, scroll, scrollCustomQuery, setAutoClear, setCacheMode, setFetchProfile, setFlushMode
 
Methods inherited from interface org.hibernate.Session
beginTransaction, buildLockRequest, cancelQuery, clear, close, connection, contains, createCriteria, createCriteria, createCriteria, createCriteria, createFilter, createQuery, createSQLQuery, delete, delete, disableFetchProfile, disableFilter, disconnect, doWork, enableFetchProfile, enableFilter, evict, flush, get, get, get, get, get, get, getCacheMode, getCurrentLockMode, getEnabledFilter, getEntityMode, getEntityName, getFlushMode, getIdentifier, getLobHelper, getNamedQuery, getSession, getSessionFactory, getStatistics, getTransaction, getTypeHelper, isConnected, isDefaultReadOnly, isDirty, isFetchProfileEnabled, isOpen, isReadOnly, load, load, load, load, load, load, load, lock, lock, merge, merge, persist, persist, reconnect, reconnect, refresh, refresh, refresh, replicate, replicate, save, save, saveOrUpdate, saveOrUpdate, setCacheMode, setDefaultReadOnly, setFlushMode, setReadOnly, update, update
 

Method Detail

getActionQueue

ActionQueue getActionQueue()
Get the ActionQueue for this session


instantiate

Object instantiate(EntityPersister persister,
                   Serializable id)
                   throws HibernateException
Instantiate an entity instance, using either an interceptor, or the given persister

Throws:
HibernateException

forceFlush

void forceFlush(EntityEntry e)
                throws HibernateException
Force an immediate flush

Throws:
HibernateException

merge

void merge(String entityName,
           Object object,
           Map copiedAlready)
           throws HibernateException
Cascade merge an entity instance

Throws:
HibernateException

persist

void persist(String entityName,
             Object object,
             Map createdAlready)
             throws HibernateException
Cascade persist an entity instance

Throws:
HibernateException

persistOnFlush

void persistOnFlush(String entityName,
                    Object object,
                    Map copiedAlready)
Cascade persist an entity instance during the flush process


refresh

void refresh(Object object,
             Map refreshedAlready)
             throws HibernateException
Cascade refesh an entity instance

Throws:
HibernateException

saveOrUpdateCopy

void saveOrUpdateCopy(String entityName,
                      Object object,
                      Map copiedAlready)
                      throws HibernateException
Cascade copy an entity instance

Throws:
HibernateException

delete

void delete(String entityName,
            Object child,
            boolean isCascadeDeleteEnabled,
            Set transientEntities)
Cascade delete an entity instance



Copyright © 2001-2010 Red Hat, Inc. All Rights Reserved.