/** * Creates a subquery criterion that ensures the given property is greater than all the given returned values * * @param propertyName The property name * @param propertyValue The property value * @return A Criterion instance */ public org.grails.datastore.mapping.query.api.Criteria gtAll(String propertyName, @SuppressWarnings("rawtypes") QueryableCriteria propertyValue) { addToCriteria(Property.forName(propertyName).gtAll(getHibernateDetachedCriteria(propertyValue))); return this; }
/** * Creates a subquery criterion that ensures the given property is greater than all the given returned values * * @param propertyName The property name * @param propertyValue The property value * @return A Criterion instance */ public org.grails.datastore.mapping.query.api.Criteria gtAll(String propertyName, @SuppressWarnings("rawtypes") QueryableCriteria propertyValue) { addToCriteria(Property.forName(propertyName).gtAll(convertToHibernateCriteria(propertyValue))); return this; }
@Override public Criterion toHibernateCriterion(AbstractHibernateQuery hibernateQuery, Query.GreaterThanAll criterion, String alias) { QueryableCriteria subQuery = criterion.getValue(); String propertyName = getPropertyName(criterion, alias); DetachedCriteria detachedCriteria = toHibernateDetachedCriteria(hibernateQuery, subQuery); return Property.forName(propertyName).gtAll(detachedCriteria); } });