public class PersistenceUnitsInApplication extends Object
Modifier and Type | Field and Description |
---|---|
static AttachmentKey<PersistenceUnitsInApplication> |
PERSISTENCE_UNITS_IN_APPLICATION |
Constructor and Description |
---|
PersistenceUnitsInApplication() |
Modifier and Type | Method and Description |
---|---|
void |
addPersistenceUnitHolder(PersistenceUnitMetadataHolder persistenceUnitMetadataHolder)
Track the passed Persistence units for the application
|
int |
getCount()
Gets the number of persistence units deployed with the applicatino
|
List<PersistenceUnitMetadataHolder> |
getPersistenceUnitHolders() |
void |
increment(int incrementValue)
Increment the count of persistence units in application
|
public static final AttachmentKey<PersistenceUnitsInApplication> PERSISTENCE_UNITS_IN_APPLICATION
public int getCount()
public void increment(int incrementValue)
incrementValue
- public void addPersistenceUnitHolder(PersistenceUnitMetadataHolder persistenceUnitMetadataHolder)
persistenceUnitMetadataHolder
- public List<PersistenceUnitMetadataHolder> getPersistenceUnitHolders()
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.