public void delete ( List < ? > entities ) { try { entityManager . executeEntityListeners ( CallbackType . PRE_DELETE , entities ) ; Key [ ] nativeKeys = new Key [ entities . size ( ) ] ; for ( int i = 0 ; i < entities . size ( ) ; i ++ ) { nativeKeys [ i ] = Marshaller . marshalKey ( entityManager , entities . get ( i ) ) ; } nativeWriter . delete ( nativeKeys ) ; entityManager . executeEntityListeners ( CallbackType . POST_DELETE , entities ) ; } catch ( DatastoreException exp ) { throw DatastoreUtils . wrap ( exp ) ; } }
Deletes the given entities from the Cloud Datastore .