Package adipe.translate.sql

Examples of adipe.translate.sql.NamedColumn


     */
    SimpleColumn getColumnIcShdWrapNambNind(String name) throws WrappedException {
        // TODO repeated code in TableReferenceTranslation?
        // TODO repeated as columnScope().asColumnNames().byColumnName() ?
        try {
            return new NamedColumn(getColumnIcShdNwrapAmbInd(name), name).column();
        } catch (IndexOutOfBoundsException | AmbiguousNameException e) {
            throw new WrappedException(e);
        }
    }
View Full Code Here


            if (tableAlias == null) {
                column = ex.byColumnName(columnName);
            } else {
                column = ex.byColumnName(tableAlias + "." + columnName);
            }
            return new NamedColumn(column, columnAlias==null?columnName:columnAlias);
        } else if (valueExpressionPrimary.setFunctionSpecification() != null) {
            return visitSetFunctionSpecification(valueExpressionPrimary.setFunctionSpecification(), columnAlias);
        } else if (valueExpressionPrimary.unsignedValueSpecification() != null) {
            return visitUnsignedValueSpecification(valueExpressionPrimary.unsignedValueSpecification());
        } else if (valueExpressionPrimary.LEFT_PAREN() != null) {
View Full Code Here

                        throws WrappedException, TypeCheckException {
        Expression inner = valueExpressionAsNamedColumn(ctx.valueExpression(), columnAlias);
        checkState(! inner.isAggregated());

        SetFunctionTypeContext setFunctionType = ctx.setFunctionType();
        NamedColumn innerNc = inner.conjure();
        if (inner.codeRefersToConjuredColumn()) {
            raBuilder.conjureColumnFrom(inner);
        }
        Aggregated aggr;
View Full Code Here

                };


    private static NamedColumn col(String name, Type type) {
        return new NamedColumn(new SimpleColumn(type, name),name.toLowerCase());
    }
View Full Code Here

TOP

Related Classes of adipe.translate.sql.NamedColumn

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.