use of com.google.cloud.spring.data.datastore.core.mapping.event.AfterFindByKeyEvent in project spring-cloud-gcp by GoogleCloudPlatform.
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