Package org.apache.expreval.client

Examples of org.apache.expreval.client.InternalErrorException


    public Object evaluateConstant(final int i, final boolean allowCollections) throws HBqlException {
        try {
            return this.evaluate(null, i, false, allowCollections, null);
        }
        catch (ResultMissingColumnException e) {
            throw new InternalErrorException("Missing column: " + e.getMessage());
        }
        catch (NullColumnValueException e) {
            throw new InternalErrorException("Null value: " + e.getMessage());
        }
    }
View Full Code Here


            }

            return (GenericValue)constructor.newInstance(castedObject);
        }
        catch (InstantiationException e) {
            throw new InternalErrorException(e.getMessage());
        }
        catch (IllegalAccessException e) {
            throw new InternalErrorException(e.getMessage());
        }
        catch (InvocationTargetException e) {
            throw new InternalErrorException(e.getMessage());
        }
    }
View Full Code Here

        try {
            this.setMappingContext(new MappingContext());
            return this.evaluate(conn, 0, this.allowColumns(), false, conn);
        }
        catch (ResultMissingColumnException e) {
            throw new InternalErrorException("Missing column: " + e.getMessage());
        }
        catch (NullColumnValueException e) {
            throw new InternalErrorException("Null value: " + e.getMessage());
        }
    }
View Full Code Here

        else
            try {
                return this.getFunctionType().getTypeSignature().newLiteral(this.getValue(null, null));
            }
            catch (ResultMissingColumnException e) {
                throw new InternalErrorException("Missing column: " + e.getMessage());
            }
            catch (NullColumnValueException e) {
                throw new InternalErrorException("Null value: " + e.getMessage());
            }
    }
View Full Code Here

    public void assignAsNamesForExpressions(final SelectStatement selectStatement) {
        // No op
    }

    public AggregateValue newAggregateValue() throws HBqlException {
        throw new InternalErrorException();
    }
View Full Code Here

            case MAX: {
                break;
            }

            default:
                throw new InternalErrorException("Invalid aggregate function: " + this.getFunctionType());
        }
    }
View Full Code Here

                }
                break;
            }

            default:
                throw new InternalErrorException("Invalid aggregate function: " + this.getFunctionType());
        }
    }
View Full Code Here

            case RANDOMDOUBLE: {
                return GenericFunction.randomVal.nextDouble();
            }

            default:
                throw new InternalErrorException("Invalid function: " + this.getFunctionType());
        }
    }
View Full Code Here

        }
        else if (Utils.isNonConectionStatemet(statement)) {
            return ((NonConnectionStatement)statement).execute();
        }
        else {
            throw new InternalErrorException("Bad state with " + statement.getClass().getSimpleName());
        }
    }
View Full Code Here

                    final String rangeValue = (String)val.getValue(null, null);
                    final RowRequest rowRequest = this.newGet(withArgs, columnAttribs, keyAttrib, rangeValue);
                    rowRequestList.add(rowRequest);
                }
                catch (ResultMissingColumnException e) {
                    throw new InternalErrorException("Missing column: " + val.asString());
                }
                catch (NullColumnValueException e) {
                    throw new InternalErrorException("Null value: " + e.getMessage());
                }
            }
        }
        else {
            final String rangeValue = (String)objval;
View Full Code Here

TOP

Related Classes of org.apache.expreval.client.InternalErrorException

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.