Package | Description |
---|---|
org.hibernate |
This package defines the central Hibernate APIs.
|
org.hibernate.cfg |
This package defines APIs for configuring Hibernate, and classes
for building the Hibernate configuration-time metamodel.
|
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.jdbc |
This package abstracts the mechanism for dispatching SQL statements
to the database, and implements interaction with JDBC.
|
org.hibernate.transaction |
This package abstracts the underlying transaction mechanism
(JTA or JDBC) and provides strategies for obtaining application
server TransactionManagers.
|
Modifier and Type | Field and Description |
---|---|
static ConnectionReleaseMode |
ConnectionReleaseMode.AFTER_STATEMENT
Indicates that JDBC connection should be aggressively released after each
SQL statement is executed.
|
static ConnectionReleaseMode |
ConnectionReleaseMode.AFTER_TRANSACTION
Indicates that JDBC connections should be released after each transaction
ends (works with both JTA-registered synch and HibernateTransaction API).
|
static ConnectionReleaseMode |
ConnectionReleaseMode.ON_CLOSE
Indicates that connections should only be released when the Session is explicitly closed
or disconnected; this is the legacy (Hibernate2 and pre-3.1) behavior.
|
Modifier and Type | Method and Description |
---|---|
static ConnectionReleaseMode |
ConnectionReleaseMode.parse(String modeName)
Determine the correct ConnectionReleaseMode instance based on the given
name.
|
Modifier and Type | Method and Description |
---|---|
ConnectionReleaseMode |
Settings.getConnectionReleaseMode() |
Modifier and Type | Method and Description |
---|---|
protected ConnectionReleaseMode |
ThreadLocalSessionContext.getConnectionReleaseMode()
Mainly for subclass usage.
|
protected ConnectionReleaseMode |
JTASessionContext.getConnectionReleaseMode()
Mainly for subclass usage.
|
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.
|
Modifier and Type | Method and Description |
---|---|
ConnectionReleaseMode |
SessionImpl.getConnectionReleaseMode() |
ConnectionReleaseMode |
StatelessSessionImpl.getConnectionReleaseMode() |
Modifier and Type | Method and Description |
---|---|
Session |
SessionFactoryImpl.openSession(Connection connection,
boolean flushBeforeCompletionEnabled,
boolean autoCloseSessionEnabled,
ConnectionReleaseMode connectionReleaseMode) |
Modifier and Type | Method and Description |
---|---|
ConnectionReleaseMode |
JDBCContext.Context.getConnectionReleaseMode() |
Modifier and Type | Method and Description |
---|---|
static ConnectionManager |
ConnectionManager.deserialize(ObjectInputStream ois,
SessionFactoryImplementor factory,
Interceptor interceptor,
ConnectionReleaseMode connectionReleaseMode,
JDBCContext jdbcContext) |
Constructor and Description |
---|
ConnectionManager(SessionFactoryImplementor factory,
ConnectionManager.Callback callback,
ConnectionReleaseMode releaseMode,
Connection connection,
Interceptor interceptor)
Constructs a ConnectionManager.
|
Modifier and Type | Method and Description |
---|---|
ConnectionReleaseMode |
JTATransactionFactory.getDefaultReleaseMode()
Get the default connection release mode.
|
ConnectionReleaseMode |
JDBCTransactionFactory.getDefaultReleaseMode()
Get the default connection release mode.
|
ConnectionReleaseMode |
TransactionFactory.getDefaultReleaseMode()
Get the default connection release mode.
|
ConnectionReleaseMode |
CMTTransactionFactory.getDefaultReleaseMode() |
Copyright © 2002-2015 Red Hat Middleware, LLC. All Rights Reserved