Package | Description |
---|---|
org.hibernate |
This package defines the central Hibernate APIs.
|
org.hibernate.classic |
This package implements backward-compatibility with Hibernate 2.1
APIs now deprecated in Hibernate3.
|
org.hibernate.context.spi |
SPI level contracts around "current session" support.
|
org.hibernate.criterion |
A framework for defining restriction criteria and order criteria.
|
org.hibernate.engine.spi | |
org.hibernate.event.spi | |
org.hibernate.jpa | |
org.hibernate.procedure | |
org.hibernate.tuple |
This package defines a runtime metamodel for entities at
the object level and abstracts the differences between
the various entity modes.
|
Modifier and Type | Method and Description |
---|---|
Session |
SessionFactory.getCurrentSession()
Obtains the current session.
|
Session |
SessionBuilder.openSession()
Opens a session with the specified options.
|
Session |
SessionFactory.openSession()
Open a
Session . |
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 |
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 |
---|---|
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 |
AbstractDelegatingSharedSessionBuilder.openSession() |
Session |
SessionFactoryDelegatingImpl.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 | Interface and Description |
---|---|
interface |
EventSource |
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 | Method and Description |
---|---|
T |
ValueGenerator.generateValue(Session session,
Object owner)
Generate the value.
|
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.