All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----org.xmlmiddleware.xmldbms.maps.MapBase | +----org.xmlmiddleware.xmldbms.maps.RelatedMapBase | +----org.xmlmiddleware.xmldbms.maps.RelatedClassMap
RelatedClassMaps are similar to PropertyMaps and InlineClassMaps in that all map references to child element types. A RelatedClassMap contains a pointer to the ClassMap of the child element type, as well as the information needed to join the tables of each class and order the child class in the parent.
RelatedClassMap inherits from RelatedMapBase. See RelatedMapBase for methods to get and set the element type and the link and order information.
The element type name in a RelatedClassMap can be different from the element type name in the ClassMap it points to. This allows references to a given element type to be mapped differently, depending on their parent element type.
RelatedClassMaps are stored in ClassMaps and InlineClassMaps.
public static RelatedClassMap create(String uri, String localName)
public static RelatedClassMap create(XMLName elementTypeName)
public final ClassMap getClassMap()
If the ClassMap for the element type uses another ClassMap (which might use yet another ClassMap, and so on), this method returns the last ClassMap in the chain. This is the ClassMap actually used to transfer data.
public void setClassMap(ClassMap classMap)
Generally, this will be the ClassMap of the element type used to create the RelatedClassMap. However, it can be the ClassMap of a different element type. This effectively "casts" the reference to the first element type as a reference to the second element type. For more information, see the description of the <UseClassMap> element type in the XML-DBMS mapping language.
All Packages Class Hierarchy This Package Previous Next Index