public class EclipseLinkJpaVendorAdapter extends AbstractJpaVendorAdapter
JpaVendorAdapter
implementation for Eclipse
Persistence Services (EclipseLink). Developed and tested against EclipseLink 2.7;
backwards-compatible with EclipseLink 2.5 and 2.6 at runtime.
Exposes EclipseLink'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 EclipseLink doesn't use package-level metadata.
EclipseLinkJpaDialect
,
PersistenceProvider
,
JpaEntityManager
Constructor and Description |
---|
EclipseLinkJpaVendorAdapter() |
Modifier and Type | Method and Description |
---|---|
protected String |
determineTargetDatabaseName(Database database)
Determine the EclipseLink target database name for the given database.
|
Class<? extends EntityManager> |
getEntityManagerInterface()
Return the vendor-specific EntityManager interface
that this provider's EntityManagers will implement.
|
EclipseLinkJpaDialect |
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.
|
PersistenceProvider |
getPersistenceProvider()
Return the vendor-specific persistence provider.
|
getDatabase, getDatabasePlatform, getEntityManagerFactoryInterface, getJpaPropertyMap, getPersistenceProviderRootPackage, isGenerateDdl, isShowSql, postProcessEntityManager, postProcessEntityManagerFactory, setDatabase, setDatabasePlatform, setGenerateDdl, setShowSql
public PersistenceProvider getPersistenceProvider()
JpaVendorAdapter
public Map<String,Object> getJpaPropertyMap()
JpaVendorAdapter
Note 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 JpaVendorAdapter
getJpaPropertyMap
in class AbstractJpaVendorAdapter
Persistence.createEntityManagerFactory(String, Map)
@Nullable protected String determineTargetDatabaseName(Database database)
database
- the specified databasenull
if none foundpublic EclipseLinkJpaDialect getJpaDialect()
JpaVendorAdapter
null
if there is none.getJpaDialect
in interface JpaVendorAdapter
getJpaDialect
in class AbstractJpaVendorAdapter
public Class<? extends EntityManager> getEntityManagerInterface()
JpaVendorAdapter
If the provider does not offer any EntityManager extensions,
the adapter should simply return the standard
EntityManager
class here.
getEntityManagerInterface
in interface JpaVendorAdapter
getEntityManagerInterface
in class AbstractJpaVendorAdapter