|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.modeshape.connector.store.jpa.HibernateAdapter
public class HibernateAdapter
Hibernate 3-specifc implementation of JpaAdapter
Constructor Summary | |
---|---|
HibernateAdapter()
|
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 |
protected void |
setProperty(Properties configurator,
String propertyName,
int propertyValue)
|
protected void |
setProperty(Properties configurator,
String propertyName,
String propertyValue)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HibernateAdapter()
Method Detail |
---|
public Properties getProperties(JpaSource source)
JpaAdapter
JpaSource
properties to the corresponding properties in the JPA implementation
getProperties
in interface JpaAdapter
source
- the JPA source to map; may not be null
Persistence.createEntityManagerFactory(String, Map)
; never nullprotected void setProperty(Properties configurator, String propertyName, String propertyValue)
protected void setProperty(Properties configurator, String propertyName, int propertyValue)
public String determineDialect(javax.persistence.EntityManager entityManager)
JpaAdapter
determineDialect
in interface JpaAdapter
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 determinedpublic javax.persistence.EntityManagerFactory getEntityManagerFactory(JpaSource source)
JpaAdapter
EntityManagerFactory
based on the values in the given source
.
getEntityManagerFactory
in interface JpaAdapter
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 |