private < E > List < E > fetch ( Class < E > entityClass , Key [ ] nativeKeys ) { try { List < Entity > nativeEntities = nativeReader . fetch ( nativeKeys ) ; List < E > entities = DatastoreUtils . toEntities ( entityClass , nativeEntities ) ; entityManager . executeEntityListeners ( CallbackType . POST_LOAD , entities ) ; return entities ; } catch ( DatastoreException exp ) { throw new EntityManagerException ( exp ) ; } }
Fetches a list of entities for the given native keys .