本文整理了Java中net.sf.jsqlparser.statement.select.Limit.toString()
方法的一些代码示例,展示了Limit.toString()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Limit.toString()
方法的具体详情如下:
包路径:net.sf.jsqlparser.statement.select.Limit
类名称:Limit
方法名:toString
暂无
代码示例来源:origin: JSQLParser/JSqlParser
@Override
public String toString() {
StringBuilder buffer = new StringBuilder();
for (int i = 0; i < selects.size(); i++) {
if (i != 0) {
buffer.append(" ").append(operations.get(i - 1).toString()).append(" ");
}
if (brackets == null || brackets.get(i)) {
buffer.append("(").append(selects.get(i).toString()).append(")");
} else {
buffer.append(selects.get(i).toString());
}
}
if (orderByElements != null) {
buffer.append(PlainSelect.orderByToString(orderByElements));
}
if (limit != null) {
buffer.append(limit.toString());
}
if (offset != null) {
buffer.append(offset.toString());
}
if (fetch != null) {
buffer.append(fetch.toString());
}
return buffer.toString();
}
代码示例来源:origin: com.github.jsqlparser/jsqlparser
@Override
public String toString() {
StringBuilder buffer = new StringBuilder();
for (int i = 0; i < selects.size(); i++) {
if (i != 0) {
buffer.append(" ").append(operations.get(i - 1).toString()).append(" ");
}
if (brackets == null || brackets.get(i)) {
buffer.append("(").append(selects.get(i).toString()).append(")");
} else {
buffer.append(selects.get(i).toString());
}
}
if (orderByElements != null) {
buffer.append(PlainSelect.orderByToString(orderByElements));
}
if (limit != null) {
buffer.append(limit.toString());
}
if (offset != null) {
buffer.append(offset.toString());
}
if (fetch != null) {
buffer.append(fetch.toString());
}
return buffer.toString();
}
代码示例来源:origin: Quetzal-RDF/quetzal
@Override
public String toString() {
StringBuilder buf = new StringBuilder();
for (int i = 0; i < getPlainSelects().size(); i++) {
if (i != 0) {
buf.append(" ")
.append(getOperations().get(i - 1).toString())
.append(" ");
}
buf.append(getPlainSelects().get(i).toString());
}
if (getOrderByElements() != null) {
buf.append(PlainSelect.orderByToString(getOrderByElements()));
}
if (getLimit() != null) {
buf.append(getLimit().toString());
}
return buf.toString();
}
代码示例来源:origin: Quetzal-RDF/quetzal
if (ps.getLimit()!=null && ps.getLimit().getRowCount() == 0 && ps.getLimit().toString().equals("")) {
ret += " LIMIT 0";
内容来源于网络,如有侵权,请联系作者删除!