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

XMLSQLResultSetMapping

public class XMLSQLResultSetMapping extends MetadataSQLResultSetMapping
Object to hold onto an XML sql result set mapping metadata.
author
Guy Pelletier
since
TopLink EJB 3.0 Reference Implementation

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

        m_node = node;
        m_helper = helper;
    
Methods Summary
public java.util.ListgetColumnResults()
INTERNAL:

        if (m_columnResults == null) {
            m_columnResults = new ArrayList<String>();    
            NodeList columnResultList = m_helper.getNodes(m_node, XMLConstants.COLUMN_RESULT);
            
            if (columnResultList != null) {
                for (int i = 0; i < columnResultList.getLength(); i++) {
                    m_columnResults.add(m_helper.getNodeValue(columnResultList.item(i), XMLConstants.ATT_NAME));
                }
            }
        }
        
        return m_columnResults;
    
public java.util.ListgetEntityResults()
INTERNAL:

        if (m_entityResults == null) {
            m_entityResults = new ArrayList<MetadataEntityResult>();
            NodeList entityResultNodes = m_helper.getNodes(m_node, XMLConstants.ENTITY_RESULT);
            
            if (entityResultNodes != null) {
                for (int i = 0; i < entityResultNodes.getLength(); i++) {
                    m_entityResults.add(new XMLEntityResult(entityResultNodes.item(i), m_helper));
                }
            }
        }
        
        return m_entityResults;
    
public java.lang.StringgetName()
INTERNAL:

        return m_helper.getNodeValue(m_node, XMLConstants.ATT_NAME);