|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jpox.metadata.MetaData
org.jpox.metadata.ExtendableMetaData
org.jpox.metadata.AbstractClassMetaData
org.jpox.metadata.InterfaceMetaData
public class InterfaceMetaData
Representation of the MetaData of a "persistent-interface".
<!ELEMENT interface (extension*, datastore-identity?, inheritance?, version?, join*, foreign-key*, index*,
unique*, property*, query*, fetch-group*, extension*)>
<!ATTLIST interface name CDATA #REQUIRED>
<!ATTLIST interface catalog CDATA #IMPLIED>
<!ATTLIST interface schema CDATA #IMPLIED>
<!ATTLIST interface table CDATA #IMPLIED>
<!ATTLIST interface identity-type (datastore|application|nondurable) #IMPLIED>
<!ATTLIST interface objectid-class CDATA #IMPLIED>
<!ATTLIST interface requires-extent (true|false) 'true'>
<!ATTLIST interface detachable (true|false) 'false'>
| Field Summary |
|---|
| Fields inherited from class org.jpox.metadata.ExtendableMetaData |
|---|
extensions, JPOX_VENDOR_NAME |
| Fields inherited from class org.jpox.metadata.MetaData |
|---|
LOCALISER, METADATA_CREATED_STATE, METADATA_INITIALISED_STATE, METADATA_POPULATED_STATE, METADATA_USED_STATE, metaDataState, parent |
| Constructor Summary | |
|---|---|
InterfaceMetaData(PackageMetaData parent,
java.lang.String name,
java.lang.String identityType,
java.lang.String objectidClass,
java.lang.String requiresExtent,
java.lang.String detachable,
java.lang.String embeddedOnly,
java.lang.String catalog,
java.lang.String schema,
java.lang.String table)
Constructor. |
|
| Method Summary | |
|---|---|
void |
initialise()
Method to initialise the object, creating internal convenience arrays. |
protected PropertyMetaData |
newDefaultedProperty(java.lang.String name)
Utility to add a defaulted PropertyMetaData to the class. |
void |
populate(ClassLoaderResolver clr)
Method to provide the details of the class being represented by this MetaData. |
protected void |
populatePropertyMetaData(ClassLoaderResolver clr,
java.lang.Class cls)
Populate PropertyMetaData |
java.lang.String |
toString()
Returns a string representation of the object. |
java.lang.String |
toString(java.lang.String prefix,
java.lang.String indent)
Returns a string representation of the object. |
| Methods inherited from class org.jpox.metadata.ExtendableMetaData |
|---|
addExtension, addExtension, getExtension, getExtensions, getNoOfExtensions, getValueForExtension, getValuesForExtension, getValuesForExtensionStartingWith, hasExtension, removeExtension |
| Methods inherited from class org.jpox.metadata.MetaData |
|---|
getParent, isCreated, isInitialised, isPopulated, isUsed, populate, setInitialised, setPopulated, setUsed |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public InterfaceMetaData(PackageMetaData parent,
java.lang.String name,
java.lang.String identityType,
java.lang.String objectidClass,
java.lang.String requiresExtent,
java.lang.String detachable,
java.lang.String embeddedOnly,
java.lang.String catalog,
java.lang.String schema,
java.lang.String table)
parent - The package to which this class belongsname - Name of classidentityType - Type of identityobjectidClass - Class of the object idrequiresExtent - Whether the class requires an extentdetachable - Whether this is detachableembeddedOnly - embedded-only tagcatalog - Name for catalogschema - Name for schematable - Name of the table where to persist objects of this type| Method Detail |
|---|
public void initialise()
initialise in class AbstractClassMetaDatapublic void populate(ClassLoaderResolver clr)
One possible use of this method would be to take a basic ClassMetaData for a class and call this, passing in the users class. This would then add AbstractPropertyMetaData for all fields in this class providing defaults for all of these.
populate in class AbstractClassMetaDataclr - ClassLoaderResolver to use in loading any classesprotected PropertyMetaData newDefaultedProperty(java.lang.String name)
newDefaultedProperty in class AbstractClassMetaDataname - name of field
protected void populatePropertyMetaData(ClassLoaderResolver clr,
java.lang.Class cls)
populatePropertyMetaData in class AbstractClassMetaDataclr - The ClassLoadercls - This class
InvalidMetaDataException - if the Class for a declared type in a field cannot be loaded by the clr
InvalidMetaDataException - if a field declared in the MetaData does not exist in the Classpublic java.lang.String toString()
toString in class ExtendableMetaData
public java.lang.String toString(java.lang.String prefix,
java.lang.String indent)
toString in class ExtendableMetaDataprefix - prefix stringindent - indent string
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||