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

XMLNamedQuery

public class XMLNamedQuery extends MetadataNamedQuery
Object to hold onto a named query metadata that came from XML.
author
Guy Pelletier
since
TopLink EJB 3.0 Reference Implementation

Fields Summary
Constructors Summary
public XMLNamedQuery(Node node, XMLHelper helper)
INTERNAL:

        // Set the location where we found this query.
        setLocation(helper.getDocumentName());
        
        // Process the name.
        setName(helper.getNodeValue(node, XMLConstants.ATT_NAME));
        
        // Process the query string.
        setEJBQLString(helper.getNodeTextValue(node, XMLConstants.QUERY));
            
        // Process the query hints.
        NodeList hints = helper.getNodes(node, XMLConstants.QUERY_HINT);
        if (hints != null) {
            for (int i = 0; i < hints.getLength(); i++) {
                Node hintNode = hints.item(i);
                String name = helper.getNodeValue(hintNode, XMLConstants.ATT_NAME);
                String value = helper.getNodeValue(hintNode, XMLConstants.ATT_VALUE);
                addHint(new MetadataQueryHint(name, value));
            }
        }
    
Methods Summary
public java.lang.StringgetIgnoreLogMessageContext()
INTERNAL:

        return MetadataLogger.IGNORE_NAMED_QUERY_ELEMENT;
    
public booleanloadedFromAnnotations()
INTERNAL:

        return false;
    
public booleanloadedFromXML()
INTERNAL:

        return true;