/** * Return the {@link DataSourceName} of the dataSources which back this table given a constraint. * * @param constraint A constraint which may narrow the data sources participating. * * @return A set of names for backing dataSources, given the constraints */ default Set<DataSourceName> getDataSourceNames(DataSourceConstraint constraint) { return getDataSourceNames(); }
/** * Return the {@link TableName} of the dataSources which back the original source table given a constraint. * * @param constraint A constraint which may narrow the data sources participating. * * @return A set of tablenames for backing dataSources */ @Override public Set<DataSourceName> getDataSourceNames(DataSourceConstraint constraint) { if (getConstraint().equals(constraint)) { return getDataSourceNames(); } return getSourceTable().getDataSourceNames(constraint); }
table.getDataSourceNames() );