1 21 package oracle.toplink.essentials.internal.ejb.cmp3.xml.columns; 23 24 import org.w3c.dom.Node ; 25 26 import oracle.toplink.essentials.internal.ejb.cmp3.xml.XMLHelper; 27 import oracle.toplink.essentials.internal.ejb.cmp3.xml.XMLConstants; 28 29 import oracle.toplink.essentials.internal.ejb.cmp3.metadata.columns.MetadataPrimaryKeyJoinColumn; 30 31 38 public class XMLPrimaryKeyJoinColumn extends MetadataPrimaryKeyJoinColumn { 39 42 public XMLPrimaryKeyJoinColumn(String sourceTableName, String targetTableName) { 43 super(sourceTableName, targetTableName); 44 } 45 46 49 public XMLPrimaryKeyJoinColumn(Node node, XMLHelper helper, String sourceTableName, String targetTableName) { 50 super(sourceTableName, targetTableName); 51 52 if (node != null) { 53 m_pkField.setName(helper.getNodeValue(node, XMLConstants.ATT_REFERENCED_COLUMN_NAME, DEFAULT_REFERENCED_COLUMN_NAME)); 55 56 m_fkField.setName(helper.getNodeValue(node, XMLConstants.ATT_NAME, DEFAULT_NAME)); 58 m_fkField.setColumnDefinition(helper.getNodeValue(node, XMLConstants.ATT_COLUMN_DEFINITION, DEFAULT_COLUMN_DEFINITION)); 59 } 60 } 61 62 65 public boolean loadedFromXML() { 66 return true; 67 } 68 } 69 | Popular Tags |