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

MetadataNamedNativeQuery

public class MetadataNamedNativeQuery extends MetadataQuery
Object to hold onto named native query metadata.
author
Guy Pelletier
since
TopLink EJB 3.0 Reference Implementation

Fields Summary
private Class
m_resultClass
private String
m_resultSetMapping
Constructors Summary
protected MetadataNamedNativeQuery()
INTERNAL:

public MetadataNamedNativeQuery(NamedNativeQuery namedNativeQuery, Class javaClass)
INTERNAL:

        // Set the location where we found this query.
        setLocation(javaClass.getName());
        
        // Process the name
        setName(namedNativeQuery.name());
        
        // Process the query string.
        setEJBQLString(namedNativeQuery.query());
        
        // Process the query hints.
        for (QueryHint hint : namedNativeQuery.hints()) {
            addHint(new MetadataQueryHint(hint.name(), hint.value()));
        }   
        
        // Process the result class.
        setResultClass(namedNativeQuery.resultClass());
        
        // Process the result set mapping.
        setResultSetMapping(namedNativeQuery.resultSetMapping());
    
Methods Summary
public java.lang.StringgetIgnoreLogMessageContext()
INTERNAL:

        return MetadataLogger.IGNORE_NAMED_NATIVE_QUERY_ANNOTATION;
    
public java.lang.ClassgetResultClass()
INTERNAL:

        return m_resultClass;
    
public java.lang.StringgetResultSetMapping()
INTERNAL:

        return m_resultSetMapping;
    
protected voidsetResultClass(java.lang.Class resultClass)
INTERNAL:

        m_resultClass = resultClass;
    
protected voidsetResultSetMapping(java.lang.String resultSetMapping)
INTERNAL:

        m_resultSetMapping = resultSetMapping;