Examples of addArgument()


Examples of org.eclipse.persistence.queries.ObjectLevelReadQuery.addArgument()

        } else {
            query = createCompoundQuery();
        }

        for (ParameterExpression<?> parameter : getParameters()) {
            query.addArgument(parameter.getName(), parameter.getJavaType());
        }

        if (this.where != null) {
            if (((InternalExpression) this.where).isPredicate() && ((InternalSelection) this.where).getCurrentNode() == null) {
                if (((PredicateImpl) this.where).getOperator() == BooleanOperator.OR) {
View Full Code Here

Examples of org.eclipse.persistence.queries.ReadAllQuery.addArgument()

            }
            ReadAllQuery query = new ReadAllQuery();
            query.setReferenceClass(this.elementDescriptor.getJavaClass());
            query.setIsExecutionClone(true);
            query.setSession(session);
            query.addArgument(ForeignReferenceMapping.QUERY_BATCH_PARAMETER);
            query.setSelectionCriteria(elementDescriptor.buildBatchCriteriaByPK(query.getExpressionBuilder(), query));
            int pkCount = foreignKeyValues.size();
            Collection<Object> temp = new ArrayList<Object>();
            List arguments = new ArrayList();
            arguments.add(foreignKeyValues);
View Full Code Here

Examples of org.eclipse.persistence.queries.ReadObjectQuery.addArgument()

                  expression = subExpression;
              }
              else {
                  expression = expression.and(subExpression);
              }
              roq.addArgument(primaryKeyField.getName().toLowerCase());
          }
          roq.setSelectionCriteria(expression);
          desc.getQueryManager().addQuery(PK_QUERYNAME, roq);
          ReadAllQuery raq = new ReadAllQuery();
          raq.setReferenceClassName(generatedJavaClassName);
View Full Code Here

Examples of org.fcrepo.server.journal.entry.CreatorJournalEntry.addArgument()

            Map<String, Object> argumentsMap = journalEntry.getArgumentsMap();
            for (String name : argumentsMap.keySet()) {
                Object value = argumentsMap.get(name);
                if (value instanceof File) {
                    totalFileSizes += estimateFileSize((File) value);
                    copyEntry.addArgument(name, (File) null);
                } else {
                    copyEntry.addArgument(name, value);
                }
            }
View Full Code Here

Examples of org.formulacompiler.compiler.internal.expressions.ExpressionNode.addArgument()

    // No need to clone leaf nodes.
    if (_args.length == 0) return node();

    ExpressionNode result = node().cloneWithoutArguments();
    for (final TypedResult arg : _args) {
      result.addArgument( valueToNode( arg ) );
    }
    return result;
  }

  protected abstract TypedResult evaluateToConst( TypedResult... _args ) throws CompilerException;
View Full Code Here

Examples of org.formulacompiler.compiler.internal.expressions.ExpressionNodeForArrayReference.addArgument()

    final ExpressionNodeForArrayReference rangeNode = (ExpressionNodeForArrayReference) node();
    final ExpressionNodeForArrayReference result = new ExpressionNodeForArrayReference( rangeNode.arrayDescriptor() );
    result.setDataType( rangeNode.getDataType() );
    for (TypedResult arg : _args) {
      if (arg instanceof ExpressionNode) {
        result.addArgument( (ExpressionNode) arg );
      }
      else {
        result.addArgument( new ExpressionNodeForConstantValue( arg.getConstantValue(), arg.getDataType() ) );
      }
    }
View Full Code Here

Examples of org.formulacompiler.compiler.internal.expressions.ExpressionNodeForFoldDefinition.addArgument()

    if (_initialsChanged || fold.isCounted()) {
      final Iterator<ExpressionNode> foldArgs = fold.arguments().iterator();
      newFold = fold.cloneWithoutArgumentsAndForbidReduce();
      newFold.setPartiallyFoldedElementCount( partialStepCount );
      for (int i = 0; i < _initials.length; i++) {
        newFold.addArgument( valueToNode( _initials[ i ] ) );
        foldArgs.next();
      }
      while (foldArgs.hasNext())
        newFold.addArgument( foldArgs.next() );
    }
View Full Code Here

Examples of org.formulacompiler.compiler.internal.expressions.ExpressionNodeForSwitch.addArgument()

  private ExpressionNode rewriteChoose( ExpressionNodeForFunction _fun )
  {
    final ExpressionNodeForSwitch result = new ExpressionNodeForSwitch( _fun.argument( 0 ),
        err( "#VALUE! because index to CHOOSE is out of range" ) );
    for (int iCase = 1; iCase < _fun.cardinality(); iCase++) {
      result.addArgument( new ExpressionNodeForSwitchCase( _fun.argument( iCase ), iCase ) );
    }
    return result;
  }

View Full Code Here

Examples of org.globus.gram.GramAttributes.addArgument()

            for (String paramName : keys ) {
                ActualParameter actualParameter = (ActualParameter) inputs.get(paramName);
                if ("URIArray".equals(actualParameter.getType().getType().toString())) {
                    String[] values = ((URIArrayType) actualParameter.getType()).getValueArray();
                    for (String value : values) {
                        jobAttr.addArgument(value);
                    }
                } else {
                    String paramValue = MappingFactory.toString(actualParameter);
                    jobAttr.addArgument(paramValue);
                }
View Full Code Here

Examples of org.guvnor.common.services.project.model.QualifierModel.addArgument()

            readNodes( reader, new AbstractXStreamConverter.NodeReader() {
                public void onNode(HierarchicalStreamReader reader,
                                   String name,
                                   String value) {
                    if ( "arg".equals( name ) ) {
                        qualifier.addArgument(reader.getAttribute("key"), reader.getAttribute("value"));
                    }
                }
            } );
        }
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.