1 21 package oracle.toplink.essentials.internal.ejb.cmp3.xml.columns; 23 24 import org.w3c.dom.Node ; 25 import org.w3c.dom.NodeList ; 26 27 import oracle.toplink.essentials.internal.ejb.cmp3.xml.XMLHelper; 28 import oracle.toplink.essentials.internal.ejb.cmp3.xml.XMLConstants; 29 30 import oracle.toplink.essentials.internal.ejb.cmp3.metadata.columns.MetadataPrimaryKeyJoinColumns; 31 32 38 public class XMLPrimaryKeyJoinColumns extends MetadataPrimaryKeyJoinColumns { 39 42 public XMLPrimaryKeyJoinColumns(Node node, XMLHelper helper, String sourceTableName, String targetTableName) { 43 super(sourceTableName, targetTableName); 44 45 NodeList nodes = helper.getNodes(node, XMLConstants.PK_JOIN_COLUMN); 47 48 if (nodes != null) { 49 for (int i = 0; i < nodes.getLength(); i++) { 50 m_pkJoinColumns.add(new XMLPrimaryKeyJoinColumn(nodes.item(i), helper, sourceTableName, targetTableName)); 51 } 52 } 53 } 54 55 58 public boolean loadedFromXML() { 59 return true; 60 } 61 } 62 | Popular Tags |