|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JpaAdapter
Provides a way for individual JPA implementations to properly set their implementation-specific properties to accurately map
the JpaSource
properties to the JPA implementation.
Method Summary | |
---|---|
String |
determineDialect(javax.persistence.EntityManager entityManager)
Determines the dialect in an implementation-specific manager |
javax.persistence.EntityManagerFactory |
getEntityManagerFactory(JpaSource source)
Returns an EntityManagerFactory based on the values in the given source . |
Properties |
getProperties(JpaSource source)
Maps the JpaSource properties to the corresponding properties in the JPA implementation |
Method Detail |
---|
Properties getProperties(JpaSource source)
JpaSource
properties to the corresponding properties in the JPA implementation
source
- the JPA source to map; may not be null
Persistence.createEntityManagerFactory(String, Map)
; never nullString determineDialect(javax.persistence.EntityManager entityManager)
entityManager
- an open and valid EntityManager
; may not be null
set the dialect property
on the source
; null indicates that the dialect could not be determinedjavax.persistence.EntityManagerFactory getEntityManagerFactory(JpaSource source)
EntityManagerFactory
based on the values in the given source
.
source
- the JpaSource
to use as a source of settings; may not be null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |