本文整理汇总了Java中com.alibaba.druid.sql.ast.expr.SQLIdentifierExpr.getName方法的典型用法代码示例。如果您正苦于以下问题:Java SQLIdentifierExpr.getName方法的具体用法?Java SQLIdentifierExpr.getName怎么用?Java SQLIdentifierExpr.getName使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.alibaba.druid.sql.ast.expr.SQLIdentifierExpr
的用法示例。
在下文中一共展示了SQLIdentifierExpr.getName方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: simplify
import com.alibaba.druid.sql.ast.expr.SQLIdentifierExpr; //导入方法依赖的package包/类
public void simplify() {
enable = null;
validate = null;
rely = null;
if (this.name instanceof SQLIdentifierExpr) {
SQLIdentifierExpr identExpr = (SQLIdentifierExpr) this.name;
String columnName = identExpr.getName();
String normalized = SQLUtils.normalize(columnName, dbType);
if (normalized != columnName) {
this.setName(normalized);
}
}
}
示例2: simplify
import com.alibaba.druid.sql.ast.expr.SQLIdentifierExpr; //导入方法依赖的package包/类
public void simplify() {
if (this.name instanceof SQLIdentifierExpr) {
SQLIdentifierExpr identExpr = (SQLIdentifierExpr) this.name;
String columnName = identExpr.getName();
String normalized = SQLUtils.normalize(columnName, dbType);
if (columnName != normalized) {
this.setName(normalized);
}
}
}
示例3: simplify
import com.alibaba.druid.sql.ast.expr.SQLIdentifierExpr; //导入方法依赖的package包/类
public void simplify() {
super.simplify();
for (SQLSelectOrderByItem item : columns) {
SQLExpr column = item.getExpr();
if (column instanceof SQLIdentifierExpr) {
SQLIdentifierExpr identExpr = (SQLIdentifierExpr) column;
String columnName = identExpr.getName();
String normalized = SQLUtils.normalize(columnName, dbType);
if (normalized != columnName) {
item.setExpr(new SQLIdentifierExpr(columnName));
}
}
}
}
示例4: visit
import com.alibaba.druid.sql.ast.expr.SQLIdentifierExpr; //导入方法依赖的package包/类
public boolean visit(SQLExprTableSource x) {
SQLExpr expr = x.getExpr();
if (expr instanceof SQLIdentifierExpr) {
SQLIdentifierExpr identifierExpr = (SQLIdentifierExpr) expr;
String ident = identifierExpr.getName();
String mappingIdent = mappings.get(ident);
if (mappingIdent != null) {
x.setExpr(new SQLIdentifierExpr(mappingIdent));
}
}
return false;
}
示例5: SQLParensIdentifierExpr
import com.alibaba.druid.sql.ast.expr.SQLIdentifierExpr; //导入方法依赖的package包/类
public SQLParensIdentifierExpr(SQLIdentifierExpr expr) {
super(expr.getName());
}