Class JpaUtils.CriteriaDelete<T>

java.lang.Object
com.atlassian.bamboo.jpa.JpaUtils.CriteriaDelete<T>
Enclosing class:
JpaUtils

public abstract static class JpaUtils.CriteriaDelete<T> extends Object
Creates a CriteriaDelete 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.CriteriaDelete<T>
     
    protected final javax.persistence.criteria.Root<T>
     
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    abstract void
     
    int
     

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

      protected final javax.persistence.criteria.CriteriaDelete<T> delete
    • entity

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

    • CriteriaDelete

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

    • apply

      public abstract void apply()
    • executeUpdate

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