Package org.jboss.as.jpa.config
Class PersistenceUnitsInApplication
java.lang.Object
org.jboss.as.jpa.config.PersistenceUnitsInApplication
Count and collection of the persistence units deployed with the application
- Author:
- Scott Marlow
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.jboss.as.server.deployment.AttachmentKey<PersistenceUnitsInApplication> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPersistenceUnitHolder(PersistenceUnitMetadataHolder persistenceUnitMetadataHolder) Track the passed Persistence units for the applicationintgetCount()Gets the number of persistence units deployed with the applicatinovoidincrement(int incrementValue) Increment the count of persistence units in application
-
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
Track the passed Persistence units for the application- Parameters:
persistenceUnitMetadataHolder-
-
getPersistenceUnitHolders
-