|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.orm.jpa.vendor.AbstractJpaVendorAdapter
org.springframework.orm.jpa.vendor.OpenJpaVendorAdapter
public class OpenJpaVendorAdapter
JpaVendorAdapter implementation for
Apache OpenJPA. Developed and tested against OpenJPA 1.0.0.
Exposes OpenJPA's persistence provider and EntityManager extension interface,
and supports AbstractJpaVendorAdapter's common configuration settings.
PersistenceProviderImpl,
OpenJPAEntityManager| Constructor Summary | |
|---|---|
OpenJpaVendorAdapter()
|
|
| Method Summary | |
|---|---|
protected String |
determineDatabaseDictionary(Database database)
Determine the OpenJPA database dictionary name for the given database. |
Class<? extends javax.persistence.EntityManagerFactory> |
getEntityManagerFactoryInterface()
Return the vendor-specific EntityManagerFactory interface that the EntityManagerFactory proxy is supposed to implement. |
Class<? extends javax.persistence.EntityManager> |
getEntityManagerInterface()
Return the vendor-specific EntityManager interface that this provider's EntityManagers will implement. |
JpaDialect |
getJpaDialect()
Return the vendor-specific JpaDialect implementation for this provider, or null if there is none. |
Map<String,Object> |
getJpaPropertyMap()
Return a Map of vendor-specific JPA properties, typically based on settings in this JpaVendorAdapter instance. |
javax.persistence.spi.PersistenceProvider |
getPersistenceProvider()
Return the vendor-specific persistence provider. |
String |
getPersistenceProviderRootPackage()
Return the name of the persistence provider's root package (e.g. |
| Methods inherited from class org.springframework.orm.jpa.vendor.AbstractJpaVendorAdapter |
|---|
getDatabase, getDatabasePlatform, isGenerateDdl, isShowSql, postProcessEntityManagerFactory, setDatabase, setDatabasePlatform, setGenerateDdl, setShowSql |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OpenJpaVendorAdapter()
| Method Detail |
|---|
public javax.persistence.spi.PersistenceProvider getPersistenceProvider()
JpaVendorAdapter
public String getPersistenceProviderRootPackage()
JpaVendorAdapter
getPersistenceProviderRootPackage in interface JpaVendorAdaptergetPersistenceProviderRootPackage in class AbstractJpaVendorAdapterpublic Map<String,Object> getJpaPropertyMap()
JpaVendorAdapterNote that there might be further JPA properties defined on the EntityManagerFactory bean, which might potentially override individual JPA property values specified here.
getJpaPropertyMap in interface JpaVendorAdaptergetJpaPropertyMap in class AbstractJpaVendorAdapternull or an empty Map
if there are no such properties to exposePersistence.createEntityManagerFactory(String, java.util.Map),
PersistenceProvider.createContainerEntityManagerFactory(javax.persistence.spi.PersistenceUnitInfo, java.util.Map)protected String determineDatabaseDictionary(Database database)
database - the specified database
null if none foundpublic JpaDialect getJpaDialect()
JpaVendorAdapternull if there is none.
getJpaDialect in interface JpaVendorAdaptergetJpaDialect in class AbstractJpaVendorAdapterpublic Class<? extends javax.persistence.EntityManagerFactory> getEntityManagerFactoryInterface()
JpaVendorAdapterIf the provider does not offer any EntityManagerFactory extensions,
the adapter should simply return the standard
EntityManagerFactory class here.
getEntityManagerFactoryInterface in interface JpaVendorAdaptergetEntityManagerFactoryInterface in class AbstractJpaVendorAdapterpublic Class<? extends javax.persistence.EntityManager> getEntityManagerInterface()
JpaVendorAdapterIf the provider does not offer any EntityManager extensions,
the adapter should simply return the standard
EntityManager class here.
getEntityManagerInterface in interface JpaVendorAdaptergetEntityManagerInterface in class AbstractJpaVendorAdapter
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||