Top Description Fields Constructors Methods
org.hibernate.context.spi

public abstract Class AbstractCurrentSessionContext

extends Object
implements CurrentSessionContext
Class Inheritance
All Implemented Interfaces
org.hibernate.context.spi.CurrentSessionContext, java.io.Serializable
Known Direct Subclasses
org.hibernate.context.internal.JTASessionContext, org.hibernate.context.internal.ManagedSessionContext, org.hibernate.context.internal.ThreadLocalSessionContext
Imports
org.hibernate.Session, .SessionBuilder, org.hibernate.context.TenantIdentifierMismatchException, org.hibernate.engine.spi.SessionBuilderImplementor, .SessionFactoryImplementor, org.hibernate.type.descriptor.java.JavaType

Base support for CurrentSessionContext implementors.
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private final SessionFactoryImplementor
factory

Deprecated as a consequence of SessionFactoryImplementor being deprecated.

Constructor Summary

AccessConstructor and Description
protected
AbstractCurrentSessionContext(SessionFactoryImplementor factory)

Deprecated as a consequence of SessionFactoryImplementor being deprecated.

Method Summary

Modifier and TypeMethod and Description
protected SessionBuilder
public SessionFactoryImplementor

Returns:

The SessionFactory being serviced by this context
factory
()

Deprecated as a consequence of SessionFactoryImplementor being deprecated.
Access to the SessionFactory
protected void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

factoryback to summary
private final SessionFactoryImplementor factory

Deprecated

as a consequence of SessionFactoryImplementor being deprecated. See corresponding docs for further information.

Constructor Detail

AbstractCurrentSessionContextback to summary
protected AbstractCurrentSessionContext(SessionFactoryImplementor factory)

Deprecated

as a consequence of SessionFactoryImplementor being deprecated. See corresponding docs for further information.

Method Detail

baseSessionBuilderback to summary
protected SessionBuilder baseSessionBuilder()
factoryback to summary
public SessionFactoryImplementor factory()

Deprecated

as a consequence of SessionFactoryImplementor being deprecated. See corresponding docs for further information.

Access to the SessionFactory

Returns:SessionFactoryImplementor

The SessionFactory being serviced by this context

validateExistingSessionback to summary
protected void validateExistingSession(Session existingSession)