Package org.datanucleus.store.rdbms.sql.expression

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


            {
                double originalValue = ((BigDecimal) ((FloatingPointLiteral) expr).getValue()).doubleValue();
                Double absValue = new Double(Math.abs(originalValue));
                return new FloatingPointLiteral(stmt, expr.getJavaTypeMapping(), absValue, null);
            }
            throw new IllegalExpressionOperationException("Math.abs()", expr);
        }
        else
        {
            // Relay to the equivalent "abs(expr)" function
            return exprFactory.invokeMethod(stmt, null, "abs", null, args);
View Full Code Here


            {
                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
        {
            // Relay to the equivalent "floor(expr)" function
            return exprFactory.invokeMethod(stmt, null, "floor", null, args);
View Full Code Here

            {
                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
        {
            // Relay to the equivalent "atan(expr)" function
            return exprFactory.invokeMethod(stmt, null, "atan", null, args);
View Full Code Here

            {
                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
        {
            // Relay to the equivalent "sqrt(expr)" function
            return exprFactory.invokeMethod(stmt, null, "sqrt", null, args);
View Full Code Here

TOP

Related Classes of org.datanucleus.store.rdbms.sql.expression.IllegalExpressionOperationException

Copyright © 2018 www.massapicom. 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.