|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.datanucleus.metadata.MetaData
org.datanucleus.metadata.PackageMetaData
public class PackageMetaData
Representation of the Meta-Data for a package.
| Field Summary | |
|---|---|
protected java.lang.String |
catalog
Catalog name for all classes in this package |
protected java.util.List<ClassMetaData> |
classes
List of classes (uses List to retain positioning). |
protected java.util.List<InterfaceMetaData> |
interfaces
List of interfaces (uses List to retain positioning). |
protected java.lang.String |
name
Package name |
protected java.lang.String |
schema
Schema name for all classes in this package |
protected java.util.Collection<SequenceMetaData> |
sequences
Sequence generators. |
protected java.util.Collection<TableGeneratorMetaData> |
tableGenerators
Table generators. |
| Fields inherited from class org.datanucleus.metadata.MetaData |
|---|
extensions, LOCALISER, METADATA_CREATED_STATE, METADATA_INITIALISED_STATE, METADATA_POPULATED_STATE, METADATA_USED_STATE, metaDataState, parent, VENDOR_NAME, VENDOR_NAME_OLD |
| Method Summary | |
|---|---|
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. |
java.lang.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(java.lang.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(java.lang.String name)
Accessor for the Meta-Data of an interface with the specified name. |
java.lang.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. |
java.lang.String |
getSchema()
Accessor for the schema name for all classes in this package |
SequenceMetaData |
getSequence(java.lang.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(java.lang.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,
MetaDataManager mmgr)
|
ClassMetaData |
newClassMetadata(java.lang.String className)
Method to create a new class metadata, add it, and return it. |
InterfaceMetaData |
newInterfaceMetadata(java.lang.String intfName)
Method to create a new interface metadata, add it, and return it. |
SequenceMetaData |
newSequenceMetadata(java.lang.String seqName,
java.lang.String seqStrategy)
Method to create a new Sequence metadata, add it, and return it. |
TableGeneratorMetaData |
newTableGeneratorMetadata(java.lang.String name)
Method to create a new TableGenerator metadata, add it and return it. |
PackageMetaData |
setCatalog(java.lang.String catalog)
|
PackageMetaData |
setSchema(java.lang.String schema)
|
java.lang.String |
toString(java.lang.String prefix,
java.lang.String indent)
Returns a string representation of the object. |
| Methods inherited from class org.datanucleus.metadata.MetaData |
|---|
addExtension, addExtension, assertIfInitialised, getExtensions, getNoOfExtensions, getParent, getValueForExtension, getValuesForExtension, hasExtension, isInitialised, isPopulated, isUsed, newExtensionMetaData, removeExtension, setParent, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected java.util.List<InterfaceMetaData> interfaces
protected java.util.List<ClassMetaData> classes
protected java.util.Collection<SequenceMetaData> sequences
protected java.util.Collection<TableGeneratorMetaData> tableGenerators
protected final java.lang.String name
protected java.lang.String catalog
protected java.lang.String schema
| Method Detail |
|---|
public void initialise(ClassLoaderResolver clr,
MetaDataManager mmgr)
initialise in class MetaDatapublic FileMetaData getFileMetaData()
public java.lang.String getName()
public java.lang.String getCatalog()
public java.lang.String getSchema()
public int getNoOfInterfaces()
public InterfaceMetaData getInterface(int i)
i - interface index
public InterfaceMetaData getInterface(java.lang.String name)
name - the name of the interface
public int getNoOfClasses()
public ClassMetaData getClass(int i)
i - class index
public ClassMetaData getClass(java.lang.String name)
name - the name of the class
public int getNoOfSequences()
public SequenceMetaData[] getSequences()
public SequenceMetaData getSequence(java.lang.String name)
name - the name of the sequence
public int getNoOfTableGenerators()
public TableGeneratorMetaData[] getTableGenerators()
public TableGeneratorMetaData getTableGenerator(java.lang.String name)
name - the name of the table generator
public ClassMetaData addClass(ClassMetaData cmd)
cmd - Meta-Data for the class
public ClassMetaData newClassMetadata(java.lang.String className)
className - Name of the class (in this package)
public InterfaceMetaData addInterface(InterfaceMetaData imd)
imd - Meta-Data for the interface
public InterfaceMetaData newInterfaceMetadata(java.lang.String intfName)
intfName - Name of the interface (in this package)
public void addSequence(SequenceMetaData seqmd)
seqmd - Meta-Data for the sequence
public SequenceMetaData newSequenceMetadata(java.lang.String seqName,
java.lang.String seqStrategy)
seqName - Name of the sequenceseqStrategy - Strategy for the sequence
public TableGeneratorMetaData newTableGeneratorMetadata(java.lang.String name)
name - Name of the table generator
public PackageMetaData setCatalog(java.lang.String catalog)
public PackageMetaData setSchema(java.lang.String schema)
public java.lang.String toString(java.lang.String prefix,
java.lang.String indent)
toString in class MetaDataprefix - prefix stringindent - indent string
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||