public class PersistenceUnitsInApplication extends Object
| Modifier and Type | Field and Description |
|---|---|
static org.jboss.as.server.deployment.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 org.jboss.as.server.deployment.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 © 2019 JBoss by Red Hat. All rights reserved.