Package | Description |
---|---|
org.hibernate |
This package defines the central Hibernate APIs.
|
org.hibernate.context | |
org.hibernate.engine |
This package contains classes that are "shared" by other packages,
and implementations of some key algorithms.
|
org.hibernate.impl |
This package contains implementations of the
central Hibernate APIs, especially the
Hibernate session.
|
org.hibernate.jmx |
This package exposes a Hibernate instance via JMX.
|
org.hibernate.testing.junit.functional |
Modifier and Type | Method and Description |
---|---|
Session |
SessionFactory.getCurrentSession()
Obtains the current session.
|
Session |
SessionFactory.openSession()
Open a
Session . |
Session |
SessionFactory.openSession(Connection connection)
Open a
Session , utilizing the specfied JDBC Connection . |
Session |
SessionFactory.openSession(Connection connection,
Interceptor interceptor)
|
Session |
SessionFactory.openSession(Interceptor interceptor)
Open a
Session , utilizing the specified Interceptor . |
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 subclassing purposes; specifically to allow long-session
support.
|
protected Session |
JTASessionContext.buildOrObtainSession()
Strictly provided for subclassing purposes; specifically to allow long-session
support.
|
Session |
CurrentSessionContext.currentSession()
Retrieve the current session according to the scoping defined
by this implementation.
|
Session |
ManagedSessionContext.currentSession()
Retrieve the current session according to the scoping defined
by this implementation.
|
Session |
ThreadLocalSessionContext.currentSession()
Retrieve the current session according to the scoping defined
by this implementation.
|
Session |
JTASessionContext.currentSession()
Retrieve the current session according to the scoping defined
by this implementation.
|
static Session |
ManagedSessionContext.unbind(SessionFactory factory)
Unbinds the session (if one) current associated with the context for the
given session.
|
static Session |
ThreadLocalSessionContext.unbind(SessionFactory factory)
Unassociate a previously bound session from the current thread of execution.
|
protected Session |
ThreadLocalSessionContext.wrap(Session session) |
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.wrap(Session session) |
Modifier and Type | Method and Description |
---|---|
Session |
SessionFactoryImplementor.openSession(Connection connection,
boolean flushBeforeCompletionEnabled,
boolean autoCloseSessionEnabled,
ConnectionReleaseMode connectionReleaseMode)
Open a session conforming to the given parameters.
|
Session |
SessionFactoryImplementor.openTemporarySession()
Get a nontransactional "current" session for Hibernate EntityManager
|
Modifier and Type | Method and Description |
---|---|
Session |
SessionFactoryImpl.getCurrentSession() |
Session |
SessionFactoryImpl.openSession() |
Session |
SessionFactoryImpl.openSession(Connection connection) |
Session |
SessionFactoryImpl.openSession(Connection connection,
boolean flushBeforeCompletionEnabled,
boolean autoCloseSessionEnabled,
ConnectionReleaseMode connectionReleaseMode) |
Session |
SessionFactoryImpl.openSession(Connection connection,
Interceptor sessionLocalInterceptor) |
Session |
SessionFactoryImpl.openSession(Interceptor sessionLocalInterceptor) |
Session |
SessionFactoryImpl.openTemporarySession() |
Modifier and Type | Method and Description |
---|---|
Session |
SessionFactoryStub.getCurrentSession() |
Session |
SessionFactoryStub.openSession() |
Session |
SessionFactoryStub.openSession(Connection conn) |
Session |
SessionFactoryStub.openSession(Connection connection,
Interceptor interceptor) |
Session |
SessionFactoryStub.openSession(Interceptor interceptor) |
Modifier and Type | Method and Description |
---|---|
Session |
FunctionalTestCase.openSession() |
Session |
FunctionalTestCase.openSession(Interceptor interceptor) |
Copyright © 2002-2015 Red Hat Middleware, LLC. All Rights Reserved