Class PersistenceUnitsInApplication

java.lang.Object
org.jboss.as.jpa.config.PersistenceUnitsInApplication

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

    • PERSISTENCE_UNITS_IN_APPLICATION

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

    • PersistenceUnitsInApplication

      public PersistenceUnitsInApplication()
  • Method Details

    • 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 -
    • getPersistenceUnitHolders

      public List<PersistenceUnitMetadataHolder> getPersistenceUnitHolders()