Package javax.xml.xquery

Examples of javax.xml.xquery.XQPreparedExpression.bindNode()


              if (typeQName != null) {
                if (value.getClass().getName().startsWith("java.lang")) {
                      exp.bindAtomicValue(variable, value.toString(),
                          xqconn.createAtomicType(XQItemType.XQBASETYPE_ANYATOMICTYPE));
                } else if (value instanceof Node) {
                      exp.bindNode(variable, (Node) value, xqconn.createNodeType());
                } else if (value instanceof NodeList) {
                  NodeList nodeList = (NodeList) value;
                  ArrayList nodeArray = new ArrayList();
                  for (int i = 0; i < nodeList.getLength(); i++) {
                    nodeArray.add(nodeList.item(i));
View Full Code Here


              if (typeQName != null) {
                if (value.getClass().getName().startsWith("java.lang")) {
                      exp.bindAtomicValue(variable, value.toString(),
                          xqconn.createAtomicType(XQItemType.XQBASETYPE_ANYATOMICTYPE));
                } else if (value instanceof Node) {
                      exp.bindNode(variable, (Node) value, xqconn.createNodeType());
                } else if (value instanceof NodeList) {
                  NodeList nodeList = (NodeList) value;
                  ArrayList nodeArray = new ArrayList();
                  for (int i = 0; i < nodeList.getLength(); i++) {
                    nodeArray.add(nodeList.item(i));
View Full Code Here

              if (typeQName != null) {
                if (value.getClass().getName().startsWith("java.lang")) {
                      exp.bindAtomicValue(variable, value.toString(),
                          xqconn.createAtomicType(XQItemType.XQBASETYPE_ANYATOMICTYPE));
                } else if (value instanceof Node) {
                      exp.bindNode(variable, (Node) value, xqconn.createNodeType());
                } else if (value instanceof NodeList) {
                  NodeList nodeList = (NodeList) value;
                  ArrayList nodeArray = new ArrayList();
                  for (int i = 0; i < nodeList.getLength(); i++) {
                    nodeArray.add(nodeList.item(i));
View Full Code Here

    XQConnection connection = null;
    XQPreparedExpression expression = null;
    try {
      connection = getConnection();
      expression = connection.prepareExpression(xQuery);
      expression.bindNode(XQConstants.CONTEXT_ITEM, node, null);

      //bind the parameter values
      if(xQueryParameters != null && xQueryParameters.size() > 0) {
        //bind them one by one
        for(String parameter:xQueryParameters) {
View Full Code Here

              if (typeQName != null) {
                if (value.getClass().getName().startsWith("java.lang")) {
                      exp.bindAtomicValue(variable, value.toString(),
                          xqconn.createAtomicType(XQItemType.XQBASETYPE_ANYATOMICTYPE));
                } else if (value instanceof Node) {
                      exp.bindNode(variable, (Node) value, xqconn.createNodeType());
                } else if (value instanceof NodeList) {
                  NodeList nodeList = (NodeList) value;
                  ArrayList nodeArray = new ArrayList();
                  for (int i = 0; i < nodeList.getLength(); i++) {
                    nodeArray.add(nodeList.item(i));
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.