org.hibernate.criterion.Property.ltAll()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(1.8k)|赞(0)|评价(0)|浏览(148)

本文整理了Java中org.hibernate.criterion.Property.ltAll()方法的一些代码示例,展示了Property.ltAll()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Property.ltAll()方法的具体详情如下:
包路径:org.hibernate.criterion.Property
类名称:Property
方法名:ltAll

Property.ltAll介绍

[英]Creates a less-than-all sub-query expression for this property. I.e., [prop] < ALL [subquery]
[中]为此属性创建一个小于所有子查询表达式。也就是说,[prop]<ALL[subquery]

代码示例

代码示例来源:origin: org.grails/grails-datastore-gorm-hibernate-core

/**
 * Creates a subquery criterion that ensures the given property is less 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 ltAll(String propertyName,
                               @SuppressWarnings("rawtypes") QueryableCriteria propertyValue) {
  addToCriteria(Property.forName(propertyName).ltAll(convertToHibernateCriteria(propertyValue)));
  return this;
}

代码示例来源:origin: org.grails/grails-hibernate

/**
 * Creates a subquery criterion that ensures the given property is less 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 ltAll(String propertyName,
     @SuppressWarnings("rawtypes") QueryableCriteria propertyValue) {
  addToCriteria(Property.forName(propertyName).ltAll(getHibernateDetachedCriteria(propertyValue)));
  return this;
}

代码示例来源:origin: org.grails/grails-datastore-gorm-hibernate-core

@Override
  public Criterion toHibernateCriterion(AbstractHibernateQuery hibernateQuery, Query.LessThanAll criterion, String alias) {
    DetachedCriteria detachedCriteria = toHibernateDetachedCriteria(hibernateQuery,criterion.getValue());
    return Property.forName(getPropertyName(criterion, alias)).ltAll(detachedCriteria);
  }
});

相关文章