Package org.tmatesoft.sqljet.core.schema

Examples of org.tmatesoft.sqljet.core.schema.ISqlJetExpression


                distinct = false;
            }
            for (;i<ast.getChildCount();i++) {
                child = (CommonTree) ast.getChild(i);
                if (!"distinct".equalsIgnoreCase(child.getText())) {
                    ISqlJetExpression argument = create(child);
                    arguments.add(argument);
                }
            }
            this.arguments = Collections.unmodifiableList(arguments);
        }
View Full Code Here


    public SqlJetMatchExpression(CommonTree ast) throws SqlJetException {
        operation = Operation.decode(ast.getText());
        assert operation != null;
        matchExpression = create((CommonTree) ast.getChild(0));
        boolean not = false;
        ISqlJetExpression expression = null, escapeExpression = null;
        for (int i = 1; i < ast.getChildCount(); i++) {
            CommonTree child = (CommonTree) ast.getChild(1);
            if ("not".equalsIgnoreCase(child.getText())) {
                not = true;
            } else if ("escape".equalsIgnoreCase(child.getText())) {
View Full Code Here

        }
        List<ISqlJetExpression> conditions = new ArrayList<ISqlJetExpression>();
        List<ISqlJetExpression> values = new ArrayList<ISqlJetExpression>();
        while (idx < ast.getChildCount()) {
            if ("when".equalsIgnoreCase(child.getText())) {
                ISqlJetExpression condition = create((CommonTree) child.getChild(0));
                ISqlJetExpression value = create((CommonTree) child.getChild(1));
                conditions.add(condition);
                values.add(value);
                child = (CommonTree) ast.getChild(idx++);
            } else {
                break;
View Full Code Here

        buffer.append(super.toString());
        if (buffer.length() > 0) {
            buffer.append(' ');
        }
        buffer.append("DEFAULT ");
        ISqlJetExpression expression = getExpression();
        if (expression instanceof ISqlJetLiteralValue) {
            buffer.append(expression);
        } else {
            buffer.append("(");
            buffer.append(expression);
View Full Code Here

TOP

Related Classes of org.tmatesoft.sqljet.core.schema.ISqlJetExpression

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.