org.kuali.rice.krad.app.persistence.jpa
Class RicePersistenceUnitPostProcessor

java.lang.Object
  extended by org.kuali.rice.krad.app.persistence.jpa.RicePersistenceUnitPostProcessor
All Implemented Interfaces:
org.springframework.orm.jpa.persistenceunit.PersistenceUnitPostProcessor

public class RicePersistenceUnitPostProcessor
extends Object
implements org.springframework.orm.jpa.persistenceunit.PersistenceUnitPostProcessor


Field Summary
static String KRAD_APPLICATION_PERSISTENCE_UNIT_NAME
           
static String KRAD_SERVER_PERSISTENCE_UNIT_NAME
           
 
Constructor Summary
RicePersistenceUnitPostProcessor()
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

KRAD_APPLICATION_PERSISTENCE_UNIT_NAME

public static final String KRAD_APPLICATION_PERSISTENCE_UNIT_NAME
See Also:
Constant Field Values

KRAD_SERVER_PERSISTENCE_UNIT_NAME

public static final String KRAD_SERVER_PERSISTENCE_UNIT_NAME
See Also:
Constant Field Values
Constructor Detail

RicePersistenceUnitPostProcessor

public RicePersistenceUnitPostProcessor()
Method Detail

postProcessPersistenceUnitInfo

public void postProcessPersistenceUnitInfo(org.springframework.orm.jpa.persistenceunit.MutablePersistenceUnitInfo mutablePersistenceUnitInfo)
Specified by:
postProcessPersistenceUnitInfo in interface org.springframework.orm.jpa.persistenceunit.PersistenceUnitPostProcessor

addKRADManagedClassNames

public 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

Parameters:
mutablePersistenceUnitInfo -

addManagedClassNames

public 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

Parameters:
mutablePersistenceUnitInfo - the persistence unit to add managed JPA entity class names to
exposer - the exposer for class names to manage

addRiceManagedClassNamesToKRADPersistenceUnit

public void addRiceManagedClassNamesToKRADPersistenceUnit(org.springframework.orm.jpa.persistenceunit.MutablePersistenceUnitInfo mutablePersistenceUnitInfo)

getJtaDataSource

public DataSource getJtaDataSource()

setJtaDataSource

public void setJtaDataSource(DataSource jtaDataSource)


Copyright © 2005-2013 The Kuali Foundation. All Rights Reserved.