FileDocCategorySizeDatePackage
XMLEntityResult.javaAPI DocGlassfish v2 API3937Tue May 22 16:54:32 BST 2007oracle.toplink.essentials.internal.ejb.cmp3.xml.queries

XMLEntityResult

public class XMLEntityResult extends MetadataEntityResult
Object to hold onto an xml entity result metadata.
author
Guy Pelletier
since
TopLink EJB 3.0 Reference Implementation

Fields Summary
protected Node
m_node
protected XMLHelper
m_helper
Constructors Summary
public XMLEntityResult(Node node, XMLHelper helper)
INTERNAL:

        m_node = node;
        m_helper = helper;
    
Methods Summary
public java.lang.StringgetDiscriminatorColumn()
INTERNAL:

        return m_helper.getNodeValue(m_node, XMLConstants.ATT_DISCRIMINATOR_COLUMN, "");
    
public java.lang.ClassgetEntityClass()
INTERNAL: Note this attribute is required but we send in the default void.class object to ensure we go through the correct class loading.

        return m_helper.getNodeValue(m_node, XMLConstants.ATT_ENTITY_CLASS, void.class);
    
public java.util.ListgetFieldResults()
INTERNAL:

        if (m_fieldResults == null) {
            m_fieldResults = new ArrayList<MetadataFieldResult>();
            NodeList fieldResultNodes = m_helper.getNodes(m_node, XMLConstants.FIELD_RESULT);
            
            if (fieldResultNodes != null) {
                for (int i = 0; i < fieldResultNodes.getLength(); i++) {
                    m_fieldResults.add(new XMLFieldResult(fieldResultNodes.item(i), m_helper));
                }
            }
        }
        
        return m_fieldResults;