FileDocCategorySizeDatePackage
MetadataSQLResultSetMapping.javaAPI DocGlassfish v2 API3760Tue May 22 16:54:28 BST 2007oracle.toplink.essentials.internal.ejb.cmp3.metadata.queries

MetadataSQLResultSetMapping

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

Fields Summary
protected List
m_columnResults
protected List
m_entityResults
protected SqlResultSetMapping
m_sqlResultSetMapping
Constructors Summary
protected MetadataSQLResultSetMapping()
INTERNAL:

public MetadataSQLResultSetMapping(SqlResultSetMapping sqlResultSetMapping)
INTERNAL:

        m_sqlResultSetMapping = sqlResultSetMapping;
    
Methods Summary
public java.util.ListgetColumnResults()
INTERNAL:

        if (m_columnResults == null) {
            m_columnResults = new ArrayList<String>();
            
            for (ColumnResult columnResult : m_sqlResultSetMapping.columns()) {
                m_columnResults.add(columnResult.name());
            } 
        }
        
        return m_columnResults;
    
public java.util.ListgetEntityResults()
INTERNAL:

        if (m_entityResults == null) {
            m_entityResults = new ArrayList<MetadataEntityResult>();
            
            for (EntityResult entityResult : m_sqlResultSetMapping.entities()) {
                m_entityResults.add(new MetadataEntityResult(entityResult));
            } 
        }
        
        return m_entityResults;
    
public java.lang.StringgetName()
INTERNAL:

        return m_sqlResultSetMapping.name();