本文整理汇总了Java中net.sf.jsqlparser.schema.Table.getFullyQualifiedName方法的典型用法代码示例。如果您正苦于以下问题:Java Table.getFullyQualifiedName方法的具体用法?Java Table.getFullyQualifiedName怎么用?Java Table.getFullyQualifiedName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类net.sf.jsqlparser.schema.Table
的用法示例。
在下文中一共展示了Table.getFullyQualifiedName方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: visit
import net.sf.jsqlparser.schema.Table; //导入方法依赖的package包/类
@Override
public void visit(Column tableColumn) {
final Table table = tableColumn.getTable();
String tableName = null;
if (table != null) {
if (table.getAlias() != null) {
tableName = table.getAlias().getName();
} else {
tableName = table.getFullyQualifiedName();
}
}
if (tableName != null && !tableName.isEmpty()) {
buffer.append(tableName).append(".");
}
buffer.append(tableColumn.getColumnName());
}
示例2: visit
import net.sf.jsqlparser.schema.Table; //导入方法依赖的package包/类
@Override
public void visit(Table tableName) {
String tableWholeName = tableName.getFullyQualifiedName();
if (!otherItemNames.contains(tableWholeName.toLowerCase())
&& !tables.contains(tableWholeName)) {
tables.add(tableWholeName);
}
}
示例3: visit
import net.sf.jsqlparser.schema.Table; //导入方法依赖的package包/类
@Override
public void visit(Table tableName) {
String tableWholeName = tableName.getFullyQualifiedName();
if (!otherItemNames.contains(tableWholeName.toLowerCase())
&& !tables.contains(tableWholeName)) {
tables.add(tableName, (Table t) -> t.getFullyQualifiedName());
}
}
示例4: visit
import net.sf.jsqlparser.schema.Table; //导入方法依赖的package包/类
@Override
public void visit(Table table)
{
String fullyQualifiedName = table.getFullyQualifiedName();
if (!otherItemNames.contains(fullyQualifiedName.toLowerCase()))
{
String oldTableName=table.getName();
String newTableName=this.tableRenamer.rename(oldTableName);
table.setName(newTableName);
}
}
示例5: visit
import net.sf.jsqlparser.schema.Table; //导入方法依赖的package包/类
/**
* FromItemVisitor
* @param table
*/
@Override
public void visit(Table table) {
if (table.getSchemaName() == null) {
throw new QueryException("Table namespace not defined: %s", table.getFullyQualifiedName());
}
if (table.getAlias() == null || table.getAlias().getName() == null) {
throw new QueryException("Table alias not defined: %s", table.getFullyQualifiedName());
}
String alias = table.getAlias().getName();
if (selectDef.getTop().hasAlias(alias)) {
throw new QueryException("Duplicate table alias: %s", alias);
}
TableId tid = new TableId(table.getSchemaName().toLowerCase(), table.getName().toLowerCase());
ServerTable tmd = mf.getTable(tid);
if (tmd == null) {
throw new QueryException("Table not found: %s", table.getFullyQualifiedName());
}
if (!selectDef.isSameConnectionName(tmd.getTable().getConnectionName())) {
throw new QueryException("Table connections do not match: %s", tmd.getId());
}
selectDef.getTables().put(alias, new TableDef(tmd, selectDef));
}
示例6: visit
import net.sf.jsqlparser.schema.Table; //导入方法依赖的package包/类
public void visit(Table tableName) {
String tableWholeName = tableName.getFullyQualifiedName();
tables.add(tableWholeName);
}