本文整理汇总了Java中com.akiban.sql.parser.FromList类的典型用法代码示例。如果您正苦于以下问题:Java FromList类的具体用法?Java FromList怎么用?Java FromList使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
FromList类属于com.akiban.sql.parser包,在下文中一共展示了FromList类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: visit
import com.akiban.sql.parser.FromList; //导入依赖的package包/类
public Visitable visit(Visitable v) throws StandardException {
if(v instanceof ResultColumnList)visit((ResultColumnList)v);
else if(v instanceof FromList)visit((FromList)v);
else if(v instanceof GroupByList)visit((GroupByList)v);
else if(v instanceof ResultColumn)visit((ResultColumn)v);
else if(v instanceof SelectNode){
SelectNode sn = (SelectNode)v;
ValueNode vn = sn.getWhereClause();
if( vn != null ){
ExpressionVisitor ev = new ExpressionVisitor(false);
vn.accept(ev);
where = ev.getGeneratedCommand();
}
}
else System.out.println(v.getClass().toString());
return null;
}
示例2: addTableName
import com.akiban.sql.parser.FromList; //导入依赖的package包/类
private static void addTableName(FromSubquery theSub, SelectParseInf parsInf)
throws StandardException {
FromList fromList = ((SelectNode) theSub.getSubquery()).getFromList();
if (fromList.size() == 1) {
FromTable fromT = fromList.get(0);
if (fromT instanceof FromBaseTable) {
FromBaseTable baseT = ((FromBaseTable) fromT);
String tableName = baseT.getOrigTableName().getTableName();
String corrName = theSub.getCorrelationName();
if (corrName != null) {
andTableName(parsInf, baseT);
parsInf.ctx.tableAliasMap.put(corrName,
tableName.toUpperCase());
}
}
}
}
示例3: skipChildren
import com.akiban.sql.parser.FromList; //导入依赖的package包/类
public boolean skipChildren(Visitable v) throws StandardException {
if(v instanceof ResultColumnList || v instanceof FromList || v instanceof GroupByList )return true;
return false;
}
示例4: visit
import com.akiban.sql.parser.FromList; //导入依赖的package包/类
/**
* @param nodeList
* @throws StandardException
*/
private void visit(FromList nodeList) throws StandardException {
FromListVisitor fvisitor = new FromListVisitor();
nodeList.accept(fvisitor);
tables.addAll(fvisitor.getTables());
}