Class JpaUtils.CriteriaUpdate<T>

  • Enclosing class:
    JpaUtils

    public abstract static class JpaUtils.CriteriaUpdate<T>
    extends Object
    Creates a CriteriaUpdate wrapper that initialises commonly used JPA variables. You can customise the query through apply() and run it with executeUpdate()
    • Field Detail

      • cb

        protected final javax.persistence.criteria.CriteriaBuilder cb
      • update

        protected final javax.persistence.criteria.CriteriaUpdate<T> update
      • entity

        protected final javax.persistence.criteria.Root<T> entity
    • Constructor Detail

      • CriteriaUpdate

        protected CriteriaUpdate​(org.hibernate.SessionFactory sessionFactory,
                                 Class<T> entity)
    • Method Detail

      • apply

        public abstract void apply()
      • executeUpdate

        public void executeUpdate()
        See Also:
        Query.executeUpdate()