Examples of ASTRootNode


Examples of cc.concurrent.mango.runtime.parser.ASTRootNode

        }
        String sql = sqlAnno.value();
        if (Strings.isNullOrEmpty(sql)) {
            throw new IncorrectSqlException("sql is null or empty");
        }
        ASTRootNode rootNode = new Parser(sql).parse().reduce();
        SQLType sqlType = getSQLType(sql);

        Class<?> returnType = method.getReturnType();
        if (sqlType == SQLType.SELECT) { // 查
            return new QueryOperator(rootNode, method, sqlType);
View Full Code Here

Examples of cc.concurrent.mango.runtime.parser.ASTRootNode

        }
        String sql = sqlAnno.value();
        if (Strings.isNullOrEmpty(sql)) {
            throw new IncorrectSqlException("sql is null or empty");
        }
        ASTRootNode rootNode = new Parser(sql).parse();
        SQLType sqlType = getSQLType(sql);

        if (sqlType == SQLType.SELECT) {
            return QueryOperator.create(rootNode, method, sqlType);
        } else if (int.class.equals(method.getReturnType())) {
View Full Code Here

Examples of cc.concurrent.mango.runtime.parser.ASTRootNode

        }
        String sql = sqlAnno.value();
        if (Strings.isNullOrEmpty(sql)) {
            throw new IncorrectSqlException("sql is null or empty");
        }
        ASTRootNode rootNode = new Parser(sql).parse().preprocessing();
        SQLType sqlType = getSQLType(sql);

        Class<?> returnType = method.getReturnType();
        if (sqlType == SQLType.SELECT) { // 查
            return new QueryOperator(rootNode, method, sqlType);
View Full Code Here

Examples of cc.concurrent.mango.runtime.parser.ASTRootNode

        }
        String sql = sqlAnno.value();
        if (Strings.isNullOrEmpty(sql)) {
            throw new IncorrectSqlException("sql is null or empty");
        }
        ASTRootNode rootNode = new Parser(sql).parse().preprocessing();
        SQLType sqlType = getSQLType(sql);

        Class<?> returnType = method.getReturnType();
        if (sqlType == SQLType.SELECT) { // 查
            return new QueryOperator(rootNode, method, sqlType);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.