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;
}
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;
}
Aggregations