Class DetachedCriteriaHelper

java.lang.Object
org.hibernate.criterion.DetachedCriteria
com.peterphi.std.guice.hibernate.dao.DetachedCriteriaHelper
All Implemented Interfaces:
Serializable, org.hibernate.criterion.CriteriaSpecification

public class DetachedCriteriaHelper extends org.hibernate.criterion.DetachedCriteria
Allows a Criteria to be wrapped as a DetachedCriteria, allowing the use of Criteria objects in subqueries without having to follow an entirely separate codepath. Should
See Also:
  • Field Summary

    Fields inherited from interface org.hibernate.criterion.CriteriaSpecification

    ALIAS_TO_ENTITY_MAP, DISTINCT_ROOT_ENTITY, FULL_JOIN, INNER_JOIN, LEFT_JOIN, PROJECTION, ROOT_ALIAS, ROOT_ENTITY
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.hibernate.criterion.DetachedCriteria
    wrap(org.hibernate.Criteria criteria)
    Wraps an existing Criteria as a DetachedCriteria

    Methods inherited from class org.hibernate.criterion.DetachedCriteria

    add, addOrder, createAlias, createAlias, createAlias, createAlias, createAlias, createCriteria, createCriteria, createCriteria, createCriteria, createCriteria, createCriteria, createCriteria, createCriteria, forClass, forClass, forEntityName, forEntityName, getAlias, getExecutableCriteria, setComment, setFetchMode, setLockMode, setLockMode, setProjection, setResultTransformer, setTimeout, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Method Details

    • wrap

      public static org.hibernate.criterion.DetachedCriteria wrap(org.hibernate.Criteria criteria)
      Wraps an existing Criteria as a DetachedCriteria
      Parameters:
      criteria -
      Returns: