public abstract class AbstractEmptinessExpression extends Object implements Criterion
Modifier and Type | Field and Description |
---|---|
protected String |
propertyName |
Modifier | Constructor and Description |
---|---|
protected |
AbstractEmptinessExpression(String propertyName) |
Modifier and Type | Method and Description |
---|---|
protected abstract boolean |
excludeEmpty()
Should empty rows be excluded?
|
protected QueryableCollection |
getQueryableCollection(String entityName,
String propertyName,
SessionFactoryImplementor factory) |
TypedValue[] |
getTypedValues(Criteria criteria,
CriteriaQuery criteriaQuery)
Return typed values for all parameters in the rendered SQL fragment
|
String |
toSqlString(Criteria criteria,
CriteriaQuery criteriaQuery)
Render the SQL fragment
|
String |
toString() |
protected final String propertyName
protected AbstractEmptinessExpression(String propertyName)
protected abstract boolean excludeEmpty()
true
Indicates the expression should 'exists'; false
indicates 'not exists'public final String toSqlString(Criteria criteria, CriteriaQuery criteriaQuery) throws HibernateException
Criterion
toSqlString
in interface Criterion
criteria
- The local criteriacriteriaQuery
- The overall criteria queryHibernateException
- Problem during rendering.protected QueryableCollection getQueryableCollection(String entityName, String propertyName, SessionFactoryImplementor factory) throws HibernateException
HibernateException
public final TypedValue[] getTypedValues(Criteria criteria, CriteriaQuery criteriaQuery) throws HibernateException
Criterion
getTypedValues
in interface Criterion
criteria
- The local criteriacriteriaQuery
- The overall criteria queryHibernateException
- Problem determining types.Copyright © 2001-2021 Red Hat, Inc. All Rights Reserved.