Package org.hibernate.event.spi
Interface EventSource
-
- All Superinterfaces:
AutoCloseable
,Closeable
,EntityManager
,JavaType.CoercionContext
,JdbcSessionOwner
,LobCreationContext
,QueryProducer
,QueryProducerImplementor
,Serializable
,Session
,SessionImplementor
,SharedSessionContract
,SharedSessionContractImplementor
,TransactionCoordinatorBuilder.Options
,WrapperOptions
- All Known Implementing Classes:
SessionImpl
public interface EventSource extends SessionImplementor
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.hibernate.engine.jdbc.LobCreationContext
LobCreationContext.Callback<T>
-
Nested classes/interfaces inherited from interface org.hibernate.Session
Session.LockRequest
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
delete(String entityName, Object child, boolean isCascadeDeleteEnabled, DeleteContext transientEntities)
Cascade delete an entity instancevoid
forceFlush(EntityEntry e)
Force an immediate flushvoid
forceFlush(EntityKey e)
Force an immediate flushActionQueue
getActionQueue()
Get the ActionQueue for this sessionObject
instantiate(EntityPersister persister, Object id)
Instantiate an entity instance, using either an interceptor, or the given persistervoid
merge(String entityName, Object object, MergeContext copiedAlready)
Cascade merge an entity instancevoid
persist(String entityName, Object object, PersistContext createdAlready)
Cascade persist an entity instancevoid
persistOnFlush(String entityName, Object object, PersistContext copiedAlready)
Cascade persist an entity instance during the flush processvoid
refresh(String entityName, Object object, RefreshContext refreshedAlready)
Cascade refresh an entity instancevoid
removeOrphanBeforeUpdates(String entityName, Object child)
A specialized type of deletion for orphan removal that must occur prior to queued inserts and updates.-
Methods inherited from interface jakarta.persistence.EntityManager
close, contains, createNamedStoredProcedureQuery, createNativeQuery, createNativeQuery, createNativeQuery, createStoredProcedureQuery, createStoredProcedureQuery, createStoredProcedureQuery, find, find, find, find, getCriteriaBuilder, getDelegate, getEntityManagerFactory, getLockMode, getMetamodel, getProperties, getTransaction, isJoinedToTransaction, isOpen, joinTransaction, lock, lock, refresh, refresh, refresh, setProperty, unwrap
-
Methods inherited from interface org.hibernate.resource.jdbc.spi.JdbcSessionOwner
afterTransactionBegin, afterTransactionCompletion, beforeTransactionCompletion, flushBeforeTransactionCompletion, getEventManager, getJdbcBatchSize, getJdbcConnectionAccess, getJdbcSessionContext, getSqlExceptionHelper, getTransactionCoordinator, startTransactionBoundary
-
Methods inherited from interface org.hibernate.engine.jdbc.LobCreationContext
execute, fromContext
-
Methods inherited from interface org.hibernate.query.QueryProducer
createMutationQuery, createMutationQuery, createNamedSelectionQuery, createNamedSelectionQuery, createSelectionQuery, createSelectionQuery, createSelectionQuery
-
Methods inherited from interface org.hibernate.query.spi.QueryProducerImplementor
createMutationQuery, createMutationQuery, createMutationQuery, createNamedMutationQuery, createNamedQuery, createNamedQuery, createNativeMutationQuery, createNativeQuery, createNativeQuery, createNativeQuery, createNativeQuery, createNativeQuery, createQuery, createQuery, createQuery, createQuery, createQuery, getNamedNativeQuery, getNamedNativeQuery, getNamedQuery
-
Methods inherited from interface org.hibernate.Session
addEventListeners, buildLockRequest, byId, byId, byMultipleIds, byMultipleIds, byMultipleNaturalId, byMultipleNaturalId, byNaturalId, byNaturalId, bySimpleNaturalId, bySimpleNaturalId, cancelQuery, clear, contains, createNamedQuery, createNamedQuery, createQuery, createQuery, createQuery, createQuery, createQuery, delete, delete, detach, disableFetchProfile, disableFilter, enableFetchProfile, enableFilter, evict, flush, get, get, get, get, get, get, getCacheMode, getCacheRetrieveMode, getCacheStoreMode, getCurrentLockMode, getEnabledFilter, getEntityGraphs, getEntityName, getFetchBatchSize, getFlushMode, getHibernateFlushMode, getIdentifier, getLobHelper, getReference, getReference, getReference, getStatistics, isDefaultReadOnly, isDirty, isFetchProfileEnabled, isReadOnly, isSubselectFetchingEnabled, load, load, load, load, load, load, load, lock, lock, lock, merge, merge, persist, persist, refresh, refresh, refresh, refresh, refresh, remove, replicate, replicate, save, save, saveOrUpdate, saveOrUpdate, sessionWithOptions, setCacheMode, setCacheRetrieveMode, setCacheStoreMode, setDefaultReadOnly, setFetchBatchSize, setFlushMode, setHibernateFlushMode, setReadOnly, setSubselectFetchingEnabled, update, update
-
Methods inherited from interface org.hibernate.engine.spi.SessionImplementor
asSessionImplementor, createEntityGraph, createEntityGraph, getEntityGraph, getSession, getSessionFactory, isSessionImplementor, lock
-
Methods inherited from interface org.hibernate.SharedSessionContract
beginTransaction, close, createEntityGraph, createNamedStoredProcedureQuery, createStoredProcedureCall, createStoredProcedureCall, createStoredProcedureCall, createStoredProcedureQuery, createStoredProcedureQuery, createStoredProcedureQuery, doReturningWork, doWork, getCriteriaBuilder, getJdbcBatchSize, getNamedProcedureCall, getTenantIdentifier, getTenantIdentifierValue, getTransaction, isConnected, isJoinedToTransaction, isOpen, joinTransaction, setJdbcBatchSize
-
Methods inherited from interface org.hibernate.engine.spi.SharedSessionContractImplementor
accessTransaction, afterOperation, afterScrollOperation, asEventSource, asStatelessSession, autoFlushIfRequired, autoFlushIfRequired, autoPreFlush, bestGuessEntityName, bestGuessEntityName, checkOpen, checkOpen, checkTransactionNeededForUpdateOperation, flush, generateEntityKey, getCacheMode, getCacheTransactionSynchronization, getConfiguredJdbcBatchSize, getContextEntityIdentifier, getEntityPersister, getEntityUsingInterceptor, getEventListenerManager, getExceptionConverter, getFactory, getFlushMode, getHibernateFlushMode, getInterceptor, getJdbcCoordinator, getJdbcServices, getLoadQueryInfluencers, getNativeJdbcParametersIgnored, getPersistenceContext, getPersistenceContextInternal, getSessionIdentifier, getSessionToken, getTypeConfiguration, guessEntityName, immediateLoad, initializeCollection, instantiate, internalLoad, isAutoCloseSessionEnabled, isClosed, isCriteriaCopyTreeEnabled, isDefaultReadOnly, isEnforcingFetchGraph, isEventSource, isOpenOrWaitingForAutoClose, isStatelessSession, isTransactionInProgress, markForRollbackOnly, prepareForQueryExecution, setAutoClear, setCacheMode, setCriteriaCopyTreeEnabled, setEnforcingFetchGraph, setHibernateFlushMode, setNativeJdbcParametersIgnored, shouldAutoClose
-
Methods inherited from interface org.hibernate.resource.transaction.spi.TransactionCoordinatorBuilder.Options
shouldAutoJoinTransaction
-
Methods inherited from interface org.hibernate.type.descriptor.WrapperOptions
getDialect, getJdbcTimeZone, getLobCreator, getPreferredSqlTypeCodeForBoolean, useStreamForLobBinding
-
-
-
-
Method Detail
-
getActionQueue
ActionQueue getActionQueue()
Get the ActionQueue for this session- Specified by:
getActionQueue
in interfaceSessionImplementor
-
instantiate
Object instantiate(EntityPersister persister, Object id) throws HibernateException
Instantiate an entity instance, using either an interceptor, or the given persister- Specified by:
instantiate
in interfaceSessionImplementor
- Specified by:
instantiate
in interfaceSharedSessionContractImplementor
- Throws:
HibernateException
-
forceFlush
void forceFlush(EntityEntry e) throws HibernateException
Force an immediate flush- Specified by:
forceFlush
in interfaceSessionImplementor
- Throws:
HibernateException
-
forceFlush
void forceFlush(EntityKey e) throws HibernateException
Force an immediate flush- Specified by:
forceFlush
in interfaceSessionImplementor
- Throws:
HibernateException
-
merge
void merge(String entityName, Object object, MergeContext copiedAlready) throws HibernateException
Cascade merge an entity instance- Specified by:
merge
in interfaceSessionImplementor
- Throws:
HibernateException
-
persist
void persist(String entityName, Object object, PersistContext createdAlready) throws HibernateException
Cascade persist an entity instance- Specified by:
persist
in interfaceSessionImplementor
- Throws:
HibernateException
-
persistOnFlush
void persistOnFlush(String entityName, Object object, PersistContext copiedAlready)
Cascade persist an entity instance during the flush process- Specified by:
persistOnFlush
in interfaceSessionImplementor
-
refresh
void refresh(String entityName, Object object, RefreshContext refreshedAlready) throws HibernateException
Cascade refresh an entity instance- Specified by:
refresh
in interfaceSessionImplementor
- Throws:
HibernateException
-
delete
void delete(String entityName, Object child, boolean isCascadeDeleteEnabled, DeleteContext transientEntities)
Cascade delete an entity instance- Specified by:
delete
in interfaceSessionImplementor
-
removeOrphanBeforeUpdates
void removeOrphanBeforeUpdates(String entityName, Object child)
A specialized type of deletion for orphan removal that must occur prior to queued inserts and updates.- Specified by:
removeOrphanBeforeUpdates
in interfaceSessionImplementor
-
-