Modifier and Type | Method and Description |
---|---|
Session |
SessionFactory.getCurrentSession()
Obtains the current session.
|
Session |
SessionFactory.openSession()
Open a
Session . |
Session |
SessionBuilder.openSession()
Opens a session with the specified options.
|
Modifier and Type | Method and Description |
---|---|
boolean |
CustomEntityDirtinessStrategy.canDirtyCheck(Object entity,
EntityPersister persister,
Session session)
Is this strategy capable of telling whether the given entity is dirty? A return of
true means that
CustomEntityDirtinessStrategy.isDirty(java.lang.Object, org.hibernate.persister.entity.EntityPersister, org.hibernate.Session) will be called next as the definitive means to determine whether the entity is dirty. |
void |
CustomEntityDirtinessStrategy.findDirty(Object entity,
EntityPersister persister,
Session session,
CustomEntityDirtinessStrategy.DirtyCheckContext dirtyCheckContext)
Callback used to hook into Hibernate algorithm for determination of which attributes have changed.
|
static LobCreator |
Hibernate.getLobCreator(Session session)
Obtain a lob creator for the given session.
|
boolean |
CustomEntityDirtinessStrategy.isDirty(Object entity,
EntityPersister persister,
Session session)
The callback used by Hibernate to determine if the given entity is dirty.
|
void |
CustomEntityDirtinessStrategy.resetDirty(Object entity,
EntityPersister persister,
Session session)
Callback used by Hibernate to signal that the entity dirty flag should be cleared.
|
Modifier and Type | Method and Description |
---|---|
boolean |
DefaultCustomEntityDirtinessStrategy.canDirtyCheck(Object entity,
EntityPersister persister,
Session session) |
void |
DefaultCustomEntityDirtinessStrategy.findDirty(Object entity,
EntityPersister persister,
Session session,
CustomEntityDirtinessStrategy.DirtyCheckContext dirtyCheckContext) |
boolean |
DefaultCustomEntityDirtinessStrategy.isDirty(Object entity,
EntityPersister persister,
Session session) |
void |
DefaultCustomEntityDirtinessStrategy.resetDirty(Object entity,
EntityPersister persister,
Session session) |
Modifier and Type | Method and Description |
---|---|
boolean |
Lifecycle.onDelete(Session s)
Called when an entity is deleted.
|
void |
Lifecycle.onLoad(Session s,
Serializable id)
Called after an entity is loaded.
|
boolean |
Lifecycle.onSave(Session s)
Called when an entity is saved.
|
boolean |
Lifecycle.onUpdate(Session s)
Called when an entity is passed to Session.update().
|
Modifier and Type | Method and Description |
---|---|
static Session |
ManagedSessionContext.bind(Session session)
Binds the given session to the current context for its session factory.
|
protected Session |
ThreadLocalSessionContext.buildOrObtainSession()
Strictly provided for sub-classing purposes; specifically to allow long-session
support.
|
protected Session |
JTASessionContext.buildOrObtainSession()
Strictly provided for subclassing purposes; specifically to allow long-session
support.
|
Session |
ThreadLocalSessionContext.currentSession() |
Session |
ManagedSessionContext.currentSession() |
Session |
JTASessionContext.currentSession() |
static Session |
ThreadLocalSessionContext.unbind(SessionFactory factory)
Disassociates a previously bound session from the current thread of execution.
|
static Session |
ManagedSessionContext.unbind(SessionFactory factory)
Unbinds the session (if one) current associated with the context for the
given session.
|
protected Session |
ThreadLocalSessionContext.wrap(Session session) |
Modifier and Type | Method and Description |
---|---|
protected static Map<SessionFactory,Session> |
ThreadLocalSessionContext.sessionMap() |
protected static Map<SessionFactory,Session> |
ManagedSessionContext.sessionMap() |
Modifier and Type | Method and Description |
---|---|
static void |
ThreadLocalSessionContext.bind(Session session)
Associates the given session with the current thread of execution.
|
static Session |
ManagedSessionContext.bind(Session session)
Binds the given session to the current context for its session factory.
|
protected Session |
ThreadLocalSessionContext.wrap(Session session) |
Modifier and Type | Method and Description |
---|---|
Session |
CurrentSessionContext.currentSession()
Retrieve the current session according to the scoping defined
by this implementation.
|
Modifier and Type | Method and Description |
---|---|
protected void |
AbstractCurrentSessionContext.validateExistingSession(Session existingSession) |
Modifier and Type | Method and Description |
---|---|
Criteria |
DetachedCriteria.getExecutableCriteria(Session session)
Get an executable instance of Criteria to actually run the query.
|
Modifier and Type | Interface and Description |
---|---|
interface |
SessionImplementor
Defines the "internal contract" for
Session and other parts of Hibernate such as
Type , EntityPersister
and CollectionPersister implementations. |
Modifier and Type | Class and Description |
---|---|
class |
SessionDelegatorBaseImpl
This class is meant to be extended.
|
Modifier and Type | Method and Description |
---|---|
Session |
SessionFactoryDelegatingImpl.getCurrentSession() |
Session |
SessionFactoryDelegatingImpl.openSession() |
Session |
AbstractDelegatingSharedSessionBuilder.openSession() |
Session |
AbstractDelegatingSessionBuilder.openSession() |
Session |
SessionFactoryImplementor.openTemporarySession()
Get a non-transactional "current" session (used by hibernate-envers)
|
Session |
SessionFactoryDelegatingImpl.openTemporarySession() |
Constructor and Description |
---|
SessionDelegatorBaseImpl(SessionImplementor delegate,
Session session)
Deprecated.
(since 5.3) SessionDelegatorBaseImpl should take just one argument, the SessionImplementor.
Use the
SessionDelegatorBaseImpl.SessionDelegatorBaseImpl(SessionImplementor) form instead |
Modifier and Type | Method and Description |
---|---|
static AuditReader |
AuditReaderFactory.get(Session session)
Create an audit reader associated with an open session.
|
Modifier and Type | Method and Description |
---|---|
void |
VirtualEntitySingleIdMapper.mapToMapFromId(Session session,
Map<String,Object> data,
Object obj) |
void |
MultipleIdMapper.mapToMapFromId(Session session,
Map<String,Object> data,
Object obj) |
default void |
IdMapper.mapToMapFromId(Session session,
Map<String,Object> data,
Object obj) |
Modifier and Type | Class and Description |
---|---|
class |
AbstractDelegateSessionImplementor |
class |
ToOneDelegateSessionImplementor |
Modifier and Type | Method and Description |
---|---|
Session |
AuditReaderImplementor.getSession() |
Session |
AuditReaderImpl.getSession() |
Constructor and Description |
---|
AuditReaderImpl(EnversService enversService,
Session session,
SessionImplementor sessionImplementor) |
Modifier and Type | Method and Description |
---|---|
Query<?> |
RevisionInfoQueryCreator.getRevisionDateQuery(Session session,
Number revision) |
Query<?> |
RevisionInfoQueryCreator.getRevisionNumberForDateQuery(Session session,
Date date) |
Query<?> |
RevisionInfoQueryCreator.getRevisionsQuery(Session session,
Set<Number> revisions) |
void |
RevisionInfoGenerator.saveRevisionData(Session session,
Object revisionData) |
void |
DefaultRevisionInfoGenerator.saveRevisionData(Session session,
Object revisionData) |
Modifier and Type | Method and Description |
---|---|
void |
EntityChangeNotifier.entityChanged(Session session,
Object currentRevisionData,
AuditWorkUnit vwu)
Notifies
RevisionInfoGenerator about changes made in the current revision. |
Object |
AuditProcess.getCurrentRevisionData(Session session,
boolean persist) |
void |
SessionCacheCleaner.scheduleAuditDataRemoval(Session session,
Object data)
Schedules audit data removal from session level cache after transaction completion.
|
Modifier and Type | Method and Description |
---|---|
void |
PersistentCollectionChangeWorkUnit.perform(Session session,
Object revisionData) |
void |
AuditWorkUnit.perform(Session session,
Object revisionData)
Perform this work unit in the given session.
|
void |
AbstractAuditWorkUnit.perform(Session session,
Object revisionData) |
void |
AuditWorkUnit.undo(Session session) |
void |
AbstractAuditWorkUnit.undo(Session session) |
Modifier and Type | Method and Description |
---|---|
Query |
UpdateBuilder.toQuery(Session session) |
Query |
QueryBuilder.toQuery(Session session) |
Modifier and Type | Method and Description |
---|---|
void |
ValidityAuditStrategy.perform(Session session,
String entityName,
AuditEntitiesConfiguration audEntitiesCfg,
Serializable id,
Object data,
Object revision) |
void |
DefaultAuditStrategy.perform(Session session,
String entityName,
AuditEntitiesConfiguration auditEntitiesConfiguration,
Serializable id,
Object data,
Object revision) |
void |
AuditStrategy.perform(Session session,
String entityName,
AuditEntitiesConfiguration auditEntitiesConfiguration,
Serializable id,
Object data,
Object revision)
Perform the persistence of audited data for regular entities.
|
default void |
AuditStrategy.perform(Session session,
String entityName,
EnversService enversService,
Serializable id,
Object data,
Object revision)
Deprecated.
|
void |
ValidityAuditStrategy.performCollectionChange(Session session,
String entityName,
String propertyName,
AuditEntitiesConfiguration auditEntitiesConfiguration,
PersistentCollectionChangeData persistentCollectionChangeData,
Object revision) |
void |
DefaultAuditStrategy.performCollectionChange(Session session,
String entityName,
String propertyName,
AuditEntitiesConfiguration auditEntitiesConfiguration,
PersistentCollectionChangeData persistentCollectionChangeData,
Object revision) |
void |
AuditStrategy.performCollectionChange(Session session,
String entityName,
String propertyName,
AuditEntitiesConfiguration auditEntitiesConfiguration,
PersistentCollectionChangeData persistentCollectionChangeData,
Object revision)
Perform the persistence of audited data for collection ("middle") entities.
|
default void |
AuditStrategy.performCollectionChange(Session session,
String entityName,
String propertyName,
EnversService enversService,
PersistentCollectionChangeData persistentCollectionChangeData,
Object revision)
|
Modifier and Type | Interface and Description |
---|---|
interface |
EventSource |
Modifier and Type | Class and Description |
---|---|
class |
AbstractSessionImpl
Functionality common to stateless and stateful sessions
|
class |
SessionImpl
Concrete implementation of a Session.
|
Modifier and Type | Method and Description |
---|---|
Session |
SessionFactoryImpl.createEntityManager() |
Session |
SessionFactoryImpl.createEntityManager(Map map) |
Session |
SessionFactoryImpl.createEntityManager(SynchronizationType synchronizationType) |
Session |
SessionFactoryImpl.createEntityManager(SynchronizationType synchronizationType,
Map map) |
Session |
SessionFactoryImpl.getCurrentSession() |
Session |
SessionFactoryImpl.openSession() |
Session |
SessionFactoryImpl.openTemporarySession() |
Modifier and Type | Method and Description |
---|---|
Session |
HibernateEntityManager.getSession()
Deprecated.
Retrieve a reference to the Hibernate
Session used by this EntityManager . |
Modifier and Type | Method and Description |
---|---|
default ProcedureCall |
ProcedureCallMemento.makeProcedureCall(Session session)
Convert the memento back into an executable (connected) form.
|
Modifier and Type | Interface and Description |
---|---|
interface |
FullTextSession
Extends the Hibernate
Session with fulltext search and indexing capabilities. |
Modifier and Type | Method and Description |
---|---|
static FullTextSession |
Search.getFullTextSession(Session session)
Creates a FullTextSession from a regular Session.
|
Modifier and Type | Method and Description |
---|---|
static org.hibernate.search.engine.integration.impl.ExtendedSearchIntegrator |
ContextHelper.getSearchIntegrator(Session session) |
Modifier and Type | Method and Description |
---|---|
static FullTextSession |
ImplementationFactory.createFullTextSession(Session session) |
Modifier and Type | Method and Description |
---|---|
T |
ValueGenerator.generateValue(Session session,
Object owner)
Generate the value.
|
Copyright © 2019 JBoss by Red Hat. All rights reserved.