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

MetadataEntityResult

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

Fields Summary
protected EntityResult
m_entityResult
protected List
m_fieldResults
Constructors Summary
protected MetadataEntityResult()
INTERNAL:

public MetadataEntityResult(EntityResult entityResult)
INTERNAL:

        m_entityResult = entityResult;
    
Methods Summary
public java.lang.StringgetDiscriminatorColumn()
INTERNAL:

        return m_entityResult.discriminatorColumn();
    
public java.lang.ClassgetEntityClass()
INTERNAL:

        return m_entityResult.entityClass();
    
public java.util.ListgetFieldResults()
INTERNAL:

        if (m_fieldResults == null) {
            m_fieldResults = new ArrayList<MetadataFieldResult>();
            
            for (FieldResult fieldResult : m_entityResult.fields()) {
                m_fieldResults.add(new MetadataFieldResult(fieldResult));
            } 
        }
        
        return m_fieldResults;