public class OpenJpaDialect extends DefaultJpaDialect
JpaDialect
implementation for Apache OpenJPA.
Developed and tested against OpenJPA 2.2.Constructor and Description |
---|
OpenJpaDialect() |
Modifier and Type | Method and Description |
---|---|
Object |
beginTransaction(javax.persistence.EntityManager entityManager,
TransactionDefinition definition) |
ConnectionHandle |
getJdbcConnection(javax.persistence.EntityManager entityManager,
boolean readOnly) |
protected org.apache.openjpa.persistence.OpenJPAEntityManager |
getOpenJPAEntityManager(javax.persistence.EntityManager em)
Return the OpenJPA-specific variant of
EntityManager . |
cleanupTransaction, prepareTransaction, releaseJdbcConnection, translateExceptionIfPossible
public Object beginTransaction(javax.persistence.EntityManager entityManager, TransactionDefinition definition) throws javax.persistence.PersistenceException, SQLException, TransactionException
beginTransaction
in interface JpaDialect
beginTransaction
in class DefaultJpaDialect
javax.persistence.PersistenceException
SQLException
TransactionException
public ConnectionHandle getJdbcConnection(javax.persistence.EntityManager entityManager, boolean readOnly) throws javax.persistence.PersistenceException, SQLException
getJdbcConnection
in interface JpaDialect
getJdbcConnection
in class DefaultJpaDialect
javax.persistence.PersistenceException
SQLException
protected org.apache.openjpa.persistence.OpenJPAEntityManager getOpenJPAEntityManager(javax.persistence.EntityManager em)
EntityManager
.em
- the generic EntityManager
instanceEntityManager
Copyright © 2010–2023 The Apache Software Foundation. All rights reserved.