本文整理了Java中org.apache.cayenne.util.Util.join()
方法的一些代码示例,展示了Util.join()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Util.join()
方法的具体详情如下:
包路径:org.apache.cayenne.util.Util
类名称:Util
方法名:join
暂无
代码示例来源:origin: org.apache.cayenne/cayenne-dbsync
protected StringBuilder toString(StringBuilder res) {
if (includes.isEmpty()) {
// Do nothing.
} else if (includes.size() > 1) {
res.append("(").append(Util.join(includes, " OR ")).append(")");
} else {
res.append(includes.first().pattern());
}
if (!excludes.isEmpty()) {
res.append(" AND NOT (").append(Util.join(includes, " OR ")).append(")");
}
return res;
}
代码示例来源:origin: org.apache.cayenne/cayenne-dbsync
protected StringBuilder toString(StringBuilder res, String prefix) {
res.append(prefix).append("Tables: ").append("\n");
for (IncludeTableFilter include : includes) {
include.toString(res, prefix + " ");
}
if (!excludes.isEmpty()) {
res.append(prefix).append(" ").append(Util.join(excludes, " OR ")).append("\n");
}
return res;
}
代码示例来源:origin: org.apache.cayenne/cayenne-project
private String getJoins(DbRelationship relationship) {
List<String> joins = new ArrayList<>();
for (DbJoin join : relationship.getJoins()) {
joins.add("[source=" + join.getSourceName() + ",target=" + join.getTargetName() + "]");
}
Collections.sort(joins);
return Util.join(joins, ",");
}
内容来源于网络,如有侵权,请联系作者删除!