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
-
create(Table)
- Create a new PropertyTableMap.
-
getElementInsertionList()
- Get the list of inserted wrapper elements, if any.
-
getLinkInfo()
- Get the information used to link the class table and the property table.
-
getTable()
- Get the property table.
-
setColumn(Column)
- Set the column to which the property is mapped.
-
setElementInsertionList(ElementInsertionList)
- Set the list of inserted wrapper elements, if any.
-
setLinkInfo(LinkInfo)
- Set the information used to link the class table and the property table.
-
setXMLName(String, String, int)
- Set the name and type of the XML construct being mapped.
-
setXMLName(XMLName, int)
- Set the name and type of the XML construct being mapped.
create
public static PropertyTableMap create(Table table)
- Create a new PropertyTableMap.
- Parameters:
- table - The table being mapped.
- Returns:
- The PropertyTableMap.
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
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
getTable
public final Table getTable()
- Get the property table.
- Returns:
- The column.
setColumn
public void setColumn(Column column)
- Set the column to which the property is mapped.
- Parameters:
- column - The column.
- Overrides:
- setColumn in class PropertyMapBase
getLinkInfo
public final LinkInfo getLinkInfo()
- Get the information used to link the class table and the property table.
- Returns:
- The LinkInfo.
setLinkInfo
public void setLinkInfo(LinkInfo linkInfo)
- Set the information used to link the class table and the property table.
- Parameters:
- linkInfo - The LinkInfo.
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.
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