All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class org.xmlmiddleware.xmldbms.maps.PropertyTableMap

java.lang.Object
   |
   +----org.xmlmiddleware.xmldbms.maps.MapBase
           |
           +----org.xmlmiddleware.xmldbms.maps.PropertyMapBase
                   |
                   +----org.xmlmiddleware.xmldbms.maps.PropertyTableMap

public class PropertyTableMap
extends PropertyMapBase
Maps a column in a property table to an element type, attribute, or PCDATA; not for general use.

PropertyTableMap inherits from PropertyMapBase. See that class for methods to get the column and to get and set the element type name, order information, and attribute multi-valuedness.

PropertyTableMaps are stored in ClassTableMaps.

Version:
2.0
Author:
Ronald Bourret, 2001

Method Index

 o create(Table)
Create a new PropertyTableMap.
 o getElementInsertionList()
Get the list of inserted wrapper elements, if any.
 o getLinkInfo()
Get the information used to link the class table and the property table.
 o getTable()
Get the property table.
 o setColumn(Column)
Set the column to which the property is mapped.
 o setElementInsertionList(ElementInsertionList)
Set the list of inserted wrapper elements, if any.
 o setLinkInfo(LinkInfo)
Set the information used to link the class table and the property table.
 o setXMLName(String, String, int)
Set the name and type of the XML construct being mapped.
 o setXMLName(XMLName, int)
Set the name and type of the XML construct being mapped.

Methods

 o create
 public static PropertyTableMap create(Table table)
Create a new PropertyTableMap.

Parameters:
table - The table being mapped.
Returns:
The PropertyTableMap.
 o setXMLName
 public void setXMLName(String uri,
                        String localName,
                        int type)
Set the name and type of the XML construct being mapped.

Parameters:
uri - Namespace URI of the XML construct to which the column is mapped. May be null for element types or attributes. Must be null for PCDATA.
localName - Local name of the XML construct to which the column mapped. Must be null for PCDATA.
type - Type of the XML construct to which the column mapped. One of ColumnMap.ELEMENTTYPE, ColumnMap.ATTRIBUTE, or ColumnMap.PCDATA.
Overrides:
setXMLName in class PropertyMapBase
 o setXMLName
 public void setXMLName(XMLName xmlName,
                        int type)
Set the name and type of the XML construct being mapped.

Parameters:
xmlName - XMLName of the XML construct to which the column is mapped. Must be null for PCDATA.
type - Type of the XML construct to which the column mapped. One of ColumnMap.ELEMENTTYPE, ColumnMap.ATTRIBUTE, or ColumnMap.PCDATA.
Overrides:
setXMLName in class PropertyMapBase
 o getTable
 public final Table getTable()
Get the property table.

Returns:
The column.
 o setColumn
 public void setColumn(Column column)
Set the column to which the property is mapped.

Parameters:
column - The column.
Overrides:
setColumn in class PropertyMapBase
 o getLinkInfo
 public final LinkInfo getLinkInfo()
Get the information used to link the class table and the property table.

Returns:
The LinkInfo.
 o setLinkInfo
 public void setLinkInfo(LinkInfo linkInfo)
Set the information used to link the class table and the property table.

Parameters:
linkInfo - The LinkInfo.
 o getElementInsertionList
 public ElementInsertionList getElementInsertionList()
Get the list of inserted wrapper elements, if any.

If this table is mapped to an element or PCDATA, the element or PCDATA is constructed as a child of the last element in the list. If this table is mapped to an attribute, the attribute is constructed on the last element in the list.

Returns:
The ElementInsertionList. May be null.
 o setElementInsertionList
 public void setElementInsertionList(ElementInsertionList elementInsertionList)
Set the list of inserted wrapper elements, if any.

Parameters:
elementInsertionList - The ElementInsertionList. May be null.

All Packages  Class Hierarchy  This Package  Previous  Next  Index