FileDocCategorySizeDatePackage
XMLSequenceGenerator.javaAPI DocGlassfish v2 API3599Tue May 22 16:54:32 BST 2007oracle.toplink.essentials.internal.ejb.cmp3.xml.sequencing

XMLSequenceGenerator

public class XMLSequenceGenerator extends MetadataSequenceGenerator
Object to hold onto an XML sequence generator metadata.
author
Guy Pelletier
since
TopLink EJB 3.0 Reference Implementation

Fields Summary
private Node
m_node
private XMLHelper
m_helper
Constructors Summary
public XMLSequenceGenerator(Node node, XMLHelper helper)
INTERNAL:

        super(helper.getDocumentName());
        
        m_node = node;
        m_helper = helper;
    
Methods Summary
public intgetAllocationSize()
INTERNAL:

        return m_helper.getNodeValue(m_node, XMLConstants.ATT_ALLOCATION_SIZE, 50);
    
public intgetInitialValue()
INTERNAL:

        return m_helper.getNodeValue(m_node, XMLConstants.ATT_INITIAL_VALUE, 0);
    
public java.lang.StringgetName()
INTERNAL:

        return m_helper.getNodeValue(m_node, XMLConstants.ATT_NAME);
    
public java.lang.StringgetSequenceName()
INTERNAL:

        return m_helper.getNodeValue(m_node, XMLConstants.ATT_SEQUENCE_NAME, getName());
    
public booleanloadedFromAnnotations()
INTERNAL:

       return false; 
    
public booleanloadedFromXML()
INTERNAL:

       return true;