org.jpox.metadata
Class ImplementsMetaData

java.lang.Object
  extended byorg.jpox.metadata.MetaData
      extended byorg.jpox.metadata.ExtendableMetaData
          extended byorg.jpox.metadata.ImplementsMetaData
All Implemented Interfaces:
java.io.Serializable

public class ImplementsMetaData
extends ExtendableMetaData

The implements element declares a persistence-capable interface implemented by the persistence-capable class that contains this element. An extent of persistence-capable classes that implement this interface is managed by the JDO implementation. The extent can be used for queries or for iteration just like an extent of persistence-capable instances. The attribute name is required, and is the name of the interface. The java class naming rules apply: if the interface name is unqualified, the package is the name of the enclosing package.

MetaData Element

The MetaData Element represented here is as follows
 
 
 

Version:
$Revision: 1.8 $
See Also:
Serialized Form

Field Summary
protected  java.lang.String name
          Name of the interface implemented.
protected  java.util.List properties
          Properties implemented.
 
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
ImplementsMetaData(ClassMetaData parent, java.lang.String name)
          Constructor.
 
Method Summary
 void addProperty(PropertyMetaData pmd)
          Method to add a property to this interface.
 java.lang.String getName()
          Accessor for name.
 void populate(ClassLoaderResolver clr)
          Method to populate the details of the implements
 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, initialise, 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
 

Field Detail

name

protected java.lang.String name
Name of the interface implemented.


properties

protected final java.util.List properties
Properties implemented.

Constructor Detail

ImplementsMetaData

public ImplementsMetaData(ClassMetaData parent,
                          java.lang.String name)
Constructor.

Parameters:
parent - Parent class
name - Name of the interface being implemented
Method Detail

getName

public java.lang.String getName()
Accessor for name.

Returns:
Returns the name.

addProperty

public void addProperty(PropertyMetaData pmd)
Method to add a property to this interface.

Parameters:
pmd - Property

populate

public void populate(ClassLoaderResolver clr)
Method to populate the details of the implements

Parameters:
clr - ClassLoaderResolver to use in loading any classes

toString

public java.lang.String toString()
Returns a string representation of the object.

Overrides:
toString in class ExtendableMetaData
Returns:
a string representation of the object.

toString

public java.lang.String toString(java.lang.String prefix,
                                 java.lang.String indent)
Returns a string representation of the object. This can be used as part of a facility to output a MetaData file.

Overrides:
toString in class ExtendableMetaData
Parameters:
prefix - prefix string
indent - indent string
Returns:
a string representation of the object.


Copyright © -2007 . All Rights Reserved.