|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PackageMetadata
Represents a package within a JDOMetadata.
Method Summary | |
---|---|
java.lang.String |
getCatalog()
Accessor for the catalog (ORM) that all classes in this package default to. |
ClassMetadata[] |
getClasses()
Accessor for all classes defined in this package. |
InterfaceMetadata[] |
getInterfaces()
Accessor for all interfaces defined in this package. |
java.lang.String |
getName()
Accessor for the name of this package (set on construction). |
int |
getNumberOfClasses()
Accessor for the number of classes defined in this package. |
int |
getNumberOfInterfaces()
Accessor for the number of interfaces defined in this package. |
int |
getNumberOfSequences()
Accessor for the number of sequences defined for this package. |
java.lang.String |
getSchema()
Accessor for the schema (ORM) that all classes in this package default to. |
SequenceMetadata[] |
getSequences()
Accessor for any sequences defined on the package. |
ClassMetadata |
newClassMetadata(java.lang.Class cls)
Add a new class to this package. |
ClassMetadata |
newClassMetadata(java.lang.String name)
Add a new class to this package. |
InterfaceMetadata |
newInterfaceMetadata(java.lang.Class cls)
Add a new interface to this package. |
InterfaceMetadata |
newInterfaceMetadata(java.lang.String name)
Add a new interface to this package. |
SequenceMetadata |
newSequenceMetadata(java.lang.String name,
SequenceStrategy strategy)
Add a new sequence to this package. |
PackageMetadata |
setCatalog(java.lang.String catalog)
Method to set the catalog (ORM) to apply to all classes in this package. |
PackageMetadata |
setSchema(java.lang.String schema)
Method to set the schema (ORM) to apply to all classes in this package. |
Methods inherited from interface javax.jdo.metadata.Metadata |
---|
getExtensions, getNumberOfExtensions, getParent, newExtensionMetadata |
Method Detail |
---|
java.lang.String getName()
PackageMetadata setCatalog(java.lang.String catalog)
catalog
- Catalog namejava.lang.String getCatalog()
PackageMetadata setSchema(java.lang.String schema)
schema
- Schema namejava.lang.String getSchema()
ClassMetadata[] getClasses()
ClassMetadata newClassMetadata(java.lang.String name)
name
- Name of the class
ClassMetadata newClassMetadata(java.lang.Class cls)
cls
- The class
int getNumberOfClasses()
InterfaceMetadata[] getInterfaces()
InterfaceMetadata newInterfaceMetadata(java.lang.String name)
name
- The interface name
InterfaceMetadata newInterfaceMetadata(java.lang.Class cls)
cls
- The class
int getNumberOfInterfaces()
SequenceMetadata[] getSequences()
SequenceMetadata newSequenceMetadata(java.lang.String name, SequenceStrategy strategy)
name
- Name of the sequencestrategy
- Strategy for the sequence
int getNumberOfSequences()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |