FileDocCategorySizeDatePackage
FinderNode.javaAPI DocGlassfish v2 API4266Fri May 04 22:31:42 BST 2007com.sun.enterprise.deployment.node.runtime

FinderNode

public class FinderNode extends com.sun.enterprise.deployment.node.DeploymentDescriptorNode

Fields Summary
private com.sun.enterprise.deployment.runtime.IASEjbCMPFinder
descriptor
Constructors Summary
Methods Summary
public java.lang.ObjectgetDescriptor()

return
the descriptor instance to associate with this XMLNode

	if (descriptor==null) {
	    descriptor = new IASEjbCMPFinder();
	} 
	return descriptor;
    
protected java.util.MapgetDispatchTable()
all sub-implementation of this class can use a dispatch table to map xml element to method name on the descriptor class for setting the element value.

return
the map with the element name as a key, the setter method as a value

  
	Map dispatchTable = super.getDispatchTable();
	dispatchTable.put(RuntimeTagNames.METHOD_NAME, "setMethodName");
	dispatchTable.put(RuntimeTagNames.QUERY_PARAMS, "setQueryParameterDeclaration");
	dispatchTable.put(RuntimeTagNames.QUERY_FILTER, "setQueryFilter");
	dispatchTable.put(RuntimeTagNames.QUERY_VARIABLES, "setQueryVariables");
	dispatchTable.put(RuntimeTagNames.QUERY_ORDERING, "setQueryOrdering");
	return dispatchTable;
    
public org.w3c.dom.NodewriteDescriptor(org.w3c.dom.Node parent, java.lang.String nodeName, com.sun.enterprise.deployment.runtime.IASEjbCMPFinder finder)
write the descriptor class to a DOM tree and return it

param
parent node for the DOM tree
param
node name for the descriptor
param
the descriptor to write
return
the DOM tree top node

    
	Node finderNode = super.writeDescriptor(parent, nodeName, finder);
	appendTextChild(finderNode, RuntimeTagNames.METHOD_NAME, finder.getMethodName());
	appendTextChild(finderNode, RuntimeTagNames.QUERY_PARAMS, finder.getQueryParameterDeclaration());
	appendTextChild(finderNode, RuntimeTagNames.QUERY_FILTER, finder.getQueryFilter());
	appendTextChild(finderNode, RuntimeTagNames.QUERY_VARIABLES, finder.getQueryVariables());
	appendTextChild(finderNode, RuntimeTagNames.QUERY_ORDERING, finder.getQueryOrdering());
	return finderNode;