本文整理了Java中net.sf.jsqlparser.statement.delete.Delete.getOrderByElements()
方法的一些代码示例,展示了Delete.getOrderByElements()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Delete.getOrderByElements()
方法的具体详情如下:
包路径:net.sf.jsqlparser.statement.delete.Delete
类名称:Delete
方法名:getOrderByElements
暂无
代码示例来源:origin: JSQLParser/JSqlParser
public void deParse(Delete delete) {
buffer.append("DELETE");
if (delete.getTables() != null && delete.getTables().size() > 0) {
for (Table table : delete.getTables()) {
buffer.append(" ").append(table.getFullyQualifiedName());
}
}
buffer.append(" FROM ").append(delete.getTable().toString());
if (delete.getJoins() != null) {
for (Join join : delete.getJoins()) {
if (join.isSimple()) {
buffer.append(", ").append(join);
} else {
buffer.append(" ").append(join);
}
}
}
if (delete.getWhere() != null) {
buffer.append(" WHERE ");
delete.getWhere().accept(expressionVisitor);
}
if (delete.getOrderByElements() != null) {
new OrderByDeParser(expressionVisitor, buffer).deParse(delete.getOrderByElements());
}
if (delete.getLimit() != null) {
new LimitDeparser(buffer).deParse(delete.getLimit());
}
}
代码示例来源:origin: diennea/herddb
@Override
public void visit(Delete s) {
visit(s.getTable());
if (s.getOrderByElements() != null) {
s.getOrderByElements().forEach(o -> {
o.accept(this);
});
}
if (s.getWhere() != null) {
s.getWhere().accept(this);
}
}
代码示例来源:origin: com.github.jsqlparser/jsqlparser
public void deParse(Delete delete) {
buffer.append("DELETE");
if (delete.getTables() != null && delete.getTables().size() > 0) {
for (Table table : delete.getTables()) {
buffer.append(" ").append(table.getFullyQualifiedName());
}
}
buffer.append(" FROM ").append(delete.getTable().toString());
if (delete.getJoins() != null) {
for (Join join : delete.getJoins()) {
if (join.isSimple()) {
buffer.append(", ").append(join);
} else {
buffer.append(" ").append(join);
}
}
}
if (delete.getWhere() != null) {
buffer.append(" WHERE ");
delete.getWhere().accept(expressionVisitor);
}
if (delete.getOrderByElements() != null) {
new OrderByDeParser(expressionVisitor, buffer).deParse(delete.getOrderByElements());
}
if (delete.getLimit() != null) {
new LimitDeparser(buffer).deParse(delete.getLimit());
}
}
内容来源于网络,如有侵权,请联系作者删除!