Search in sources :

Example 1 with CellReferenceOption

use of com.alibaba.druid.sql.dialect.oracle.ast.clause.ModelClause.CellReferenceOption in project druid by alibaba.

the class OracleOutputVisitor method visit.

@Override
public boolean visit(MainModelClause x) {
    if (x.getMainModelName() != null) {
        print0(ucase ? " MAIN " : " main ");
        x.getMainModelName().accept(this);
    }
    println();
    x.getModelColumnClause().accept(this);
    for (CellReferenceOption opt : x.getCellReferenceOptions()) {
        println();
        print0(opt.name);
    }
    println();
    x.getModelRulesClause().accept(this);
    return false;
}
Also used : CellReferenceOption(com.alibaba.druid.sql.dialect.oracle.ast.clause.ModelClause.CellReferenceOption)

Example 2 with CellReferenceOption

use of com.alibaba.druid.sql.dialect.oracle.ast.clause.ModelClause.CellReferenceOption in project druid by alibaba.

the class OracleOutputVisitor method visit.

@Override
public boolean visit(ModelClause x) {
    print0(ucase ? "MODEL" : "model");
    incrementIndent();
    for (CellReferenceOption opt : x.getCellReferenceOptions()) {
        print(' ');
        print0(opt.name);
    }
    if (x.getReturnRowsClause() != null) {
        print(' ');
        x.getReturnRowsClause().accept(this);
    }
    for (ReferenceModelClause item : x.getReferenceModelClauses()) {
        print(' ');
        item.accept(this);
    }
    x.getMainModel().accept(this);
    decrementIndent();
    return false;
}
Also used : CellReferenceOption(com.alibaba.druid.sql.dialect.oracle.ast.clause.ModelClause.CellReferenceOption) ReferenceModelClause(com.alibaba.druid.sql.dialect.oracle.ast.clause.ModelClause.ReferenceModelClause)

Aggregations

CellReferenceOption (com.alibaba.druid.sql.dialect.oracle.ast.clause.ModelClause.CellReferenceOption)2 ReferenceModelClause (com.alibaba.druid.sql.dialect.oracle.ast.clause.ModelClause.ReferenceModelClause)1