| org.springframework.orm.jpa.persistenceunit.PersistenceUnitManager |
Known Indirect Subclasses
|
Interface that defines an abstraction for finding and managing
JPA PersistenceUnitInfos. Used by
LocalContainerEntityManagerFactoryBean
in order to obtain a javax.persistence.spi.PersistenceUnitInfo
for building a concrete javax.persistence.EntityManagerFactory.
Obtaining a PersistenceUnitInfo instance is an exclusive process. A PersistenceUnitInfo instance is not available for further calls anymore once it has been obtained.
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Obtain the default PersistenceUnitInfo from this manager.
| |||||||||||
Obtain the specified PersistenceUnitInfo from this manager.
| |||||||||||
Obtain the default PersistenceUnitInfo from this manager.
null)| IllegalStateException | if there is no default PersistenceUnitInfo defined or it has already been obtained |
|---|
Obtain the specified PersistenceUnitInfo from this manager.
| persistenceUnitName | the name of the desired persistence unit |
|---|
null)| IllegalArgumentException | if no PersistenceUnitInfo with the given name is defined |
|---|---|
| IllegalStateException | if the PersistenceUnitInfo with the given name has already been obtained |