org.datanucleus.metadata
Class InheritanceMetaData

java.lang.Object
  extended by org.datanucleus.metadata.MetaData
      extended by org.datanucleus.metadata.InheritanceMetaData
All Implemented Interfaces:
java.io.Serializable

public class InheritanceMetaData
extends MetaData

Representation of the Meta-Data defining inherited classes.

Since:
1.1
Version:
$Revision: 1.9 $
See Also:
Serialized Form

Field Summary
protected  DiscriminatorMetaData discriminatorMetaData
          DiscriminatorMetaData element.
protected  JoinMetaData joinMetaData
          JoinMetaData element.
protected  InheritanceStrategy strategy
          strategy tag value.
protected  java.lang.String strategyForTree
          Strategy to apply for the whole inheritance tree.
 
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
 
Constructor Summary
InheritanceMetaData(AbstractClassMetaData parent, java.lang.String strategy)
          Constructor.AbstractClassMetaData
 
Method Summary
 DiscriminatorMetaData getDiscriminatorMetaData()
          Accessor for the Discrimintor MetaData.
 JoinMetaData getJoinMetaData()
          Accessor for the Join MetaData.
 java.lang.String getStrategyForTree()
           
 InheritanceStrategy getStrategyValue()
          Accessor for the strategy tag value
 void initialise()
          Method to initialise the object, creating internal convenience arrays.
 void setDiscriminatorMetaData(DiscriminatorMetaData discriminatorMetaData)
          Mutator for the Discriminator MetaData.
 void setJoinMetaData(JoinMetaData joinMetaData)
          Mutator for the Join MetaData.
 void setStrategyForTree(java.lang.String strategy)
           
 java.lang.String toString(java.lang.String prefix, java.lang.String indent)
          Returns a string representation of the object using a prefix
 
Methods inherited from class org.datanucleus.metadata.MetaData
addExtension, addExtension, getExtensions, getNoOfExtensions, getParent, getValueForExtension, getValuesForExtension, hasExtension, isInitialised, isPopulated, isUsed, removeExtension, setInitialised, setParent, setPopulated, setUsed, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

strategy

protected InheritanceStrategy strategy
strategy tag value.


joinMetaData

protected JoinMetaData joinMetaData
JoinMetaData element.


discriminatorMetaData

protected DiscriminatorMetaData discriminatorMetaData
DiscriminatorMetaData element.


strategyForTree

protected java.lang.String strategyForTree
Strategy to apply for the whole inheritance tree. Optional, used by JPA.

Constructor Detail

InheritanceMetaData

public InheritanceMetaData(AbstractClassMetaData parent,
                           java.lang.String strategy)
Constructor.AbstractClassMetaData

Parameters:
parent - parent ClassMetaData instance
strategy - Inheritance strategy
Method Detail

initialise

public void initialise()
Method to initialise the object, creating internal convenience arrays. Initialises all sub-objects.

Overrides:
initialise in class MetaData

setStrategyForTree

public void setStrategyForTree(java.lang.String strategy)

getStrategyForTree

public java.lang.String getStrategyForTree()

getStrategyValue

public InheritanceStrategy getStrategyValue()
Accessor for the strategy tag value

Returns:
strategy tag value

getJoinMetaData

public JoinMetaData getJoinMetaData()
Accessor for the Join MetaData.

Returns:
Returns the joinMetaData.

setJoinMetaData

public void setJoinMetaData(JoinMetaData joinMetaData)
Mutator for the Join MetaData.

Parameters:
joinMetaData - The joinMetaData to set.

getDiscriminatorMetaData

public DiscriminatorMetaData getDiscriminatorMetaData()
Accessor for the Discrimintor MetaData.

Returns:
Returns the Discrimintor MetaData.

setDiscriminatorMetaData

public void setDiscriminatorMetaData(DiscriminatorMetaData discriminatorMetaData)
Mutator for the Discriminator MetaData.

Parameters:
discriminatorMetaData - The discriminatorMetaData to set.

toString

public java.lang.String toString(java.lang.String prefix,
                                 java.lang.String indent)
Returns a string representation of the object using a prefix

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


Copyright © 2009. All Rights Reserved.