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 voiddelete(String entityName, Object child, boolean isCascadeDeleteEnabled, DeleteContext transientEntities)Cascade delete an entity instancevoidforceFlush(EntityEntry e)Force an immediate flushvoidforceFlush(EntityKey e)Force an immediate flushActionQueuegetActionQueue()Get the ActionQueue for this sessionObjectinstantiate(EntityPersister persister, Object id)Instantiate an entity instance, using either an interceptor, or the given persistervoidmerge(String entityName, Object object, MergeContext copiedAlready)Cascade merge an entity instancevoidpersist(String entityName, Object object, PersistContext createdAlready)Cascade persist an entity instancevoidpersistOnFlush(String entityName, Object object, PersistContext copiedAlready)Cascade persist an entity instance during the flush processvoidrefresh(String entityName, Object object, RefreshContext refreshedAlready)Cascade refresh an entity instancevoidremoveOrphanBeforeUpdates(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, getJdbcBatchSize, getJdbcConnectionAccess, getJdbcSessionContext, getTransactionCoordinator, startTransactionBoundary
-
Methods inherited from interface org.hibernate.engine.jdbc.LobCreationContext
execute, fromContext
-
Methods inherited from interface org.hibernate.query.QueryProducer
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, getFlushMode, getHibernateFlushMode, getIdentifier, getLobHelper, getReference, getReference, getReference, getStatistics, isDefaultReadOnly, isDirty, isFetchProfileEnabled, isReadOnly, 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, setFlushMode, setHibernateFlushMode, setReadOnly, 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, createNamedStoredProcedureQuery, createStoredProcedureCall, createStoredProcedureCall, createStoredProcedureCall, createStoredProcedureQuery, createStoredProcedureQuery, createStoredProcedureQuery, doReturningWork, doWork, getCriteriaBuilder, getJdbcBatchSize, getNamedProcedureCall, getTenantIdentifier, getTransaction, isConnected, isJoinedToTransaction, isOpen, joinTransaction, setJdbcBatchSize
-
Methods inherited from interface org.hibernate.engine.spi.SharedSessionContractImplementor
accessTransaction, afterOperation, afterScrollOperation, asEventSource, asStatelessSession, autoFlushIfRequired, bestGuessEntityName, bestGuessEntityName, checkOpen, checkOpen, checkTransactionNeededForUpdateOperation, flush, generateEntityKey, getCacheMode, getCacheTransactionSynchronization, getConfiguredJdbcBatchSize, getContextEntityIdentifier, getEntityPersister, getEntityUsingInterceptor, getEventListenerManager, getExceptionConverter, getFactory, getFlushMode, getHibernateFlushMode, getInterceptor, getJdbcCoordinator, getJdbcServices, getLoadQueryInfluencers, getPersistenceContext, getPersistenceContextInternal, getSessionIdentifier, getSessionToken, getTransactionStartTimestamp, getTypeConfiguration, guessEntityName, immediateLoad, initializeCollection, instantiate, internalLoad, isAutoCloseSessionEnabled, isClosed, isCriteriaCopyTreeEnabled, isDefaultReadOnly, isEnforcingFetchGraph, isEventSource, isOpenOrWaitingForAutoClose, isStatelessSession, isTransactionInProgress, markForRollbackOnly, prepareForQueryExecution, setAutoClear, setCacheMode, setCriteriaCopyTreeEnabled, setEnforcingFetchGraph, setHibernateFlushMode, shouldAutoClose
-
Methods inherited from interface org.hibernate.resource.transaction.spi.TransactionCoordinatorBuilder.Options
shouldAutoJoinTransaction
-
Methods inherited from interface org.hibernate.type.descriptor.WrapperOptions
getJdbcTimeZone, getLobCreator, getPreferredSqlTypeCodeForBoolean, useStreamForLobBinding
-
-
-
-
Method Detail
-
getActionQueue
ActionQueue getActionQueue()
Get the ActionQueue for this session- Specified by:
getActionQueuein interfaceSessionImplementor
-
instantiate
Object instantiate(EntityPersister persister, Object id) throws HibernateException
Instantiate an entity instance, using either an interceptor, or the given persister- Specified by:
instantiatein interfaceSessionImplementor- Specified by:
instantiatein interfaceSharedSessionContractImplementor- Throws:
HibernateException
-
forceFlush
void forceFlush(EntityEntry e) throws HibernateException
Force an immediate flush- Specified by:
forceFlushin interfaceSessionImplementor- Throws:
HibernateException
-
forceFlush
void forceFlush(EntityKey e) throws HibernateException
Force an immediate flush- Specified by:
forceFlushin interfaceSessionImplementor- Throws:
HibernateException
-
merge
void merge(String entityName, Object object, MergeContext copiedAlready) throws HibernateException
Cascade merge an entity instance- Specified by:
mergein interfaceSessionImplementor- Throws:
HibernateException
-
persist
void persist(String entityName, Object object, PersistContext createdAlready) throws HibernateException
Cascade persist an entity instance- Specified by:
persistin interfaceSessionImplementor- Throws:
HibernateException
-
persistOnFlush
void persistOnFlush(String entityName, Object object, PersistContext copiedAlready)
Cascade persist an entity instance during the flush process- Specified by:
persistOnFlushin interfaceSessionImplementor
-
refresh
void refresh(String entityName, Object object, RefreshContext refreshedAlready) throws HibernateException
Cascade refresh an entity instance- Specified by:
refreshin interfaceSessionImplementor- Throws:
HibernateException
-
delete
void delete(String entityName, Object child, boolean isCascadeDeleteEnabled, DeleteContext transientEntities)
Cascade delete an entity instance- Specified by:
deletein 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:
removeOrphanBeforeUpdatesin interfaceSessionImplementor
-
-