Class OpenJpaDialect
java.lang.Object
org.springframework.orm.jpa.DefaultJpaDialect
org.apache.syncope.core.persistence.jpa.spring.OpenJpaDialect
- All Implemented Interfaces:
Serializable,PersistenceExceptionTranslator,JpaDialect
JpaDialect implementation for Apache OpenJPA.
Developed and tested against OpenJPA 2.2.- Since:
- 2.0
- Author:
- Juergen Hoeller, Costin Leau
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbeginTransaction(EntityManager entityManager, TransactionDefinition definition) getJdbcConnection(EntityManager entityManager, boolean readOnly) protected static org.apache.openjpa.persistence.OpenJPAEntityManagerReturn the OpenJPA-specific variant ofEntityManager.Methods inherited from class org.springframework.orm.jpa.DefaultJpaDialect
cleanupTransaction, prepareTransaction, releaseJdbcConnection, translateExceptionIfPossible
-
Constructor Details
-
OpenJpaDialect
public OpenJpaDialect()
-
-
Method Details
-
beginTransaction
public Object beginTransaction(EntityManager entityManager, TransactionDefinition definition) throws PersistenceException, TransactionException - Specified by:
beginTransactionin interfaceJpaDialect- Overrides:
beginTransactionin classDefaultJpaDialect- Throws:
PersistenceExceptionTransactionException
-
getJdbcConnection
public ConnectionHandle getJdbcConnection(EntityManager entityManager, boolean readOnly) throws PersistenceException - Specified by:
getJdbcConnectionin interfaceJpaDialect- Overrides:
getJdbcConnectionin classDefaultJpaDialect- Throws:
PersistenceException
-
getOpenJPAEntityManager
protected static org.apache.openjpa.persistence.OpenJPAEntityManager getOpenJPAEntityManager(EntityManager em) Return the OpenJPA-specific variant ofEntityManager.- Parameters:
em- the genericEntityManagerinstance- Returns:
- the OpenJPA-specific variant of
EntityManager
-