The Spring Framework

org.springframework.orm.jpa.vendor
Class TopLinkJpaVendorAdapter

java.lang.Object
  extended by org.springframework.orm.jpa.vendor.AbstractJpaVendorAdapter
      extended by org.springframework.orm.jpa.vendor.TopLinkJpaVendorAdapter
All Implemented Interfaces:
JpaVendorAdapter

public class TopLinkJpaVendorAdapter
extends AbstractJpaVendorAdapter

TopLink-specific JpaVendorAdapter implementation.

Since:
2.0
Author:
Rod Johnson, Juergen Hoeller

Constructor Summary
TopLinkJpaVendorAdapter()
           
 
Method Summary
protected  String determineTargetDatabaseName(Database database)
          Determine the TopLink target database name for the given database.
 Class getEntityManagerInterface()
          Return the vendor-specific EntityManager interface that this factory's EntityManagers will implement.
 JpaDialect getJpaDialect()
          Return the vendor-specific JpaDialect implementation for this EntityManagerFactory, or null if not known.
 Map getJpaPropertyMap()
          Return a Map of vendor-specific JPA properties, based on settings in this JpaVendorAdapter instance.
 javax.persistence.spi.PersistenceProvider getPersistenceProvider()
          Return the vendor-specific persistence provider.
 
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

TopLinkJpaVendorAdapter

public TopLinkJpaVendorAdapter()
Method Detail

getPersistenceProvider

public javax.persistence.spi.PersistenceProvider getPersistenceProvider()
Description copied from interface: JpaVendorAdapter
Return the vendor-specific persistence provider.


getJpaPropertyMap

public Map getJpaPropertyMap()
Description copied from interface: JpaVendorAdapter
Return a Map of vendor-specific JPA properties, based on settings in this JpaVendorAdapter instance.


determineTargetDatabaseName

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

getEntityManagerInterface

public Class getEntityManagerInterface()
Description copied from interface: JpaVendorAdapter
Return the vendor-specific EntityManager interface that this factory's EntityManagers will implement.


getJpaDialect

public JpaDialect getJpaDialect()
Description copied from interface: JpaVendorAdapter
Return the vendor-specific JpaDialect implementation for this EntityManagerFactory, or null if not known.


The Spring Framework

Copyright © 2002-2006 The Spring Framework.