Package | Description |
---|---|
org.springframework.jdbc.datasource |
Provides a utility class for easy DataSource access,
a PlatformTransactionManager for a single DataSource,
and various simple DataSource implementations.
|
org.springframework.orm.jpa |
Package providing integration of JPA (Java Persistence API) with Spring concepts.
|
org.springframework.orm.jpa.vendor |
Support classes for adapting to specific JPA vendors.
|
Modifier and Type | Class and Description |
---|---|
class |
SimpleConnectionHandle
Simple implementation of the
ConnectionHandle interface,
containing a given JDBC Connection. |
Modifier and Type | Method and Description |
---|---|
ConnectionHandle |
ConnectionHolder.getConnectionHandle()
Return the ConnectionHandle held by this ConnectionHolder.
|
Constructor and Description |
---|
ConnectionHolder(ConnectionHandle connectionHandle)
Create a new ConnectionHolder for the given ConnectionHandle.
|
Modifier and Type | Method and Description |
---|---|
ConnectionHandle |
DefaultJpaDialect.getJdbcConnection(EntityManager entityManager,
boolean readOnly)
This implementation always returns
null ,
indicating that no JDBC Connection can be provided. |
ConnectionHandle |
JpaDialect.getJdbcConnection(EntityManager entityManager,
boolean readOnly)
Retrieve the JDBC Connection that the given JPA EntityManager uses underneath,
if accessing a relational database.
|
Modifier and Type | Method and Description |
---|---|
void |
DefaultJpaDialect.releaseJdbcConnection(ConnectionHandle conHandle,
EntityManager em)
This implementation does nothing, assuming that the Connection
will implicitly be closed with the EntityManager.
|
void |
JpaDialect.releaseJdbcConnection(ConnectionHandle conHandle,
EntityManager entityManager)
Release the given JDBC Connection, which has originally been retrieved
via
getJdbcConnection . |
Modifier and Type | Method and Description |
---|---|
ConnectionHandle |
EclipseLinkJpaDialect.getJdbcConnection(EntityManager entityManager,
boolean readOnly) |
ConnectionHandle |
HibernateJpaDialect.getJdbcConnection(EntityManager entityManager,
boolean readOnly) |