Examples of ParameterExpression


Examples of cascading.pattern.model.generalregression.expression.ParameterExpression

      factors.add( (FactorPredictor) predictor );
    }

  public ParameterExpression createExpression( Fields argumentsFields )
    {
    return new ParameterExpression( argumentsFields, this );
    }
View Full Code Here

Examples of com.tulskiy.musique.playlist.formatting.tokens.ParameterExpression

                if (token.equals("%")) {
                    if (st.hasMoreTokens()) {
                        String s = st.nextToken();
                        s = Character.toUpperCase(s.charAt(0)) + s.substring(1);
                        stack.peek().addExpression(new ParameterExpression(s));
                        if (st.hasMoreTokens() && !st.nextToken().equals("%")) {
                            break;
                        }
                    }
                } else if (token.equals("$")) {
View Full Code Here

Examples of javax.persistence.criteria.ParameterExpression

    protected TypedQuery<Contact> getSearchQuery(ContactSearchDTO contact) {
        CriteriaBuilder criteriaBuilder = JPA.em().getCriteriaBuilder();
        CriteriaQuery<Contact> criteriaQuery = criteriaBuilder.createQuery(entityClass);
        Root<Contact> from = criteriaQuery.from(entityClass);
        CriteriaQuery<Contact> select = criteriaQuery.select(from);
        ParameterExpression fN = criteriaBuilder.parameter(String.class);
        ParameterExpression lN = criteriaBuilder.parameter(String.class);
        ParameterExpression mN = criteriaBuilder.parameter(String.class);
        ParameterExpression date = criteriaBuilder.parameter(Date.class);
        ParameterExpression mail = criteriaBuilder.parameter(String.class);
        ParameterExpression city = criteriaBuilder.parameter(String.class);
        ParameterExpression str = criteriaBuilder.parameter(String.class);
        ParameterExpression house = criteriaBuilder.parameter(String.class);
        ParameterExpression apart = criteriaBuilder.parameter(String.class);
        if (contact.getBirthDate() != null) {
            if (contact.getDirection().equals(">")) {
                select.where(criteriaBuilder.like(from.get("firstName"), fN),
                        (criteriaBuilder.like(from.get("middleName"), mN)),
                        (criteriaBuilder.like(from.get("lastName"), lN)),
View Full Code Here

Examples of net.hydromatic.linq4j.expressions.ParameterExpression

      ClassNotFoundException {
    final OptiqConnection connection =
        OptiqAssert.getConnection(false);
    final SchemaPlus schema =
        connection.getRootSchema().getSubSchema("foodmart");
    ParameterExpression c =
        Expressions.parameter(JdbcTest.Customer.class, "c");
    String s =
        Schemas.queryable(Schemas.createDataContext(connection), schema,
            JdbcTest.Customer.class, "customer")
            .where(
View Full Code Here

Examples of net.hydromatic.linq4j.expressions.ParameterExpression

      ClassNotFoundException {
    final OptiqConnection connection =
        OptiqAssert.getConnection(false);
    final SchemaPlus schema =
        connection.getRootSchema().getSubSchema("foodmart");
    ParameterExpression c =
        Expressions.parameter(JdbcTest.Customer.class, "c");
    String s =
        Schemas.queryable(Schemas.createDataContext(connection), schema,
            JdbcTest.Customer.class, "customer")
            .where(
View Full Code Here

Examples of org.apache.ibatis.builder.ParameterExpression

      return builder.build();
    }

    private Map<String, String> parseParameterMapping(String content) {
      try {
        return new ParameterExpression(content);
      } catch (BuilderException ex) {
        throw ex;
      } catch (Exception ex) {
        throw new BuilderException("Parsing error was found in mapping @{" + content + "}.  Check syntax #{property|(expression), var1=value1, var2=value2, ...} ", ex);
      }
View Full Code Here

Examples of org.datanucleus.query.expression.ParameterExpression

            }
            else if (expr.getLeft() instanceof ParameterExpression)
            {
                // "{paramExpr}.field[.field[.field]]"
                setNotPrecompilable(); // Need parameter values to process this
                ParameterExpression paramExpr = (ParameterExpression)expr.getLeft();
                Symbol paramSym = compilation.getSymbolTable().getSymbol(paramExpr.getId());
                if (paramSym.getValueType() != null && paramSym.getValueType().isArray())
                {
                    // Special case : array "methods" (particularly "length")
                    String first = expr.getTuples().get(0);
                    processParameterExpression(paramExpr, true);
View Full Code Here

Examples of org.datanucleus.query.expression.ParameterExpression

            PrimaryExpression primExpr = (PrimaryExpression)param;
            arg1Obj = eval.getValueForPrimaryExpression(primExpr);
        }
        else if (param instanceof ParameterExpression)
        {
            ParameterExpression paramExpr = (ParameterExpression)param;
            arg1Obj = QueryUtils.getValueForParameterExpression(eval.getParameterValues(), paramExpr);
        }
        else if (param instanceof Literal)
        {
            arg1Obj = ((Literal)param).getLiteral();
View Full Code Here

Examples of org.datanucleus.query.expression.ParameterExpression

            PrimaryExpression primExpr = (PrimaryExpression)param;
            paramValue = eval.getValueForPrimaryExpression(primExpr);
        }
        else if (param instanceof ParameterExpression)
        {
            ParameterExpression paramExpr = (ParameterExpression)param;
            paramValue = QueryUtils.getValueForParameterExpression(eval.getParameterValues(), paramExpr);
        }
        else if (param instanceof Literal)
        {
            paramValue = ((Literal)param).getLiteral();
View Full Code Here

Examples of org.datanucleus.query.expression.ParameterExpression

            PrimaryExpression primExpr = (PrimaryExpression)param;
            paramValue = eval.getValueForPrimaryExpression(primExpr);
        }
        else if (param instanceof ParameterExpression)
        {
            ParameterExpression paramExpr = (ParameterExpression)param;
            paramValue = QueryUtils.getValueForParameterExpression(eval.getParameterValues(), paramExpr);
        }
        else if (param instanceof Literal)
        {
            paramValue = ((Literal)param).getLiteral();
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.