| 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.internal | 
 Internal implementations and support around "current session" handling. 
 | 
| 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.envers | |
| org.hibernate.envers.internal.entities.mapper.relation.lazy | |
| org.hibernate.envers.internal.reader | |
| org.hibernate.envers.internal.revisioninfo | |
| org.hibernate.envers.internal.synchronization | |
| org.hibernate.envers.internal.synchronization.work | |
| org.hibernate.envers.internal.tools | |
| org.hibernate.envers.internal.tools.query | |
| org.hibernate.envers.strategy | |
| org.hibernate.event.spi | |
| org.hibernate.internal | 
 
    An internal package containing mostly implementations of central Hibernate APIs. 
 | 
| org.hibernate.jpa | 
 Defines Hibernate implementation of Java Persistence specification. 
 | 
| org.hibernate.jpa.internal | |
| org.hibernate.jpa.spi | |
| org.hibernate.procedure | |
| org.hibernate.procedure.internal | 
 Defines the internal support for implementing stored procedure calling. 
 | 
| org.hibernate.testing.junit4 | |
| 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 | 
|---|---|
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> | 
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 | Class and Description | 
|---|---|
class  | 
SessionDelegatorBaseImpl
This class is meant to be extended. 
 | 
| Modifier and Type | Field and Description | 
|---|---|
protected Session | 
SessionDelegatorBaseImpl.session  | 
| Modifier and Type | Method and Description | 
|---|---|
Session | 
SessionFactoryImplementor.openTemporarySession()
Get a nontransactional "current" session for Hibernate EntityManager 
 | 
| Constructor and Description | 
|---|
SessionDelegatorBaseImpl(SessionImplementor sessionImplementor,
                        Session session)  | 
| Modifier and Type | Method and Description | 
|---|---|
static AuditReader | 
AuditReaderFactory.get(Session session)
Create an audit reader associated with an open session. 
 | 
| Modifier and Type | Class and Description | 
|---|---|
class  | 
AbstractDelegateSessionImplementor  | 
class  | 
ToOneDelegateSessionImplementor  | 
| Modifier and Type | Method and Description | 
|---|---|
Session | 
AuditReaderImpl.getSession()  | 
Session | 
AuditReaderImplementor.getSession()  | 
| Constructor and Description | 
|---|
AuditReaderImpl(AuditConfiguration verCfg,
               Session session,
               SessionImplementor sessionImplementor)  | 
| Modifier and Type | Method and Description | 
|---|---|
Criteria | 
RevisionInfoQueryCreator.getRevisionDateQuery(Session session,
                    Number revision)  | 
Criteria | 
RevisionInfoQueryCreator.getRevisionNumberForDateQuery(Session session,
                             Date date)  | 
Criteria | 
RevisionInfoQueryCreator.getRevisionsQuery(Session session,
                 Set<Number> revisions)  | 
void | 
DefaultRevisionInfoGenerator.saveRevisionData(Session session,
                Object revisionData)  | 
void | 
RevisionInfoGenerator.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 | 
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 | 
EntityTools.getEntityClass(SessionImplementor sessionImplementor,
              Session session,
              String entityName)  | 
| Modifier and Type | Method and Description | 
|---|---|
Query | 
QueryBuilder.toQuery(Session session)  | 
Query | 
UpdateBuilder.toQuery(Session session)  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
DefaultAuditStrategy.perform(Session session,
       String entityName,
       AuditConfiguration auditCfg,
       Serializable id,
       Object data,
       Object revision)  | 
void | 
ValidityAuditStrategy.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 | 
DefaultAuditStrategy.performCollectionChange(Session session,
                       String entityName,
                       String propertyName,
                       AuditConfiguration auditCfg,
                       PersistentCollectionChangeData persistentCollectionChangeData,
                       Object revision)  | 
void | 
ValidityAuditStrategy.performCollectionChange(Session session,
                       String entityName,
                       String propertyName,
                       AuditConfiguration auditCfg,
                       PersistentCollectionChangeData persistentCollectionChangeData,
                       Object revision)  | 
void | 
AuditStrategy.performCollectionChange(Session session,
                       String entityName,
                       String propertyName,
                       AuditConfiguration auditCfg,
                       PersistentCollectionChangeData persistentCollectionChangeData,
                       Object revision)
Perform the persistence of audited data for collection ("middle") entities. 
 | 
| Modifier and Type | Interface and Description | 
|---|---|
interface  | 
EventSource  | 
| Modifier and Type | Class and Description | 
|---|---|
class  | 
SessionImpl
Concrete implementation of a Session. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
Session | 
SessionFactoryImpl.getCurrentSession()  | 
Session | 
SessionFactoryImpl.openSession()  | 
Session | 
SessionFactoryImpl.openTemporarySession()  | 
| Modifier and Type | Method and Description | 
|---|---|
Session | 
HibernateEntityManager.getSession()
Retrieve a reference to the Hibernate  
Session used by this EntityManager. | 
| Modifier and Type | Field and Description | 
|---|---|
protected Session | 
EntityManagerImpl.session  | 
| Modifier and Type | Method and Description | 
|---|---|
protected Session | 
EntityManagerImpl.getRawSession()  | 
Session | 
EntityManagerImpl.getSession()  | 
protected Session | 
EntityManagerImpl.internalGetSession()  | 
| Modifier and Type | Method and Description | 
|---|---|
protected abstract Session | 
AbstractEntityManagerImpl.getRawSession()
Deprecated. 
 
Deprecated in favor of  
AbstractEntityManagerImpl.getRawSession() | 
abstract Session | 
AbstractEntityManagerImpl.getSession()
return a Session 
 | 
protected abstract Session | 
AbstractEntityManagerImpl.internalGetSession()
Return a Session without any validation checks. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
ProcedureCall | 
ProcedureCallMemento.makeProcedureCall(Session session)
Convert the memento back into an executable (connected) form. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
ProcedureCall | 
ProcedureCallMementoImpl.makeProcedureCall(Session session)  | 
| Modifier and Type | Field and Description | 
|---|---|
protected Session | 
BaseCoreFunctionalTestCase.session  | 
| Modifier and Type | Method and Description | 
|---|---|
protected Session | 
BaseCoreFunctionalTestCase.openSession()  | 
protected Session | 
BaseCoreFunctionalTestCase.openSession(Interceptor interceptor)  | 
| Modifier and Type | Method and Description | 
|---|---|
T | 
ValueGenerator.generateValue(Session session,
             Object owner)
Generate the value. 
 | 
Copyright © 2001-2015 Red Hat, Inc. All Rights Reserved.