Top Description Fields Constructors Methods
org.hibernate.criterion

public abstract Class AbstractEmptinessExpression

extends Object
implements Criterion
Class Inheritance
All Implemented Interfaces
org.hibernate.criterion.Criterion, java.io.Serializable
Known Direct Subclasses
org.hibernate.criterion.EmptyExpression, org.hibernate.criterion.NotEmptyExpression
Imports
org.hibernate.Criteria, .HibernateException, .MappingException, .QueryException, org.hibernate.engine.spi.SessionFactoryImplementor, .TypedValue, org.hibernate.persister.collection.QueryableCollection, org.hibernate.persister.entity.Loadable, .PropertyMapping, org.hibernate.sql.ConditionFragment, org.hibernate.type.CollectionType, .Type

Base expression implementation for (not) emptiness checking of collection properties
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private static final TypedValue[]
protected final String

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
protected abstract boolean

Returns:

true Indicates the expression should 'exists'; false indicates 'not exists'
excludeEmpty
()

Should empty rows be excluded?

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

Deprecated as a consequence of SessionFactoryImplementor being deprecated.
public final TypedValue[]
getTypedValues(Criteria
The local criteria
criteria
,
CriteriaQuery
The overall criteria query
criteriaQuery
)

Implements org.hibernate.criterion.Criterion.getTypedValues.

Return typed values for all parameters in the rendered SQL fragment
public final String
toSqlString(Criteria
The local criteria
criteria
,
CriteriaQuery
The overall criteria query
criteriaQuery
)

Implements org.hibernate.criterion.Criterion.toSqlString.

Render the SQL fragment
public final String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

NO_VALUESback to summary
private static final TypedValue[] NO_VALUES
propertyNameback to summary
protected final String propertyName

Constructor Detail

AbstractEmptinessExpressionback to summary
protected AbstractEmptinessExpression(String propertyName)

Method Detail

excludeEmptyback to summary
protected abstract boolean excludeEmpty()

Should empty rows be excluded?

Returns:boolean

true Indicates the expression should 'exists'; false indicates 'not exists'

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

Deprecated

as a consequence of SessionFactoryImplementor being deprecated. See corresponding docs for further information.

getTypedValuesback to summary
public final TypedValue[] getTypedValues(Criteria criteria, CriteriaQuery criteriaQuery) throws HibernateException

Implements org.hibernate.criterion.Criterion.getTypedValues.

Doc from org.hibernate.criterion.Criterion.getTypedValues.

Return typed values for all parameters in the rendered SQL fragment

Parameters
criteria:Criteria

The local criteria

criteriaQuery:CriteriaQuery

The overall criteria query

Returns:TypedValue[]

The types values (for binding)

Annotations
@Override
Exceptions
HibernateException:
Problem determining types.
toSqlStringback to summary
public final String toSqlString(Criteria criteria, CriteriaQuery criteriaQuery) throws HibernateException

Implements org.hibernate.criterion.Criterion.toSqlString.

Doc from org.hibernate.criterion.Criterion.toSqlString.

Render the SQL fragment

Parameters
criteria:Criteria

The local criteria

criteriaQuery:CriteriaQuery

The overall criteria query

Returns:String

The generated SQL fragment

Annotations
@Override
Exceptions
HibernateException:
Problem during rendering.
toStringback to summary
public final String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override