use of org.springframework.cloud.gcp.data.datastore.core.mapping.event.AfterFindByKeyEvent in project spring-cloud-gcp by spring-cloud.
the class DatastoreTemplate method performFindByKey.
private <T> Collection<T> performFindByKey(Iterable<?> ids, Class<T> entityClass) {
Set<Key> keys = getKeysFromIds(ids, entityClass);
List<T> results = findAllById(keys, entityClass, new ReadContext());
maybeEmitEvent(new AfterFindByKeyEvent(results, keys));
return results;
}
Aggregations