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.MetadataJoinColumn; 30 31 37 public class XMLJoinColumn extends MetadataJoinColumn { 38 42 public XMLJoinColumn(Node node, XMLHelper helper) { 43 m_pkField.setName(helper.getNodeValue(node, XMLConstants.ATT_REFERENCED_COLUMN_NAME, DEFAULT_REFERENCED_COLUMN_NAME)); 45 46 m_fkField.setName(helper.getNodeValue(node, XMLConstants.ATT_NAME, DEFAULT_NAME)); 48 m_fkField.setTableName(helper.getNodeValue(node, XMLConstants.ATT_TABLE, DEFAULT_TABLE)); 49 m_fkField.setUnique(helper.getNodeValue(node, XMLConstants.ATT_UNIQUE, DEFAULT_UNIQUE)); 50 m_fkField.setNullable(helper.getNodeValue(node, XMLConstants.ATT_NULLABLE, DEFAULT_NULLABLE)); 51 m_fkField.setUpdatable(helper.getNodeValue(node, XMLConstants.ATT_UPDATABLE, DEFAULT_UPDATABLE)); 52 m_fkField.setInsertable(helper.getNodeValue(node, XMLConstants.ATT_INSERTABLE, DEFAULT_INSERTABLE)); 53 m_fkField.setColumnDefinition(helper.getNodeValue(node, XMLConstants.ATT_COLUMN_DEFINITION, DEFAULT_COLUMN_DEFINITION)); 54 } 55 56 59 public boolean loadedFromXML() { 60 return true; 61 } 62 } 63 | Popular Tags |