protected <E extends Identifiable> List<E> findEntitiesMarkedForDeletion(EntityManager em, Class<E> type, final int limit) {
		requireArgument(em != null, "The entity manager cannot be null.");
		requireArgument(type != null, "The entity cannot be null.");
		requireArgument(limit == -1 || limit > 0, "Limit if not -1, must be greater than 0.");

		em.getEntityManagerFactory().getCache().evictAll();
		return JPAEntity.findEntitiesMarkedForDeletion(em, type, limit);
	}
protected < E extends Identifiable > List < E > findEntitiesMarkedForDeletion ( EntityManager em , Class < E > type , final int limit ) { requireArgument ( em != null , "The entity manager cannot be null." ) ; requireArgument ( type != null , "The entity cannot be null." ) ; requireArgument ( limit == - 1 || limit > 0 , "Limit if not -1, must be greater than 0." ) ; em . getEntityManagerFactory ( ) . getCache ( ) . evictAll ( ) ; return JPAEntity . findEntitiesMarkedForDeletion ( em , type , limit ) ; }
Returns a list of entities of the given type that are marked for deletion, but have not yet been physically deleted.

@param   <E>   	The entity type.
@param   em    	The entity manager to use.  Cannot be null.
@param   type  	The runtime type of the values to return.
@param	limit	The number of entities to find. If -1, finds all such entities.

@return  The list of entities marked for deletion.  Will never return null, but may be empty.