Examples of ByteLiteral


Examples of org.datanucleus.store.rdbms.sql.expression.ByteLiteral

        {
            if (expr instanceof ByteLiteral)
            {
                int originalValue = ((BigInteger) ((ByteLiteral) expr).getValue()).intValue();
                BigInteger absValue = new BigInteger(String.valueOf(Math.abs(originalValue)));
                return new ByteLiteral(stmt, expr.getJavaTypeMapping(), absValue, null);
            }
            else if (expr instanceof IntegerLiteral)
            {
                int originalValue = ((Number) ((IntegerLiteral) expr).getValue()).intValue();
                Integer absValue = Integer.valueOf(Math.abs(originalValue));
View Full Code Here

Examples of org.datanucleus.store.rdbms.sql.expression.ByteLiteral

        {
            if (expr instanceof ByteLiteral)
            {
                int originalValue = ((BigInteger) ((ByteLiteral) expr).getValue()).intValue();
                BigInteger absValue = new BigInteger(String.valueOf(Math.floor(originalValue)));
                return new ByteLiteral(stmt, expr.getJavaTypeMapping(), absValue, null);
            }
            else if (expr instanceof IntegerLiteral)
            {
                int originalValue = ((Number) ((IntegerLiteral) expr).getValue()).intValue();
                Double absValue = new Double(Math.floor(originalValue));
View Full Code Here

Examples of org.datanucleus.store.rdbms.sql.expression.ByteLiteral

        {
            if (expr instanceof ByteLiteral)
            {
                int originalValue = ((BigInteger) ((ByteLiteral) expr).getValue()).intValue();
                BigInteger absValue = new BigInteger(String.valueOf(Math.atan(originalValue)));
                return new ByteLiteral(stmt, expr.getJavaTypeMapping(), absValue, null);
            }
            else if (expr instanceof IntegerLiteral)
            {
                int originalValue = ((Number) ((IntegerLiteral) expr).getValue()).intValue();
                Double absValue = new Double(Math.atan(originalValue));
View Full Code Here

Examples of org.datanucleus.store.rdbms.sql.expression.ByteLiteral

        {
            if (expr instanceof ByteLiteral)
            {
                int originalValue = ((BigInteger) ((ByteLiteral) expr).getValue()).intValue();
                BigInteger absValue = new BigInteger(String.valueOf(Math.sqrt(originalValue)));
                return new ByteLiteral(stmt, expr.getJavaTypeMapping(), absValue, null);
            }
            else if (expr instanceof IntegerLiteral)
            {
                int originalValue = ((Number) ((IntegerLiteral) expr).getValue()).intValue();
                Double absValue = new Double(Math.sqrt(originalValue));
View Full Code Here

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

        return mappingSampleValue;
    }
   
    public ScalarExpression newLiteral(QueryExpression qs, Object value)
    {
        ScalarExpression expr = new ByteLiteral(qs, this, BigInteger.valueOf(((Byte)value).longValue()));
        return expr;
    }
View Full Code Here

Examples of rocket.generator.rebind.codeblock.ByteLiteral

      if (type == context.getBoolean()) {
        literal = new BooleanLiteral(this.getBooleanValue());
        break;
      }
      if (type == context.getByte()) {
        literal = new ByteLiteral(this.getByteValue());
        break;
      }
      if (type == context.getShort()) {
        literal = new ShortLiteral(this.getShortValue());
        break;
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.