Examples of WithParam


Examples of client.net.sf.saxon.ce.expr.instruct.WithParam

    }

    public Expression compile(Executable exec, Declaration decl) throws XPathException {
        PrincipalStylesheetModule psm = getPrincipalStylesheetModule();
        WithParam inst = new WithParam();
        inst.adoptChildExpression(select);
        inst.setParameterId(psm.allocateUniqueParameterNumber(getVariableQName()));
        initializeInstruction(exec, decl, inst);
        return inst;
    }
View Full Code Here

Examples of net.sf.saxon.instruct.WithParam

        }

    }

    public Expression compile(Executable exec) throws TransformerConfigurationException {
        WithParam inst = new WithParam();
        initializeInstruction(exec, inst);
        ExpressionTool.makeParentReferences(inst);
        return inst;
    }
View Full Code Here

Examples of net.sf.saxon.instruct.WithParam

        }

    }

    public Expression compile(Executable exec) throws XPathException {
        WithParam inst = new WithParam();
        inst.adoptChildExpression(select);
        inst.setParameterId(
                        getPrincipalStylesheet().allocateUniqueParameterNumber(getVariableQName()));
        initializeInstruction(exec, inst);
        return inst;
    }
View Full Code Here

Examples of org.pdf4j.saxon.instruct.WithParam

        }

    }

    public Expression compile(Executable exec) throws XPathException {
        WithParam inst = new WithParam();
        inst.adoptChildExpression(select);
        inst.setParameterId(
                        getPrincipalStylesheet().allocateUniqueParameterNumber(getVariableQName()));
        initializeInstruction(exec, inst);
        return inst;
    }
View Full Code Here

Examples of org.wso2.carbon.dataservices.core.engine.CallQuery.WithParam

            }
      } else {
        /* normal requests */
        XmlSchemaElement tmpEl;
        Map<String, WithParam> withParams = defCallQuery.getWithParams();
        WithParam tmpWithParam;
        /* create elements for individual parameters */
        for (QueryParam queryParam : query.getQueryParams()) {
          if (DBConstants.QueryTypes.IN.equals(queryParam.getType())
              || DBConstants.QueryTypes.INOUT.equals(queryParam.getType())) {
            tmpWithParam = withParams.get(queryParam.getName());
View Full Code Here

Examples of org.wso2.carbon.dataservices.core.engine.CallQuery.WithParam

    List<String> paramList = new ArrayList<String>();
    ResultSet columnNames = metaData.getColumns(dbName, schema, tableName,
        null);
    while (columnNames.next()) {
      String name = columnNames.getString(DBConstants.DataServiceGenerator.COLUMN_NAME);
      WithParam withParam = new WithParam(name, name, name, DBConstants.DataServiceGenerator.QUERY_PARAM);
      paramMap.put(name, withParam);
      paramList.add(name);
    }
    Set<String> requiredRoles = new HashSet<String>();
    String queryId = DBConstants.DataServiceGenerator.INSERT_ + tableName + DBConstants.DataServiceGenerator._QUERY;
View Full Code Here

Examples of org.wso2.carbon.dataservices.core.engine.CallQuery.WithParam

    ResultSet columnNames = metaData.getColumns(dbName, schema, tableName,
        null);
    while (columnNames.next()) {
      String name = columnNames.getString(DBConstants.DataServiceGenerator.COLUMN_NAME);
      if (!name.equals(pKey)) {
        WithParam withParam1 = new WithParam(name, name, name,
             DBConstants.DataServiceGenerator.QUERY_PARAM);
        paramMap.put(name, withParam1);
        paramList.add(name);// add to this @param into @param List
      }
    }
    WithParam withParam2 = new WithParam(pKey, pKey, pKey,  DBConstants.DataServiceGenerator.QUERY_PARAM);
    paramMap.put(pKey, withParam2);
    paramList.add(pKey);
    Set<String> requiredRoles = new HashSet<String>();// empty set
    String queryId = DBConstants.DataServiceGenerator.UPDATE_ + tableName + DBConstants.DataServiceGenerator._QUERY;
    String OpName = DBConstants.DataServiceGenerator.UPDATE_  + tableName + DBConstants.DataServiceGenerator._OPERATION;
View Full Code Here

Examples of org.wso2.carbon.dataservices.core.engine.CallQuery.WithParam

    ResultSet columnNames = metaData.getColumns(dbName, schema, tableName,
        null);
    while (columnNames.next()) {
      String name = columnNames.getString(DBConstants.DataServiceGenerator.COLUMN_NAME);
      if (pKey.equals(name)) {
        WithParam withParam = new WithParam(pKey, pKey, pKey,
             DBConstants.DataServiceGenerator.QUERY_PARAM);
        paramMap.put(pKey, withParam);
        paramList.add(pKey);
      }
    }
View Full Code Here

Examples of org.wso2.carbon.dataservices.core.engine.CallQuery.WithParam

      } else {
        colomNames = colomNames+", "+name;
      }
      i++;
      if (pKey.equals(name)) {
        WithParam withParam = new WithParam(pKey, pKey, pKey,
             DBConstants.DataServiceGenerator.QUERY_PARAM);
        paramMap.put(pKey, withParam);
        paramList.add(pKey);
      }
    }
View Full Code Here

Examples of org.wso2.carbon.dataservices.core.engine.CallQuery.WithParam

  private static CallQueryGroup getOperationCallQueryGroupFromQueryParams(DataService dataService, String queryId,
      List<QueryParam> queryParams) throws DataServiceFault {
    Map<String, WithParam> withParams = new HashMap<String, WithParam>();
    for (QueryParam qp : queryParams) {
      withParams.put(qp.getName(),
          new WithParam(qp.getName(), qp.getName(),
          qp.getName(), DBConstants.DBSFields.QUERY_PARAM));
    }
    CallQuery callQuery = new CallQuery(dataService, queryId, withParams, new HashSet<String>());
    List<CallQuery> callQueries = new ArrayList<CallQuery>();
    callQueries.add(callQuery);
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.