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

MetadataNamedQuery

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

Fields Summary
Constructors Summary
protected MetadataNamedQuery()
INTERNAL:

public MetadataNamedQuery(NamedQuery namedQuery, Class javaClass)
INTERNAL:

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

        return MetadataLogger.IGNORE_NAMED_QUERY_ANNOTATION;