| java.lang.Object org.springframework.orm.jpa.DefaultJpaDialect org.springframework.orm.jpa.vendor.TopLinkJpaDialect
getSession | protected Session getSession(EntityManager em)(Code) | | Get a traditional TopLink Session from the given EntityManager.
|
setLazyDatabaseTransaction | public void setLazyDatabaseTransaction(boolean lazyDatabaseTransaction)(Code) | | Set whether to lazily start a database transaction within a TopLink
transaction.
By default, database transactions are started early. This allows
for reusing the same JDBC Connection throughout an entire transaction,
including read operations, and also for exposing TopLink transactions
to JDBC access code (working on the same DataSource).
It is only recommended to switch this flag to "true" when no JDBC access
code is involved in any of the transactions, and when it is acceptable to
perform read operations outside of the transactional JDBC Connection.
See Also: oracle.toplink.sessions.UnitOfWork.beginEarlyTransaction |
|
|