类 AbstractEmptinessExpression
- java.lang.Object
-
- org.hibernate.criterion.AbstractEmptinessExpression
-
- 所有已实现的接口:
Serializable,Criterion
- 直接已知子类:
EmptyExpression,NotEmptyExpression
public abstract class AbstractEmptinessExpression extends Object implements Criterion
Base expression implementation for (not) emptiness checking of collection properties- 作者:
- Steve Ebersole
- 另请参阅:
- 序列化表格
-
-
字段概要
字段 修饰符和类型 字段 说明 protected StringpropertyName
-
构造器概要
构造器 限定符 构造器 说明 protectedAbstractEmptinessExpression(String propertyName)
-
方法概要
所有方法 实例方法 抽象方法 具体方法 修饰符和类型 方法 说明 protected abstract booleanexcludeEmpty()Should empty rows be excluded?protected QueryableCollectiongetQueryableCollection(String entityName, String propertyName, SessionFactoryImplementor factory)TypedValue[]getTypedValues(Criteria criteria, CriteriaQuery criteriaQuery)Return typed values for all parameters in the rendered SQL fragmentStringtoSqlString(Criteria criteria, CriteriaQuery criteriaQuery)Render the SQL fragmentStringtoString()
-
-
-
字段详细资料
-
propertyName
protected final String propertyName
-
-
构造器详细资料
-
AbstractEmptinessExpression
protected AbstractEmptinessExpression(String propertyName)
-
-
方法详细资料
-
excludeEmpty
protected abstract boolean excludeEmpty()
Should empty rows be excluded?- 返回:
trueIndicates the expression should 'exists';falseindicates 'not exists'
-
toSqlString
public final String toSqlString(Criteria criteria, CriteriaQuery criteriaQuery) throws HibernateException
从接口复制的说明:CriterionRender the SQL fragment- 指定者:
toSqlString在接口中Criterion- 参数:
criteria- The local criteriacriteriaQuery- The overall criteria query- 返回:
- The generated SQL fragment
- 抛出:
HibernateException- Problem during rendering.
-
getQueryableCollection
protected QueryableCollection getQueryableCollection(String entityName, String propertyName, SessionFactoryImplementor factory) throws HibernateException
-
getTypedValues
public final TypedValue[] getTypedValues(Criteria criteria, CriteriaQuery criteriaQuery) throws HibernateException
从接口复制的说明:CriterionReturn typed values for all parameters in the rendered SQL fragment- 指定者:
getTypedValues在接口中Criterion- 参数:
criteria- The local criteriacriteriaQuery- The overall criteria query- 返回:
- The types values (for binding)
- 抛出:
HibernateException- Problem determining types.
-
-