Class PersistenceUnitsInApplication


  • public class PersistenceUnitsInApplication
    extends Object
    Count and collection of the persistence units deployed with the application
    Author:
    Scott Marlow
    • Field Detail

      • PERSISTENCE_UNITS_IN_APPLICATION

        public static final org.jboss.as.server.deployment.AttachmentKey<PersistenceUnitsInApplication> PERSISTENCE_UNITS_IN_APPLICATION
    • Constructor Detail

      • PersistenceUnitsInApplication

        public PersistenceUnitsInApplication()
    • Method Detail

      • getCount

        public int getCount()
        Gets the number of persistence units deployed with the applicatino
        Returns:
      • increment

        public void increment​(int incrementValue)
        Increment the count of persistence units in application
        Parameters:
        incrementValue -
      • addPersistenceUnitHolder

        public void addPersistenceUnitHolder​(PersistenceUnitMetadataHolder persistenceUnitMetadataHolder)
        Track the passed Persistence units for the application
        Parameters:
        persistenceUnitMetadataHolder -