Package com.foundationdb.sql.parser

Examples of com.foundationdb.sql.parser.ValueNode


   
    static String[] getColumnDefault(ColumnDefinitionNode cdn,
                                     String schemaName, String tableName) {
        String defaultValue = null, defaultFunction = null;
        if (cdn.getDefaultNode() != null) {
            ValueNode valueNode = cdn.getDefaultNode().getDefaultTree();
            if (valueNode == null) {
            }
            else if (valueNode instanceof ConstantNode) {
                defaultValue = ((ConstantNode)valueNode).getValue().toString();
            }
View Full Code Here


            parameterArgs = new int[margs.length];
            Arrays.fill(parameterArgs, -1);
            for (int i = 0; i < margs.length; i++) {
                JavaValueNode marg = margs[i];
                if (marg instanceof SQLToJavaValueNode) {
                    ValueNode sqlArg = ((SQLToJavaValueNode)marg).getSQLValueNode();
                    if (sqlArg instanceof ConstantNode) {
                        constantArgs[i] = ((ConstantNode)sqlArg).getValue();
                        continue;
                    }
                    else if (sqlArg instanceof ParameterNode) {
View Full Code Here

                        expression = castExpression.getOperand();
                        expressionType = type(expression);
                    }
                }
                if (expressionType == null || !expressionType.equals(projectInstance)) {
                    ValueNode source = expression.getSQLsource();
                    CastExpression cast = new CastExpression(expression, projectType, source, projectInstance);
                    castProjectField(cast, folder, parametersSync, typesTranslator);
                    getFields().set(i, cast);
                }
            }
View Full Code Here

TOP

Related Classes of com.foundationdb.sql.parser.ValueNode

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.