Package adipe.translate.sql

Examples of adipe.translate.sql.ExpressionNotAggregated


            UnsignedValueSpecificationContext unsignedValueSpecification) {
        checkNotNull(unsignedValueSpecification.unsignedLiteral());
        if (unsignedValueSpecification.unsignedLiteral().unsignedNumericLiteral() != null) {
            checkNotNull(unsignedValueSpecification.unsignedLiteral().unsignedNumericLiteral().exactNumericLiteral());
            checkNotNull(unsignedValueSpecification.unsignedLiteral().unsignedNumericLiteral().exactNumericLiteral().unsignedInteger());
            return new ExpressionNotAggregated(IntegerType.INSTANCE, unsignedValueSpecification.getText());
        } else {
            checkNotNull(unsignedValueSpecification.unsignedLiteral().generalLiteral());
            return visitGeneralLiteral(unsignedValueSpecification.unsignedLiteral().generalLiteral());
        }
    }
View Full Code Here


    private Expression visitCharacterStringLiteral(CharacterStringLiteralContext ctx) {
        StringBuilder sb = new StringBuilder();
        sb.append("\"");
        sb.append(ctx.getText().substring(1, ctx.getText().length()-1).replace("\"","\"\"").replace("''", "'"));
        sb.append("\"");
        return new ExpressionNotAggregated(VarcharType.INSTANCE, sb.toString());
    }
View Full Code Here

TOP

Related Classes of adipe.translate.sql.ExpressionNotAggregated

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.