Examples of FloatingPointLiteral


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

            }
            else if (expr instanceof IntegerLiteral)
            {
                int originalValue = ((Number) ((IntegerLiteral) expr).getValue()).intValue();
                Double absValue = new Double(Math.floor(originalValue));
                return new FloatingPointLiteral(stmt, expr.getJavaTypeMapping(), absValue, null);
            }
            else if (expr instanceof FloatingPointLiteral)
            {
                double originalValue = ((BigDecimal) ((FloatingPointLiteral) expr).getValue()).doubleValue();
                Double absValue = new Double(Math.floor(originalValue));
                return new FloatingPointLiteral(stmt, expr.getJavaTypeMapping(), absValue, null);
            }
            throw new IllegalExpressionOperationException("Math.floor()", expr);
        }
        else
        {
View Full Code Here

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

            }
            else if (expr instanceof IntegerLiteral)
            {
                int originalValue = ((Number) ((IntegerLiteral) expr).getValue()).intValue();
                Double absValue = new Double(Math.atan(originalValue));
                return new FloatingPointLiteral(stmt, expr.getJavaTypeMapping(), absValue, null);
            }
            else if (expr instanceof FloatingPointLiteral)
            {
                double originalValue = ((BigDecimal) ((FloatingPointLiteral) expr).getValue()).doubleValue();
                Double absValue = new Double(Math.atan(originalValue));
                return new FloatingPointLiteral(stmt, expr.getJavaTypeMapping(), absValue, null);
            }
            throw new IllegalExpressionOperationException("Math.atan()", expr);
        }
        else
        {
View Full Code Here

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

            }
            else if (expr instanceof IntegerLiteral)
            {
                int originalValue = ((Number) ((IntegerLiteral) expr).getValue()).intValue();
                Double absValue = new Double(Math.sqrt(originalValue));
                return new FloatingPointLiteral(stmt, expr.getJavaTypeMapping(), absValue, null);
            }
            else if (expr instanceof FloatingPointLiteral)
            {
                double originalValue = ((BigDecimal) ((FloatingPointLiteral) expr).getValue()).doubleValue();
                Double absValue = new Double(Math.sqrt(originalValue));
                return new FloatingPointLiteral(stmt, expr.getJavaTypeMapping(), absValue, null);
            }
            throw new IllegalExpressionOperationException("Math.sqrt()", expr);
        }
        else
        {
View Full Code Here

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

        return mappingSampleValue;
    }

    public ScalarExpression newLiteral(QueryExpression qs, Object value)
    {
        ScalarExpression expr = new FloatingPointLiteral(qs, this, (Float)value);
        return expr;
    }
View Full Code Here

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

    return mappingSampleValue;
  }

    public ScalarExpression newLiteral(QueryExpression qs, Object value)
    {
        ScalarExpression expr = new FloatingPointLiteral(qs, (BigDecimal)value);
        return expr;
    }
View Full Code Here

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

        return mappingSampleValue;
    }

    public ScalarExpression newLiteral(QueryExpression qs, Object value)
    {
        ScalarExpression expr = new FloatingPointLiteral(qs, this, (Double)value);
        return expr;
    }
View Full Code Here

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

    return mappingSampleValue;
  }

    public ScalarExpression newLiteral(QueryExpression qs, Object value)
    {
        ScalarExpression expr = new FloatingPointLiteral(qs, (BigDecimal)value);
        return expr;
    }
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.