Class JpaUtils.CriteriaUpdate<T>

java.lang.Object
com.atlassian.bamboo.jpa.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 Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final javax.persistence.criteria.CriteriaBuilder
     
    protected final javax.persistence.criteria.Root<T>
     
    protected final javax.persistence.criteria.CriteriaUpdate<T>
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    CriteriaUpdate(org.hibernate.SessionFactory sessionFactory, Class<T> entity)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract void
     
    void
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • 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 Details

    • CriteriaUpdate

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

    • apply

      public abstract void apply()
    • executeUpdate

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