public class PersistenceFileMetaData extends MetaData
Modifier and Type | Field and Description |
---|---|
protected String |
filename
Filename of the "persistence.xml"
|
protected Set<PersistenceUnitMetaData> |
persistenceUnits
Persistence units defined in this file.
|
EXTENSION_CLASS_MULTITENANCY_COLUMN_LENGTH, EXTENSION_CLASS_MULTITENANCY_COLUMN_NAME, EXTENSION_CLASS_MULTITENANCY_DISABLE, EXTENSION_CLASS_MULTITENANCY_JDBC_TYPE, EXTENSION_CLASS_READ_ONLY, EXTENSION_CLASS_SOFTDELETE, EXTENSION_CLASS_SOFTDELETE_COLUMN_NAME, EXTENSION_CLASS_VERSION_FIELD_NAME, EXTENSION_CLASS_VIEW_DEFINITION, EXTENSION_CLASS_VIEW_IMPORTS, EXTENSION_MEMBER_CACHEABLE, EXTENSION_MEMBER_CALENDAR_ONE_COLUMN, EXTENSION_MEMBER_CASCADE_DETACH, EXTENSION_MEMBER_CASCADE_PERSIST, EXTENSION_MEMBER_CASCADE_REFRESH, EXTENSION_MEMBER_CASCADE_UPDATE, EXTENSION_MEMBER_COMPARATOR_NAME, EXTENSION_MEMBER_CONTAINER_ALLOW_NULLS, EXTENSION_MEMBER_ENUM_GETTER_BY_VALUE, EXTENSION_MEMBER_ENUM_VALUE_GETTER, EXTENSION_MEMBER_FETCH_FK_ONLY, EXTENSION_MEMBER_IMPLEMENTATION_CLASSES, EXTENSION_MEMBER_INSERTABLE, EXTENSION_MEMBER_KEY_IMPLEMENTATION_CLASSES, EXTENSION_MEMBER_LIST_ORDERING, EXTENSION_MEMBER_RELATION_DISCRIM_COLUMN, EXTENSION_MEMBER_RELATION_DISCRIM_PK, EXTENSION_MEMBER_RELATION_DISCRIM_VALUE, EXTENSION_MEMBER_STRATEGY_WHEN_NOTNULL, EXTENSION_MEMBER_TYPE_CONVERTER_DISABLED, EXTENSION_MEMBER_TYPE_CONVERTER_NAME, EXTENSION_MEMBER_UPDATEABLE, EXTENSION_MEMBER_VALUE_IMPLEMENTATION_CLASSES, EXTENSION_VERSION_NUMBER_INITIAL_VALUE, extensions, METADATA_CREATED_STATE, METADATA_INITIALISED_STATE, METADATA_POPULATED_STATE, METADATA_USED_STATE, metaDataState, parent, VENDOR_NAME
Constructor and Description |
---|
PersistenceFileMetaData(String filename)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addPersistenceUnit(PersistenceUnitMetaData pumd)
Method to add a persistence unit
|
String |
getFilename()
Accessor for the filename
|
int |
getNoOfPersistenceUnits()
Accessor for the number of persistence units.
|
PersistenceUnitMetaData |
getPersistenceUnit(String name)
Accessor for the Meta-Data of a persistence unit with a given name.
|
PersistenceUnitMetaData[] |
getPersistenceUnits()
Accessor for the persistence units in this "persistence.xml" file.
|
void |
setFilename(String filename)
Mutator for the filename for this MetaData file.
|
String |
toString(String indent)
Returns a string representation of the object.
|
addExtension, addExtensions, getExtensions, getMetaDataManager, getNoOfExtensions, getParent, getValueForExtension, getValuesForExtension, hasExtension, initialise, isInitialised, isPopulated, isUsed, removeExtension, setExtensions, setParent
protected String filename
protected Set<PersistenceUnitMetaData> persistenceUnits
public PersistenceFileMetaData(String filename)
filename
- The file where this is stored (or null).public String getFilename()
public int getNoOfPersistenceUnits()
public PersistenceUnitMetaData getPersistenceUnit(String name)
name
- Name of the persistence unitpublic PersistenceUnitMetaData[] getPersistenceUnits()
public void setFilename(String filename)
filename
- The filename of this MetaData file.public void addPersistenceUnit(PersistenceUnitMetaData pumd)
pumd
- The PersistenceUnitMetaData to add.Copyright © 2019. All rights reserved.