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 | |
org.hibernate.criterion |
A framework for defining restriction criteria and order criteria.
|
org.hibernate.ejb | |
org.hibernate.envers | |
org.hibernate.envers.reader | |
org.hibernate.envers.revisioninfo | |
org.hibernate.envers.strategy | |
org.hibernate.envers.synchronization | |
org.hibernate.envers.synchronization.work | |
org.hibernate.envers.tools | |
org.hibernate.envers.tools.query | |
org.hibernate.event |
This package defines an event framework for Hibernate.
|
org.hibernate.impl |
This package contains implementations of the
central Hibernate APIs, especially the
Hibernate session.
|
Modifier and Type | Method and Description |
---|---|
Session |
Session.getSession(EntityMode entityMode)
Starts a new Session with the given entity mode in effect.
|
Modifier and Type | Method and Description |
---|---|
static Blob |
Hibernate.createBlob(byte[] bytes,
Session session)
Deprecated.
Use
LobHelper.createBlob(byte[]) instead on the LobHelper obtained from
getLobHelper() |
static Blob |
Hibernate.createBlob(InputStream stream,
long length,
Session session)
Deprecated.
Use
LobHelper.createBlob(InputStream, long) instead. |
static Clob |
Hibernate.createClob(Reader reader,
long length,
Session session)
Deprecated.
Use
LobHelper.createClob(Reader, long) instead |
static Clob |
Hibernate.createClob(String string,
Session session)
Deprecated.
Use
LobHelper.createClob(String) instead on the LobHelper obtained from
getLobHelper() |
static LobCreator |
Hibernate.getLobCreator(Session session) |
Modifier and Type | Interface and Description |
---|---|
interface |
Session
An extension of the Session API, including all
deprecated methods from Hibernate2.
|
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 void |
ThreadLocalSessionContext.bind(Session session)
Associates the given session with the current thread of execution.
|
Modifier and Type | Method and Description |
---|---|
Criteria |
DetachedCriteria.getExecutableCriteria(Session session)
Get an executable instance of
|
Modifier and Type | Field and Description |
---|---|
protected Session |
EntityManagerImpl.session |
Modifier and Type | Method and Description |
---|---|
protected Session |
CurrentEntityManagerImpl.getRawSession()
Deprecated.
|
protected abstract Session |
AbstractEntityManagerImpl.getRawSession()
Return a Session (even if the entity manager is closed).
|
protected Session |
EntityManagerImpl.getRawSession() |
Session |
HibernateEntityManager.getSession()
Retrieve a reference to the Hibernate
Session used by this EntityManager . |
Session |
CurrentEntityManagerImpl.getSession()
Deprecated.
|
abstract Session |
AbstractEntityManagerImpl.getSession()
return a Session
|
Session |
EntityManagerImpl.getSession() |
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 |
---|---|
Session |
AuditReaderImplementor.getSession() |
Session |
AuditReaderImpl.getSession() |
Constructor and Description |
---|
AuditReaderImpl(AuditConfiguration verCfg,
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 |
DefaultAuditStrategy.perform(Session session,
String entityName,
AuditConfiguration auditCfg,
Serializable id,
Object data,
Object revision) |
void |
AuditStrategy.perform(Session session,
String entityName,
AuditConfiguration auditCfg,
Serializable id,
Object data,
Object revision)
Perform the persistence of audited data for regular entities.
|
void |
ValidityAuditStrategy.perform(Session session,
String entityName,
AuditConfiguration auditCfg,
Serializable id,
Object data,
Object revision) |
void |
DefaultAuditStrategy.performCollectionChange(Session session,
AuditConfiguration auditCfg,
PersistentCollectionChangeData persistentCollectionChangeData,
Object revision) |
void |
AuditStrategy.performCollectionChange(Session session,
AuditConfiguration auditCfg,
PersistentCollectionChangeData persistentCollectionChangeData,
Object revision)
Perform the persistence of audited data for collection ("middle") entities.
|
void |
ValidityAuditStrategy.performCollectionChange(Session session,
AuditConfiguration auditCfg,
PersistentCollectionChangeData persistentCollectionChangeData,
Object revision) |
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 |
AbstractAuditWorkUnit.perform(Session session,
Object revisionData) |
void |
AuditWorkUnit.perform(Session session,
Object revisionData)
Perform this work unit in the given session.
|
void |
PersistentCollectionChangeWorkUnit.perform(Session session,
Object revisionData) |
void |
AbstractAuditWorkUnit.undo(Session session) |
void |
AuditWorkUnit.undo(Session session) |
Modifier and Type | Method and Description |
---|---|
static Class |
Tools.getEntityClass(SessionImplementor sessionImplementor,
Session session,
String entityName) |
Modifier and Type | Method and Description |
---|---|
Query |
QueryBuilder.toQuery(Session session) |
Modifier and Type | Interface and Description |
---|---|
interface |
EventSource |
Modifier and Type | Class and Description |
---|---|
class |
SessionImpl
Concrete implementation of a Session, and also the central, organizing component
of Hibernate's internal implementation.
|
Modifier and Type | Method and Description |
---|---|
Session |
SessionImpl.getSession(EntityMode entityMode) |
Copyright © 2002-2015 Red Hat Middleware, LLC. All Rights Reserved