1 21 package oracle.toplink.essentials.internal.ejb.cmp3.xml.sequencing; 23 24 import oracle.toplink.essentials.internal.ejb.cmp3.metadata.sequencing.MetadataGeneratedValue; 25 26 import oracle.toplink.essentials.internal.ejb.cmp3.xml.XMLHelper; 27 import oracle.toplink.essentials.internal.ejb.cmp3.xml.XMLConstants; 28 29 import org.w3c.dom.Node ; 30 31 37 public class XMLGeneratedValue extends MetadataGeneratedValue { 38 protected Node m_node; 39 protected XMLHelper m_helper; 40 41 44 public XMLGeneratedValue(Node node, XMLHelper helper) { 45 m_node = node; 46 m_helper = helper; 47 } 48 49 52 public String getGenerator() { 53 return m_helper.getNodeValue(m_node, XMLConstants.ATT_GENERATOR); 54 } 55 56 59 public String getStrategy() { 60 return m_helper.getNodeValue(m_node, XMLConstants.ATT_STRATEGY, DEFAULT_STRATEGY); 61 } 62 } 63 | Popular Tags |