1 21 package oracle.toplink.essentials.internal.ejb.cmp3.xml.tables; 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.xml.columns.XMLPrimaryKeyJoinColumns; 30 31 import oracle.toplink.essentials.internal.ejb.cmp3.metadata.tables.MetadataSecondaryTable; 32 33 40 public class XMLSecondaryTable extends MetadataSecondaryTable { 41 private Node m_node; 42 private XMLHelper m_helper; 43 44 47 public XMLSecondaryTable(Node node, XMLHelper helper) { 48 m_helper = helper; 49 m_name = m_helper.getNodeValue(node, XMLConstants.ATT_NAME); 50 m_schema = m_helper.getNodeValue(node, XMLConstants.ATT_SCHEMA); 51 m_catalog = m_helper.getNodeValue(node, XMLConstants.ATT_CATALOG); 52 53 processName(); 54 XMLTableHelper.processUniqueConstraints(node, helper, m_databaseTable); 55 } 56 57 60 protected void processPrimaryKeyJoinColumns(String sourceTableName) { 61 m_primaryKeyJoinColumns = new XMLPrimaryKeyJoinColumns(m_node, m_helper, sourceTableName, m_databaseTable.getQualifiedName()); 62 } 63 } 64 | Popular Tags |