|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.sharengo.wikitty.jpa.JtaPersistenceUnitPostProcessor
public class JtaPersistenceUnitPostProcessor
the JtaPersistenceUnitPostProcessor enables us to define the JTA capable datasource
which should be used by the JPA provider directly as a reference within the Spring configuration
file.
| Constructor Summary | |
|---|---|
JtaPersistenceUnitPostProcessor()
|
|
| Method Summary | |
|---|---|
DataSource |
getJtaDataSource()
getter for jtaDataSource |
void |
postProcessPersistenceUnitInfo(org.springframework.orm.jpa.persistenceunit.MutablePersistenceUnitInfo mutablePersistenceUnitInfo)
enrich the PersistenceUnitInfo read from the persistence.xml configuration file with a reference to the jtaDataSource injected via the Spring configuration. the JTA capable datasource is then used by the LocalContainerEntityManagerFactoryBean to create the EntityManagerFactory |
void |
setJtaDataSource(DataSource jtaDataSource)
setter for jtaDataSource |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JtaPersistenceUnitPostProcessor()
| Method Detail |
|---|
public void postProcessPersistenceUnitInfo(org.springframework.orm.jpa.persistenceunit.MutablePersistenceUnitInfo mutablePersistenceUnitInfo)
postProcessPersistenceUnitInfo in interface org.springframework.orm.jpa.persistenceunit.PersistenceUnitPostProcessorPersistenceUnitPostProcessor.postProcessPersistenceUnitInfo(MutablePersistenceUnitInfo)public DataSource getJtaDataSource()
public void setJtaDataSource(DataSource jtaDataSource)
jtaDataSource - the JTA capable datasource added to the PersistenceUnitInfo during post processing
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||