List of usage examples for javax.persistence TypedQuery executeUpdate
int executeUpdate();
From source file:org.apache.rave.portal.repository.impl.JpaWidgetRepository.java
@Override public int deleteAllWidgetRatings(String userId) { TypedQuery<JpaWidgetRating> query = manager.createNamedQuery(JpaWidgetRating.DELETE_ALL_BY_USER, JpaWidgetRating.class); query.setParameter("userId", userId == null ? null : Long.parseLong(userId)); return query.executeUpdate(); }