Package org.hibernate.event
Interface EventSource
- All Superinterfaces:
Serializable,Session,SessionImplementor
- All Known Implementing Classes:
SessionImpl
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.hibernate.Session
Session.LockRequest -
Method Summary
Modifier and TypeMethodDescriptionvoidCascade delete an entity instancevoidForce an immediate flushGet the ActionQueue for this sessioninstantiate(EntityPersister persister, Serializable id) Instantiate an entity instance, using either an interceptor, or the given persistervoidCascade merge an entity instancevoidCascade persist an entity instancevoidpersistOnFlush(String entityName, Object object, Map copiedAlready) Cascade persist an entity instance during the flush processvoidCascade refesh an entity instancevoidsaveOrUpdateCopy(String entityName, Object object, Map copiedAlready) Cascade copy an entity instanceMethods 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, updateMethods 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
-
Method Details
-
getActionQueue
ActionQueue getActionQueue()Get the ActionQueue for this session -
instantiate
Instantiate an entity instance, using either an interceptor, or the given persister- Throws:
HibernateException
-
forceFlush
Force an immediate flush- Throws:
HibernateException
-
merge
Cascade merge an entity instance- Throws:
HibernateException
-
persist
Cascade persist an entity instance- Throws:
HibernateException
-
persistOnFlush
Cascade persist an entity instance during the flush process -
refresh
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
Cascade delete an entity instance
-