org.hibernate.criterion

Class AbstractEmptinessExpression

Implemented Interfaces:
Criterion, Serializable
Known Direct Subclasses:
EmptyExpression, NotEmptyExpression

public abstract class AbstractEmptinessExpression
extends java.lang.Object
implements Criterion

Implementation of AbstractEmptinessExpression.
Author:
Steve Ebersole

Field Summary

protected String
propertyName

Constructor Summary

AbstractEmptinessExpression(String propertyName)

Method Summary

protected abstract boolean
excludeEmpty()
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()

Field Details

propertyName

protected final String propertyName

Constructor Details

AbstractEmptinessExpression

protected AbstractEmptinessExpression(String propertyName)

Method Details

excludeEmpty

protected abstract boolean excludeEmpty()

getQueryableCollection

protected QueryableCollection getQueryableCollection(String entityName,
                                                     String propertyName,
                                                     SessionFactoryImplementor factory)
            throws HibernateException

getTypedValues

public final TypedValue[] getTypedValues(Criteria criteria,
                                         CriteriaQuery criteriaQuery)
            throws HibernateException
Return typed values for all parameters in the rendered SQL fragment
Specified by:
getTypedValues in interface Criterion
Parameters:
criteria - TODO
criteriaQuery -
Returns:
TypedValue[]

toSqlString

public final String toSqlString(Criteria criteria,
                                CriteriaQuery criteriaQuery)
            throws HibernateException
Render the SQL fragment
Specified by:
toSqlString in interface Criterion
Parameters:
criteriaQuery -
Returns:
String

toString

public final String toString()