Examples of StringExpression


Examples of org.jpox.store.mapped.expression.StringExpression

        ArrayList args = new ArrayList();
        args.add(time);
        args.add(getMapping(String.class, time).newLiteral(time.getQueryExpression(), "HH24"));

        ArrayList args1 = new ArrayList();
        args1.add(new StringExpression("TO_CHAR", args));

        return new NumericExpression("TO_NUMBER", args1);
    }
View Full Code Here

Examples of org.jpox.store.mapped.expression.StringExpression

        ArrayList args = new ArrayList();
        args.add(time);
        args.add(getMapping(String.class, time).newLiteral(time.getQueryExpression(), "MI"));

        ArrayList args1 = new ArrayList();
        args1.add(new StringExpression("TO_CHAR", args));

        return new NumericExpression("TO_NUMBER", args1);
    }
View Full Code Here

Examples of org.jpox.store.mapped.expression.StringExpression

        ArrayList args = new ArrayList();
        args.add(time);
        args.add(getMapping(String.class, time).newLiteral(time.getQueryExpression(), "SS"));

        ArrayList args1 = new ArrayList();
        args1.add(new StringExpression("TO_CHAR", args));

        return new NumericExpression("TO_NUMBER", args1);
    }
View Full Code Here

Examples of org.jpox.store.mapped.expression.StringExpression

        ArrayList args = new ArrayList();
        args.add(str);
        args.add(begin.add(getMapping(Integer.class, str).newLiteral(str.getQueryExpression(), BigInteger.ONE)));
        args.add(lengthMethod(str).sub(begin));

        return new StringExpression("SUBSTRING", args);
    }
View Full Code Here

Examples of org.jpox.store.mapped.expression.StringExpression

        ArrayList args = new ArrayList();
        args.add(str);
        args.add(begin.add(getMapping(BigInteger.class, str).newLiteral(str.getQueryExpression(), BigInteger.ONE)));
        args.add(end.sub(begin));

        return new StringExpression("SUBSTRING", args);
    }
View Full Code Here

Examples of org.jpox.store.mapped.expression.StringExpression

    {
        ArrayList args = new ArrayList();
        args.add(str);
        args.add(begin.add(getMapping(BigInteger.class, str).newLiteral(str.getQueryExpression(), BigInteger.ONE)));

        return new StringExpression("SUBSTR", args);
    }
View Full Code Here

Examples of org.lilystudio.smarty4j.expression.StringExpression

      }
      default:
        // 寻找成对的字符串标识符
        if (d == c) {
          if (exp == null) {
            words[wordSize] = new StringExpression(s.toString());
          } else {
            exp.add(s.toString());
            words[wordSize] = exp;
          }
          break quotation;
View Full Code Here

Examples of org.lilystudio.smarty4j.expression.StringExpression

            exp = (IExpression) words[wordSize];
          } else if (!Character.isJavaIdentifierStart(c)) {
            break loop;
          } else {
            start = findIdentifier(line, start + 1, end, words, wordSize);
            exp = new StringExpression((String) words[wordSize]);
          }
          variable.add(new MapExtended(exp));
          continue;
        }
      }
View Full Code Here

Examples of org.lilystudio.smarty4j.expression.StringExpression

   *
   * @param key
   *          关键字表达式
   */
  public MapExtended(String key) {
    this(new StringExpression(key));
  }
View Full Code Here

Examples of org.lilystudio.smarty4j.expression.StringExpression

              || "off".equals(word)) {
            value = new FalseCheck();
          } else if ("null".equals(word)) {
            value = new NullExpression();
          } else if (word instanceof String) {
            value = new StringExpression((String) word);
          } else {
            throw new ParseException("不能识别的函数参数值");
          }

          if (index + 3 < wordSize && words[index + 3] == Operation.C_B_OR) {
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.