public class PackageMetaData extends MetaData
Modifier and Type | Field and Description |
---|---|
protected String |
catalog
Catalog name for all classes in this package
|
protected List<ClassMetaData> |
classes
List of classes (uses List to retain positioning).
|
protected List<InterfaceMetaData> |
interfaces
List of interfaces (uses List to retain positioning).
|
protected String |
name
Package name
|
protected String |
schema
Schema name for all classes in this package
|
protected Collection<SequenceMetaData> |
sequences
Sequence generators.
|
protected Collection<TableGeneratorMetaData> |
tableGenerators
Table generators.
|
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
Modifier and Type | Method and Description |
---|---|
ClassMetaData |
addClass(ClassMetaData cmd)
Method to add a class Meta-Data to the package.
|
InterfaceMetaData |
addInterface(InterfaceMetaData imd)
Method to add a interface Meta-Data to the package.
|
void |
addSequence(SequenceMetaData seqmd)
Method to add a sequence Meta-Data to the package.
|
void |
addTableGenerator(TableGeneratorMetaData tabmd)
Method to add a TableGenerator Meta-Data to the package.
|
String |
getCatalog()
Accessor for the catalog name for all classes in this package
|
ClassMetaData |
getClass(int i)
Accessor for the Meta-Data of a class in this package.
|
ClassMetaData |
getClass(String name)
Accessor for the Meta-Data of a class with the specified name.
|
FileMetaData |
getFileMetaData()
Accessor for the parent FileMetaData.
|
InterfaceMetaData |
getInterface(int i)
Accessor for the Meta-Data of a interface in this package.
|
InterfaceMetaData |
getInterface(String name)
Accessor for the Meta-Data of an interface with the specified name.
|
String |
getName()
Accessor for the name of the package
|
int |
getNoOfClasses()
Accessor for the number of classes.
|
int |
getNoOfInterfaces()
Accessor for the number of interfaces.
|
int |
getNoOfSequences()
Accessor for the number of sequences.
|
int |
getNoOfTableGenerators()
Accessor for the number of table generators.
|
String |
getSchema()
Accessor for the schema name for all classes in this package
|
SequenceMetaData |
getSequence(String name)
Accessor for the Meta-Data of an sequence with the specified name.
|
SequenceMetaData[] |
getSequences()
Accessor for the Meta-Data for the sequences in this package.
|
TableGeneratorMetaData |
getTableGenerator(String name)
Accessor for the Meta-Data of a table generator with the specified name.
|
TableGeneratorMetaData[] |
getTableGenerators()
Accessor for the Meta-Data for the table generators in this package.
|
void |
initialise(ClassLoaderResolver clr) |
ClassMetaData |
newClassMetadata(String className)
Method to create a new class metadata, add it, and return it.
|
InterfaceMetaData |
newInterfaceMetadata(String intfName)
Method to create a new interface metadata, add it, and return it.
|
SequenceMetaData |
newSequenceMetadata(String seqName,
String seqStrategy)
Method to create a new Sequence metadata, add it, and return it.
|
TableGeneratorMetaData |
newTableGeneratorMetadata(String name)
Method to create a new TableGenerator metadata, add it and return it.
|
void |
removeClass(AbstractClassMetaData cmd)
Method to remove a class from this metadata definition.
|
PackageMetaData |
setCatalog(String catalog) |
PackageMetaData |
setSchema(String schema) |
addExtension, addExtensions, getExtensions, getMetaDataManager, getNoOfExtensions, getParent, getValueForExtension, getValuesForExtension, hasExtension, isInitialised, isPopulated, isUsed, removeExtension, setExtensions, setParent
protected List<InterfaceMetaData> interfaces
protected List<ClassMetaData> classes
protected Collection<SequenceMetaData> sequences
protected Collection<TableGeneratorMetaData> tableGenerators
protected final String name
protected String catalog
protected String schema
public void initialise(ClassLoaderResolver clr)
initialise
in class MetaData
public FileMetaData getFileMetaData()
public String getName()
public String getCatalog()
public String getSchema()
public int getNoOfInterfaces()
public InterfaceMetaData getInterface(int i)
i
- interface indexpublic InterfaceMetaData getInterface(String name)
name
- the name of the interfacepublic int getNoOfClasses()
public ClassMetaData getClass(int i)
i
- class indexpublic ClassMetaData getClass(String name)
name
- the name of the classpublic int getNoOfSequences()
public SequenceMetaData[] getSequences()
public SequenceMetaData getSequence(String name)
name
- the name of the sequencepublic int getNoOfTableGenerators()
public TableGeneratorMetaData[] getTableGenerators()
public TableGeneratorMetaData getTableGenerator(String name)
name
- the name of the table generatorpublic ClassMetaData addClass(ClassMetaData cmd)
cmd
- Meta-Data for the classpublic void removeClass(AbstractClassMetaData cmd)
cmd
- Metadata for the class to removepublic ClassMetaData newClassMetadata(String className)
className
- Name of the class (in this package)public InterfaceMetaData addInterface(InterfaceMetaData imd)
imd
- Meta-Data for the interfacepublic InterfaceMetaData newInterfaceMetadata(String intfName)
intfName
- Name of the interface (in this package)public void addSequence(SequenceMetaData seqmd)
seqmd
- Meta-Data for the sequencepublic SequenceMetaData newSequenceMetadata(String seqName, String seqStrategy)
seqName
- Name of the sequenceseqStrategy
- Strategy for the sequencepublic void addTableGenerator(TableGeneratorMetaData tabmd)
tabmd
- Meta-Data for the TableGeneratorpublic TableGeneratorMetaData newTableGeneratorMetadata(String name)
name
- Name of the table generatorpublic PackageMetaData setCatalog(String catalog)
public PackageMetaData setSchema(String schema)
Copyright © 2019. All rights reserved.