use of com.revolsys.record.query.Q in project com.revolsys.open by revolsys.
the class AbstractRecordLayer method setSelectedRecordsById.
public void setSelectedRecordsById(final Identifier id) {
final RecordDefinition recordDefinition = getRecordDefinition();
if (recordDefinition != null) {
final FieldDefinition idField = recordDefinition.getIdField();
if (idField == null) {
clearSelectedRecords();
} else {
final Query query = Query.where(Q::equal, idField, id);
setSelectedRecords(query);
}
}
}
Aggregations