| Modifier and Type | Method and Description |
|---|---|
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.
|
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.
|
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(Class cls)
Add a new class to this package.
|
ClassMetadata |
newClassMetadata(String name)
Add a new class to this package.
|
InterfaceMetadata |
newInterfaceMetadata(Class cls)
Add a new interface to this package.
|
InterfaceMetadata |
newInterfaceMetadata(String name)
Add a new interface to this package.
|
SequenceMetadata |
newSequenceMetadata(String name,
SequenceStrategy strategy)
Add a new sequence to this package.
|
PackageMetadata |
setCatalog(String catalog)
Method to set the catalog (ORM) to apply to all classes in this package.
|
PackageMetadata |
setSchema(String schema)
Method to set the schema (ORM) to apply to all classes in this package.
|
getExtensions, getNumberOfExtensions, getParent, newExtensionMetadataString getName()
PackageMetadata setCatalog(String catalog)
catalog - Catalog nameString getCatalog()
PackageMetadata setSchema(String schema)
schema - Schema nameString getSchema()
ClassMetadata[] getClasses()
ClassMetadata newClassMetadata(String name)
name - Name of the classClassMetadata newClassMetadata(Class cls)
cls - The classint getNumberOfClasses()
InterfaceMetadata[] getInterfaces()
InterfaceMetadata newInterfaceMetadata(String name)
name - The interface nameInterfaceMetadata newInterfaceMetadata(Class cls)
cls - The classint getNumberOfInterfaces()
SequenceMetadata[] getSequences()
SequenceMetadata newSequenceMetadata(String name, SequenceStrategy strategy)
name - Name of the sequencestrategy - Strategy for the sequenceint getNumberOfSequences()
Copyright © 2005–2015 Apache Software Foundation. All rights reserved.