FileDocCategorySizeDatePackage
XMLPrimaryKeyJoinColumn.javaAPI DocGlassfish v2 API3522Tue May 22 16:54:30 BST 2007oracle.toplink.essentials.internal.ejb.cmp3.xml.columns

XMLPrimaryKeyJoinColumn

public class XMLPrimaryKeyJoinColumn extends MetadataPrimaryKeyJoinColumn
Object to hold onto XML primary key join column metadata in TopLink database fields.
author
Guy Pelletier
since
TopLink EJB 3.0 Reference Implementation

Fields Summary
Constructors Summary
public XMLPrimaryKeyJoinColumn(String sourceTableName, String targetTableName)
INTERNAL:

        super(sourceTableName, targetTableName);
    
public XMLPrimaryKeyJoinColumn(Node node, XMLHelper helper, String sourceTableName, String targetTableName)
INTERNAL:

        super(sourceTableName, targetTableName);

        if (node != null) {
            // Process the primary key field metadata.
            m_pkField.setName(helper.getNodeValue(node, XMLConstants.ATT_REFERENCED_COLUMN_NAME, DEFAULT_REFERENCED_COLUMN_NAME));
        
            // Process the foreign key field metadata.
            m_fkField.setName(helper.getNodeValue(node, XMLConstants.ATT_NAME, DEFAULT_NAME));
            m_fkField.setColumnDefinition(helper.getNodeValue(node, XMLConstants.ATT_COLUMN_DEFINITION, DEFAULT_COLUMN_DEFINITION));
        }
    
Methods Summary
public booleanloadedFromXML()
INTERNAL:

        return true;