Package org.hibernate.event.spi
Interface EventSource
-
- All Superinterfaces:
java.lang.AutoCloseable
,java.io.Closeable
,EntityManager
,HibernateEntityManager
,HibernateEntityManager
,HibernateEntityManagerFactoryAware
,HibernateEntityManagerImplementor
,JdbcSessionOwner
,LobCreationContext
,QueryProducer
,QueryProducerImplementor
,java.io.Serializable
,Session
,SessionImplementor
,SharedSessionContract
,SharedSessionContractImplementor
,TransactionCoordinatorBuilder.Options
,WrapperOptions
public interface EventSource extends SessionImplementor
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.hibernate.jpa.spi.HibernateEntityManagerImplementor
HibernateEntityManagerImplementor.QueryOptions
-
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(java.lang.String entityName, java.lang.Object child, boolean isCascadeDeleteEnabled, java.util.Set transientEntities)
Cascade delete an entity instancevoid
forceFlush(EntityEntry e)
Force an immediate flushActionQueue
getActionQueue()
Get the ActionQueue for this sessionjava.lang.Object
instantiate(EntityPersister persister, java.io.Serializable id)
Instantiate an entity instance, using either an interceptor, or the given persistervoid
merge(java.lang.String entityName, java.lang.Object object, java.util.Map copiedAlready)
Cascade merge an entity instancevoid
persist(java.lang.String entityName, java.lang.Object object, java.util.Map createdAlready)
Cascade persist an entity instancevoid
persistOnFlush(java.lang.String entityName, java.lang.Object object, java.util.Map copiedAlready)
Cascade persist an entity instance during the flush processvoid
refresh(java.lang.String entityName, java.lang.Object object, java.util.Map refreshedAlready)
Cascade refresh an entity instancevoid
removeOrphanBeforeUpdates(java.lang.String entityName, java.lang.Object child)
A specialized type of deletion for orphan removal that must occur prior to queued inserts and updates.-
Methods inherited from interface javax.persistence.EntityManager
close, contains, createEntityGraph, createEntityGraph, createNamedStoredProcedureQuery, createStoredProcedureQuery, createStoredProcedureQuery, createStoredProcedureQuery, detach, find, find, find, find, getCriteriaBuilder, getDelegate, getEntityGraph, getEntityGraphs, getEntityManagerFactory, getLockMode, getMetamodel, getProperties, getReference, getTransaction, isJoinedToTransaction, isOpen, joinTransaction, lock, lock, refresh, refresh, refresh, remove, setFlushMode, setProperty, unwrap
-
Methods inherited from interface org.hibernate.jpa.spi.HibernateEntityManagerFactoryAware
getFactory
-
Methods inherited from interface org.hibernate.jpa.spi.HibernateEntityManagerImplementor
buildLockOptions, checkOpen, getLockRequest, getSession, isTransactionInProgress, markForRollbackOnly
-
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
-
Methods inherited from interface org.hibernate.Session
addEventListeners, buildLockRequest, byId, byId, byMultipleIds, byMultipleIds, byNaturalId, byNaturalId, bySimpleNaturalId, bySimpleNaturalId, cancelQuery, clear, contains, createFilter, delete, delete, disableFetchProfile, disableFilter, disconnect, doReturningWork, doWork, enableFetchProfile, enableFilter, evict, flush, get, get, get, get, get, get, getCacheMode, getCurrentLockMode, getEnabledFilter, getEntityName, getFlushMode, getHibernateFlushMode, getIdentifier, getLobHelper, getStatistics, getTypeHelper, isDefaultReadOnly, isDirty, isFetchProfileEnabled, isReadOnly, load, load, load, load, load, load, load, lock, lock, merge, merge, persist, persist, reconnect, refresh, refresh, refresh, refresh, refresh, replicate, replicate, save, save, saveOrUpdate, saveOrUpdate, sessionWithOptions, setCacheMode, setDefaultReadOnly, setFlushMode, setHibernateFlushMode, setReadOnly, update, update
-
Methods inherited from interface org.hibernate.engine.spi.SessionImplementor
createNamedQuery, createNamedQuery, createNativeQuery, createNativeQuery, createNativeQuery, createQuery, createQuery, createQuery, createQuery, createQuery, createQuery, createSQLQuery, getNamedNativeQuery, getNamedQuery, getNamedSQLQuery, getSessionFactory, isFlushBeforeCompletionEnabled
-
Methods inherited from interface org.hibernate.SharedSessionContract
beginTransaction, close, createCriteria, createCriteria, createCriteria, createCriteria, createStoredProcedureCall, createStoredProcedureCall, createStoredProcedureCall, getJdbcBatchSize, getNamedProcedureCall, getTransaction, isConnected, isOpen, setJdbcBatchSize
-
Methods inherited from interface org.hibernate.engine.spi.SharedSessionContractImplementor
accessTransaction, afterScrollOperation, bestGuessEntityName, checkOpen, checkOpen, checkTransactionNeededForUpdateOperation, connection, executeNativeUpdate, executeUpdate, flush, generateEntityKey, getCacheMode, getCacheTransactionSynchronization, getConfiguredJdbcBatchSize, getContextEntityIdentifier, getDontFlushFromFind, getEntityPersister, getEntityUsingInterceptor, getEventListenerManager, getExceptionConverter, getFactory, getFlushMode, getHibernateFlushMode, getInterceptor, getJdbcCoordinator, getJdbcServices, getLoadQueryInfluencers, getPersistenceContext, getSessionIdentifier, getTenantIdentifier, getTimestamp, getTransactionStartTimestamp, guessEntityName, immediateLoad, initializeCollection, instantiate, internalLoad, isAutoCloseSessionEnabled, isClosed, isEventSource, isOpenOrWaitingForAutoClose, isQueryParametersValidationEnabled, isTransactionInProgress, iterate, iterateFilter, list, list, list, listCustomQuery, listFilter, markForRollbackOnly, scroll, scroll, scroll, scrollCustomQuery, setAutoClear, setCacheMode, setFlushMode, 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, remapSqlTypeDescriptor, useStreamForLobBinding
-
-
-
-
Method Detail
-
getActionQueue
ActionQueue getActionQueue()
Get the ActionQueue for this session- Specified by:
getActionQueue
in interfaceSessionImplementor
-
instantiate
java.lang.Object instantiate(EntityPersister persister, java.io.Serializable id) throws HibernateException
Instantiate an entity instance, using either an interceptor, or the given persister- Specified by:
instantiate
in interfaceSessionImplementor
- Throws:
HibernateException
-
forceFlush
void forceFlush(EntityEntry e) throws HibernateException
Force an immediate flush- Specified by:
forceFlush
in interfaceSessionImplementor
- Throws:
HibernateException
-
merge
void merge(java.lang.String entityName, java.lang.Object object, java.util.Map copiedAlready) throws HibernateException
Cascade merge an entity instance- Specified by:
merge
in interfaceSessionImplementor
- Throws:
HibernateException
-
persist
void persist(java.lang.String entityName, java.lang.Object object, java.util.Map createdAlready) throws HibernateException
Cascade persist an entity instance- Specified by:
persist
in interfaceSessionImplementor
- Throws:
HibernateException
-
persistOnFlush
void persistOnFlush(java.lang.String entityName, java.lang.Object object, java.util.Map copiedAlready)
Cascade persist an entity instance during the flush process- Specified by:
persistOnFlush
in interfaceSessionImplementor
-
refresh
void refresh(java.lang.String entityName, java.lang.Object object, java.util.Map refreshedAlready) throws HibernateException
Cascade refresh an entity instance- Specified by:
refresh
in interfaceSessionImplementor
- Throws:
HibernateException
-
delete
void delete(java.lang.String entityName, java.lang.Object child, boolean isCascadeDeleteEnabled, java.util.Set transientEntities)
Cascade delete an entity instance- Specified by:
delete
in interfaceSessionImplementor
-
removeOrphanBeforeUpdates
void removeOrphanBeforeUpdates(java.lang.String entityName, java.lang.Object child)
A specialized type of deletion for orphan removal that must occur prior to queued inserts and updates.- Specified by:
removeOrphanBeforeUpdates
in interfaceSessionImplementor
-
-