Class Overview
JpaVendorAdapter
implementation for
Oracle TopLink Essentials. Developed and tested against TopLink Essentials v2.
Exposes TopLink's persistence provider and EntityManager extension interface,
and supports AbstractJpaVendorAdapter
's common configuration settings.
See Also
- oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider
- oracle.toplink.essentials.ejb.cmp3.EntityManager
Summary
[Expand]
Inherited Methods |
From class
org.springframework.orm.jpa.vendor.AbstractJpaVendorAdapter
Database
|
getDatabase()
Return the target database to operate on.
|
String
|
getDatabasePlatform()
Return the name of the target database to operate on.
|
Class<? extends EntityManagerFactory>
|
getEntityManagerFactoryInterface()
Return the vendor-specific EntityManagerFactory interface
that the EntityManagerFactory proxy is supposed to implement.
|
Class<? extends 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, ?>
|
getJpaPropertyMap()
Return a Map of vendor-specific JPA properties,
typically based on settings in this JpaVendorAdapter instance.
|
String
|
getPersistenceProviderRootPackage()
Return the name of the persistence provider's root package
(e.g.
|
boolean
|
isGenerateDdl()
Return whether to generate DDL after the EntityManagerFactory has been initialized
creating/updating all relevant tables.
|
boolean
|
isShowSql()
Return whether to show SQL in the log (or in the console).
|
void
|
postProcessEntityManagerFactory(EntityManagerFactory emf)
Post-process the EntityManagerFactory after it has been initialized.
|
void
|
setDatabase(Database database)
Specify the target database to operate on, as a value of the Database enum:
DB2, DERBY, H2, HSQL, INFORMIX, MYSQL, ORACLE, POSTGRESQL, SQL_SERVER, SYBASE
|
void
|
setDatabasePlatform(String databasePlatform)
Specify the name of the target database to operate on.
|
void
|
setGenerateDdl(boolean generateDdl)
Set whether to generate DDL after the EntityManagerFactory has been initialized,
creating/updating all relevant tables.
|
void
|
setShowSql(boolean showSql)
Set whether to show SQL in the log (or in the console).
|
|
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
From interface
org.springframework.orm.jpa.JpaVendorAdapter
abstract
Class<? extends EntityManagerFactory>
|
getEntityManagerFactoryInterface()
Return the vendor-specific EntityManagerFactory interface
that the EntityManagerFactory proxy is supposed to implement.
|
abstract
Class<? extends EntityManager>
|
getEntityManagerInterface()
Return the vendor-specific EntityManager interface
that this provider's EntityManagers will implement.
|
abstract
JpaDialect
|
getJpaDialect()
Return the vendor-specific JpaDialect implementation for this
provider, or null if there is none.
|
abstract
Map<String, ?>
|
getJpaPropertyMap()
Return a Map of vendor-specific JPA properties,
typically based on settings in this JpaVendorAdapter instance.
|
abstract
PersistenceProvider
|
getPersistenceProvider()
Return the vendor-specific persistence provider.
|
abstract
String
|
getPersistenceProviderRootPackage()
Return the name of the persistence provider's root package
(e.g.
|
abstract
void
|
postProcessEntityManagerFactory(EntityManagerFactory emf)
Optional callback for post-processing the native EntityManagerFactory
before active use.
|
|
Public Constructors
public
TopLinkJpaVendorAdapter
()
Public Methods
public
Class<? extends EntityManager>
getEntityManagerInterface
()
Return the vendor-specific EntityManager interface
that this provider's EntityManagers will implement.
If the provider does not offer any EntityManager extensions,
the adapter should simply return the standard
javax.persistence.EntityManager class here.
public
JpaDialect
getJpaDialect
()
Return the vendor-specific JpaDialect implementation for this
provider, or null
if there is none.
public
Map<String, Object>
getJpaPropertyMap
()
Return a Map of vendor-specific JPA properties,
typically based on settings in this JpaVendorAdapter instance.
Note that there might be further JPA properties defined on
the EntityManagerFactory bean, which might potentially override
individual JPA property values specified here.
Returns
- a Map of JPA properties, as as accepted by the standard
JPA bootstrap facilities, or
null
or an empty Map
if there are no such properties to expose
public
PersistenceProvider
getPersistenceProvider
()
public
String
getPersistenceProviderRootPackage
()
Return the name of the persistence provider's root package
(e.g. "oracle.toplink.essentials"). Will be used for
excluding provider classes from temporary class overriding.
Protected Methods
protected
String
determineTargetDatabaseName
(Database database)
Determine the TopLink target database name for the given database.
Parameters
database
| the specified database |
Returns
- the TopLink target database name, or
null if none found