Interface EventSource
- All Superinterfaces:
AutoCloseable, EntityHandler, EntityManager, JdbcSessionOwner, LobCreationContext, Serializable, Session, SessionImplementor, SharedSessionContract, SharedSessionContractImplementor, TransactionCoordinatorBuilder.Options, WrapperOptions
-
Nested Class Summary
Nested classes/interfaces inherited from interface EntityManager
EntityManager.CreationOption, EntityManager.OptionNested classes/interfaces inherited from interface LobCreationContext
LobCreationContext.Callback<T> -
Method Summary
Modifier and TypeMethodDescriptionbestGuessEntityName(Object object, EntityEntry entry) Obtain the best estimate of the entity name of the given entity instance, which is not involved in an association, by also considering information held in the proxy, and whether the object is already associated with this session.voiddelete(String entityName, Object child, boolean isCascadeDeleteEnabled, DeleteContext transientEntities) Cascade delete an entity instancevoidForce an immediate flushvoidForce an immediate flushGet the ActionQueue for this sessiondefault TransactionCompletionCallbacksAccess to register callbacks for transaction completion processing.Access to registered callbacks for transaction completion processing.instantiate(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 EntityHandler
callWithConnection, find, get, get, get, getEntityManagerFactory, getMetamodel, getMultiple, getMultiple, getProperties, runWithConnection, unwrapMethods inherited from interface EntityManager
addOption, contains, find, find, getDelegate, getLockMode, getOptions, isJoinedToTransaction, joinTransaction, lock, lock, lock, refresh, refreshMethods inherited from interface JdbcSessionOwner
afterObtainConnection, afterTransactionBegin, afterTransactionCompletion, beforeReleaseConnection, beforeTransactionCompletion, flushBeforeTransactionCompletion, getEventMonitor, getJdbcBatchSize, getJdbcConnectionAccess, getJdbcSessionContext, getSqlExceptionHelper, getTransactionCoordinator, startTransactionBoundaryMethods inherited from interface LobCreationContext
execute, fromContextMethods inherited from interface Session
addEventListeners, byId, byId, byMultipleIds, byMultipleIds, byMultipleNaturalId, byMultipleNaturalId, byNaturalId, byNaturalId, bySimpleNaturalId, bySimpleNaturalId, cancelQuery, clear, contains, createEntityGraph, createEntityGraph, createEntityGraph, createNamedQuery, createNamedQuery, createQuery, createQuery, createQuery, detach, disableFetchProfile, enableFetchProfile, evict, find, find, findMultiple, findMultiple, flush, get, get, get, get, getCacheMode, getCacheRetrieveMode, getCacheStoreMode, getCurrentLockMode, getEntityGraph, getEntityGraph, getEntityGraphs, getEntityName, getFetchBatchSize, getFlushMode, getHibernateFlushMode, getIdentifier, getLobHelper, getManagedEntities, getManagedEntities, getManagedEntities, getManagedEntities, getNamedNativeQuery, getReference, getReference, getReference, getReference, getStatistics, isDefaultReadOnly, isDirty, isFetchProfileEnabled, isReadOnly, isSubselectFetchingEnabled, load, lock, lock, lock, merge, merge, merge, persist, persist, refresh, refresh, refresh, remove, setCacheMode, setCacheRetrieveMode, setCacheStoreMode, setDefaultReadOnly, setFetchBatchSize, setFlushMode, setHibernateFlushMode, setProperty, setReadOnly, setSubselectFetchingEnabledMethods inherited from interface SessionImplementor
createQuery, createQuery, getSession, getSessionFactory, isAutoCloseSessionEnabledMethods inherited from interface SharedSessionContract
beginTransaction, close, createMutationQuery, createNamedMutationQuery, createNamedSelectionQuery, createNamedStatement, createNamedStoredProcedureQuery, createNativeMutationQuery, createNativeStatement, createSelectionQuery, createSelectionQuery, createSelectionQuery, createSelectionQuery, createStatement, createStatement, createStoredProcedureCall, createStoredProcedureCall, createStoredProcedureCall, createStoredProcedureQuery, createStoredProcedureQuery, createStoredProcedureQuery, disableFilter, doReturningWork, doWork, enableFilter, find, find, fromTransaction, get, get, getCriteriaBuilder, getEnabledFilter, getJdbcBatchSize, getNamedProcedureCall, getTenantIdentifier, getTenantIdentifierValue, getTransaction, inTransaction, isConnected, isJoinedToTransaction, isOpen, joinTransaction, sessionWithOptions, setJdbcBatchSize, statelessWithOptionsMethods inherited from interface SharedSessionContractImplementor
accessTransaction, afterOperation, afterScrollOperation, asEventSource, autoFlushIfRequired, autoFlushIfRequired, autoPreFlushIfRequired, bestGuessEntityName, callEntityLifecycleCallback, callInterceptorCallback, checkOpen, checkOpen, checkTransactionNeededForUpdateOperation, createEntityGraph, createEntityGraph, createMutationQuery, createMutationQuery, createNamedQuery, createNamedQuery, createNamedQuery, createNativeQuery, createNativeQuery, createNativeQuery, createNativeQuery, createNativeQuery, createNativeQuery, createNativeQuery, createQuery, createQuery, createQuery, createQuery, createStatement, flush, generateCollectionKey, generateEntityKey, getAuditWorkQueue, getCacheTransactionSynchronization, getConfiguredJdbcBatchSize, getContextEntityIdentifier, getCurrentChangesetContext, getCurrentChangesetIdentifier, getCurrentTransaction, getDefaultLockOptions, getDefaultLockTimeout, getDefaultTimeout, getDialect, getEntityGraph, getEntityPersister, getEntityUsingInterceptor, getEventListenerManager, getExceptionConverter, getExtension, getFactory, getHibernateFlushMode, getInterceptor, getJdbcCoordinator, getJdbcServices, getLoadQueryInfluencers, getNativeJdbcParametersIgnored, getPersistenceContext, getPersistenceContextInternal, getSessionAssociationMarkers, getSessionIdentifier, getSessionToken, getTypeConfiguration, guessEntityName, immediateLoad, initializeCollection, internalLoad, isClosed, isCriteriaCopyTreeEnabled, isCriteriaPlanCacheEnabled, isDefaultReadOnly, isEventSource, isIdentifierRollbackEnabled, isManaged, isOpenOrWaitingForAutoClose, isStateless, isTransactionInProgress, loadFromSecondLevelCache, lock, markForRollbackOnly, prepareForQueryExecution, runEntityLifecycleCallback, runInterceptorCallback, setCriteriaCopyTreeEnabled, setCriteriaPlanCacheEnabled, setNativeJdbcParametersIgnoredMethods inherited from interface TransactionCoordinatorBuilder.Options
shouldAutoJoinTransactionMethods inherited from interface WrapperOptions
getJdbcTimeZone, getJsonFormatMapper, getLobCreator, getPreferredSqlTypeCodeForBoolean, getXmlFormatMapper, useLanguageTagForLocale, useStreamForLobBinding
-
Method Details
-
getActionQueue
ActionQueue getActionQueue()Get the ActionQueue for this session- Specified by:
getActionQueuein interfaceSessionImplementor
-
instantiate
Object instantiate(@Nonnull EntityPersister persister, @Nonnull 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
-
bestGuessEntityName
Obtain the best estimate of the entity name of the given entity instance, which is not involved in an association, by also considering information held in the proxy, and whether the object is already associated with this session. -
forceFlush
Force an immediate flush- Specified by:
forceFlushin interfaceSessionImplementor- Throws:
HibernateException
-
forceFlush
Force an immediate flush- Specified by:
forceFlushin interfaceSessionImplementor- Throws:
HibernateException
-
merge
Cascade merge an entity instance- Throws:
HibernateException
-
persist
void persist(String entityName, Object object, PersistContext createdAlready) throws HibernateException Cascade persist an entity instance- Throws:
HibernateException
-
persistOnFlush
Cascade persist an entity instance during the flush process -
refresh
void refresh(String entityName, Object object, RefreshContext refreshedAlready) throws HibernateException Cascade refresh an entity instance- Throws:
HibernateException
-
delete
void delete(String entityName, Object child, boolean isCascadeDeleteEnabled, DeleteContext transientEntities) Cascade delete an entity instance -
removeOrphanBeforeUpdates
-
getTransactionCompletionCallbacks
Description copied from interface:SharedSessionContractImplementorAccess to register callbacks for transaction completion processing.- Specified by:
getTransactionCompletionCallbacksin interfaceSharedSessionContractImplementor
-
getTransactionCompletionCallbacksImplementor
@Nonnull default TransactionCompletionCallbacksImplementor getTransactionCompletionCallbacksImplementor()Description copied from interface:SharedSessionContractImplementorAccess to registered callbacks for transaction completion processing.- Specified by:
getTransactionCompletionCallbacksImplementorin interfaceSharedSessionContractImplementor
-