public class OpenJpaVendorAdapter extends AbstractJpaVendorAdapter
JpaVendorAdapter
implementation for Apache OpenJPA.
Developed and tested against OpenJPA 3.0.
Exposes OpenJPA's persistence provider and EntityManager extension interface,
and adapts AbstractJpaVendorAdapter
's common configuration settings.
No support for the detection of annotated packages (through
SmartPersistenceUnitInfo.getManagedPackages()
)
since OpenJPA doesn't use package-level metadata.OpenJpaDialect
,
PersistenceProviderImpl
,
OpenJPAEntityManager
Constructor and Description |
---|
OpenJpaVendorAdapter() |
Modifier and Type | Method and Description |
---|---|
protected String |
determineDatabaseDictionary(Database database)
Determine the OpenJPA database dictionary name for the given database.
|
Class<? extends javax.persistence.EntityManagerFactory> |
getEntityManagerFactoryInterface() |
Class<? extends javax.persistence.EntityManager> |
getEntityManagerInterface() |
OpenJpaDialect |
getJpaDialect() |
Map<String,Object> |
getJpaPropertyMap() |
javax.persistence.spi.PersistenceProvider |
getPersistenceProvider() |
String |
getPersistenceProviderRootPackage() |
getDatabase, getDatabasePlatform, getJpaPropertyMap, isGenerateDdl, isShowSql, postProcessEntityManagerFactory, setDatabase, setDatabasePlatform, setGenerateDdl, setShowSql
public javax.persistence.spi.PersistenceProvider getPersistenceProvider()
public String getPersistenceProviderRootPackage()
getPersistenceProviderRootPackage
in interface JpaVendorAdapter
getPersistenceProviderRootPackage
in class AbstractJpaVendorAdapter
public Map<String,Object> getJpaPropertyMap()
getJpaPropertyMap
in interface JpaVendorAdapter
getJpaPropertyMap
in class AbstractJpaVendorAdapter
protected String determineDatabaseDictionary(Database database)
database
- the specified databasenull
if none foundpublic OpenJpaDialect getJpaDialect()
getJpaDialect
in interface JpaVendorAdapter
getJpaDialect
in class AbstractJpaVendorAdapter
public Class<? extends javax.persistence.EntityManagerFactory> getEntityManagerFactoryInterface()
getEntityManagerFactoryInterface
in interface JpaVendorAdapter
getEntityManagerFactoryInterface
in class AbstractJpaVendorAdapter
public Class<? extends javax.persistence.EntityManager> getEntityManagerInterface()
getEntityManagerInterface
in interface JpaVendorAdapter
getEntityManagerInterface
in class AbstractJpaVendorAdapter
Copyright © 2010–2023 The Apache Software Foundation. All rights reserved.