Package org.hibernate.criterion
Class AbstractEmptinessExpression
- java.lang.Object
-
- org.hibernate.criterion.AbstractEmptinessExpression
-
- All Implemented Interfaces:
java.io.Serializable
,Criterion
- Direct Known Subclasses:
EmptyExpression
,NotEmptyExpression
public abstract class AbstractEmptinessExpression extends java.lang.Object implements Criterion
Base expression implementation for (not) emptiness checking of collection properties- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
propertyName
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractEmptinessExpression(java.lang.String propertyName)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract boolean
excludeEmpty()
Should empty rows be excluded?protected QueryableCollection
getQueryableCollection(java.lang.String entityName, java.lang.String propertyName, SessionFactoryImplementor factory)
TypedValue[]
getTypedValues(Criteria criteria, CriteriaQuery criteriaQuery)
Return typed values for all parameters in the rendered SQL fragmentjava.lang.String
toSqlString(Criteria criteria, CriteriaQuery criteriaQuery)
Render the SQL fragmentjava.lang.String
toString()
-
-
-
Method Detail
-
excludeEmpty
protected abstract boolean excludeEmpty()
Should empty rows be excluded?- Returns:
true
Indicates the expression should be 'exists';false
indicates 'not exists'
-
toSqlString
public final java.lang.String toSqlString(Criteria criteria, CriteriaQuery criteriaQuery) throws HibernateException
Description copied from interface:Criterion
Render the SQL fragment- Specified by:
toSqlString
in interfaceCriterion
- Parameters:
criteria
- The local criteriacriteriaQuery
- The overal criteria query- Returns:
- The generated SQL fragment
- Throws:
HibernateException
- Problem during rendering.
-
getQueryableCollection
protected QueryableCollection getQueryableCollection(java.lang.String entityName, java.lang.String propertyName, SessionFactoryImplementor factory) throws HibernateException
- Throws:
HibernateException
-
getTypedValues
public final TypedValue[] getTypedValues(Criteria criteria, CriteriaQuery criteriaQuery) throws HibernateException
Description copied from interface:Criterion
Return typed values for all parameters in the rendered SQL fragment- Specified by:
getTypedValues
in interfaceCriterion
- Parameters:
criteria
- The local criteriacriteriaQuery
- The overal criteria query- Returns:
- The types values (for binding)
- Throws:
HibernateException
- Problem determining types.
-
toString
public final java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-