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.exp(originalValue));
                return new FloatingPointLiteral(stmt, expr.getJavaTypeMapping(), absValue, null);
            }
            throw new IllegalExpressionOperationException("Math.exp()", expr);
        }
        else
        {
            // Relay to the equivalent "exp(expr)" function
            return exprFactory.invokeMethod(stmt, null, "exp", null, args);
View Full Code Here


                return new ObjectExpression(stmt, expr.getSQLTable(), mapping);
            }
            return expr;
        }

        throw new IllegalExpressionOperationException("JDOHelper.getObjectId", expr);
    }
View Full Code Here

                // TODO Implement this
            }
            return expr;
        }

        throw new IllegalExpressionOperationException("JDOHelper.getVersion", expr);
    }
View Full Code Here

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

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

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

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

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

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

            {
                double originalValue = ((BigDecimal) ((FloatingPointLiteral) expr).getValue()).doubleValue();
                Double absValue = new Double(Math.asin(originalValue));
                return new FloatingPointLiteral(stmt, expr.getJavaTypeMapping(), absValue, null);
            }
            throw new IllegalExpressionOperationException("Math.asin()", expr);
        }
        else
        {
            // Relay to the equivalent "asin(expr)" function
            return exprFactory.invokeMethod(stmt, null, "asin", 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.