public class RicePersistenceUnitPostProcessor extends Object implements org.springframework.orm.jpa.persistenceunit.PersistenceUnitPostProcessor
Modifier and Type | Field and Description |
---|---|
static String |
KRAD_APPLICATION_PERSISTENCE_UNIT_NAME |
static String |
KRAD_SERVER_PERSISTENCE_UNIT_NAME |
Constructor and Description |
---|
RicePersistenceUnitPostProcessor() |
Modifier and Type | Method and Description |
---|---|
void |
addKRADManagedClassNames(org.springframework.orm.jpa.persistenceunit.MutablePersistenceUnitInfo mutablePersistenceUnitInfo)
Adds all the KNS Managed entities to the persistence unit - which is important, becuase all
persistence units get the KNS entities to manage
|
void |
addManagedClassNames(org.springframework.orm.jpa.persistenceunit.MutablePersistenceUnitInfo mutablePersistenceUnitInfo,
PersistableBusinessObjectClassExposer exposer)
Adds the class names listed by exposed by the given exposer into the persistence unit
|
void |
addRiceManagedClassNamesToKRADPersistenceUnit(org.springframework.orm.jpa.persistenceunit.MutablePersistenceUnitInfo mutablePersistenceUnitInfo) |
DataSource |
getJtaDataSource() |
void |
postProcessPersistenceUnitInfo(org.springframework.orm.jpa.persistenceunit.MutablePersistenceUnitInfo mutablePersistenceUnitInfo) |
void |
setJtaDataSource(DataSource jtaDataSource) |
public static final String KRAD_APPLICATION_PERSISTENCE_UNIT_NAME
public static final String KRAD_SERVER_PERSISTENCE_UNIT_NAME
public RicePersistenceUnitPostProcessor()
public void postProcessPersistenceUnitInfo(org.springframework.orm.jpa.persistenceunit.MutablePersistenceUnitInfo mutablePersistenceUnitInfo)
postProcessPersistenceUnitInfo
in interface org.springframework.orm.jpa.persistenceunit.PersistenceUnitPostProcessor
public void addKRADManagedClassNames(org.springframework.orm.jpa.persistenceunit.MutablePersistenceUnitInfo mutablePersistenceUnitInfo)
mutablePersistenceUnitInfo
- public void addManagedClassNames(org.springframework.orm.jpa.persistenceunit.MutablePersistenceUnitInfo mutablePersistenceUnitInfo, PersistableBusinessObjectClassExposer exposer)
mutablePersistenceUnitInfo
- the persistence unit to add managed JPA entity class names toexposer
- the exposer for class names to managepublic void addRiceManagedClassNamesToKRADPersistenceUnit(org.springframework.orm.jpa.persistenceunit.MutablePersistenceUnitInfo mutablePersistenceUnitInfo)
public DataSource getJtaDataSource()
public void setJtaDataSource(DataSource jtaDataSource)
Copyright © 2005-2015 The Kuali Foundation. All Rights Reserved.