/** * Returns the names of the columns that are specified within this <code>Restrictions</code> and the other one * as a comma separated <code>String</code>. * * @param otherRestriction the other restrictions * @return the names of the columns that are specified within this <code>Restrictions</code> and the other one * as a comma separated <code>String</code>. */ protected final String getColumnsInCommons(Restriction otherRestriction) { Set<ColumnDefinition> commons = new HashSet<>(getColumnDefs()); commons.retainAll(otherRestriction.getColumnDefs()); StringBuilder builder = new StringBuilder(); for (ColumnDefinition columnDefinition : commons) { if (builder.length() != 0) builder.append(" ,"); builder.append(columnDefinition.name); } return builder.toString(); }
/** * Returns the names of the columns that are specified within this <code>Restrictions</code> and the other one * as a comma separated <code>String</code>. * * @param otherRestriction the other restrictions * @return the names of the columns that are specified within this <code>Restrictions</code> and the other one * as a comma separated <code>String</code>. */ protected final String getColumnsInCommons(Restriction otherRestriction) { Set<ColumnDefinition> commons = new HashSet<>(getColumnDefs()); commons.retainAll(otherRestriction.getColumnDefs()); StringBuilder builder = new StringBuilder(); for (ColumnDefinition columnDefinition : commons) { if (builder.length() != 0) builder.append(" ,"); builder.append(columnDefinition.name); } return builder.toString(); }
/** * Returns the names of the columns that are specified within this <code>Restrictions</code> and the other one * as a comma separated <code>String</code>. * * @param otherRestriction the other restrictions * @return the names of the columns that are specified within this <code>Restrictions</code> and the other one * as a comma separated <code>String</code>. */ protected final String getColumnsInCommons(Restriction otherRestriction) { Set<ColumnDefinition> commons = new HashSet<>(getColumnDefs()); commons.retainAll(otherRestriction.getColumnDefs()); StringBuilder builder = new StringBuilder(); for (ColumnDefinition columnDefinition : commons) { if (builder.length() != 0) builder.append(" ,"); builder.append(columnDefinition.name); } return builder.toString(); }
throw new InvalidRequestException("Unsupported restriction: " + relation); for (ColumnDefinition def : relation.toRestriction(cfm, boundNames).getColumnDefs()) this.notNullColumns.add(def);
throw new InvalidRequestException("Unsupported restriction: " + relation); for (ColumnDefinition def : relation.toRestriction(cfm, boundNames).getColumnDefs()) this.notNullColumns.add(def);
throw new InvalidRequestException("Unsupported restriction: " + relation); for (ColumnDefinition def : relation.toRestriction(cfm, boundNames).getColumnDefs()) this.notNullColumns.add(def);