Package org.jboss.as.jpa.config
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 Summary
Fields Modifier and Type Field Description static org.jboss.as.server.deployment.AttachmentKey<PersistenceUnitsInApplication>PERSISTENCE_UNITS_IN_APPLICATION
-
Constructor Summary
Constructors Constructor Description PersistenceUnitsInApplication()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddPersistenceUnitHolder(PersistenceUnitMetadataHolder persistenceUnitMetadataHolder)Track the passed Persistence units for the applicationintgetCount()Gets the number of persistence units deployed with the applicatinoList<PersistenceUnitMetadataHolder>getPersistenceUnitHolders()voidincrement(int incrementValue)Increment the count of persistence units in application
-
-
-
Field Detail
-
PERSISTENCE_UNITS_IN_APPLICATION
public static final org.jboss.as.server.deployment.AttachmentKey<PersistenceUnitsInApplication> PERSISTENCE_UNITS_IN_APPLICATION
-
-
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-
-
getPersistenceUnitHolders
public List<PersistenceUnitMetadataHolder> getPersistenceUnitHolders()
-
-