public class Property extends PropertyProjection
A factory for property-specific criterion and projection instances
| Modifier | Constructor and Description |
|---|---|
protected |
Property(String propertyName)
Constructs a Property.
|
| Modifier and Type | Method and Description |
|---|---|
Order |
asc()
Creates an ascending ordering for this property
|
AggregateProjection |
avg()
Creates a property avg projection
|
Criterion |
between(Object min,
Object max)
Creates a BETWEEN restriction for this property between the given min and max
|
CountProjection |
count()
Creates a property count projection
|
Order |
desc()
Creates a descending ordering for this property
|
Criterion |
eq(DetachedCriteria subselect)
Creates a sub-query equality expression for this property
|
SimpleExpression |
eq(Object value)
Creates an equality restriction.
|
Criterion |
eqAll(DetachedCriteria subselect)
Creates a equals-all sub-query expression for this property.
|
Criterion |
eqOrIsNull(Object value)
Creates an equality restriction capable of also rendering as IS NULL if the given value is
null |
PropertyExpression |
eqProperty(Property other)
Creates an equality restriction between 2 properties
|
PropertyExpression |
eqProperty(String other)
Creates an equality restriction between 2 properties
|
static Property |
forName(String propertyName)
Factory for Property instances.
|
Criterion |
ge(DetachedCriteria subselect)
Creates a sub-query greater-than-or-equal-to expression for this property
|
SimpleExpression |
ge(Object value)
Create a greater-than-or-equal-to restriction based on this property
|
Criterion |
geAll(DetachedCriteria subselect)
Creates a greater-than-or-equal-to-all sub-query expression for this property.
|
PropertyExpression |
geProperty(Property other)
Creates a greater-than-or-equal-to restriction between 2 properties
|
PropertyExpression |
geProperty(String other)
Creates a greater-than-or-equal-to restriction between 2 properties
|
Criterion |
geSome(DetachedCriteria subselect)
Creates a greater-than-or-equal-to-some sub-query expression for this property.
|
Property |
getProperty(String propertyName)
Get a component attribute of this property.
|
PropertyProjection |
group()
Creates a projection for this property as a group expression
|
Criterion |
gt(DetachedCriteria subselect)
Creates a sub-query greater-than expression for this property
|
SimpleExpression |
gt(Object value)
Create a greater-than restriction based on this property
|
Criterion |
gtAll(DetachedCriteria subselect)
Creates a greater-than-all sub-query expression for this property.
|
PropertyExpression |
gtProperty(Property other)
Creates a greater-than restriction between 2 properties
|
PropertyExpression |
gtProperty(String other)
Creates a greater-than restriction between 2 properties
|
Criterion |
gtSome(DetachedCriteria subselect)
Creates a greater-than-some sub-query expression for this property.
|
Criterion |
in(Collection values)
Creates an IN restriction for this property based on the given list of literals
|
Criterion |
in(DetachedCriteria subselect)
Creates a sub-query IN expression for this property.
|
Criterion |
in(Object... values)
Creates an IN restriction for this property based on the given list of literals
|
Criterion |
isEmpty()
Creates a restriction to check that a collection is empty
|
Criterion |
isNotEmpty()
Creates a restriction to check that a collection is not empty
|
Criterion |
isNotNull()
Creates a NOT NULL restriction
|
Criterion |
isNull()
Creates a NULL restriction
|
Criterion |
le(DetachedCriteria subselect)
Creates a sub-query less-than-or-equal-to expression for this property
|
SimpleExpression |
le(Object value)
Create a less-than-or-equal-to restriction based on this property
|
Criterion |
leAll(DetachedCriteria subselect)
Creates a less-than-or-equal-to-all sub-query expression for this property.
|
PropertyExpression |
leProperty(Property other)
Creates a less-than-or-equal-to restriction between 2 properties
|
PropertyExpression |
leProperty(String other)
Creates a less-than-or-equal-to restriction between 2 properties
|
Criterion |
leSome(DetachedCriteria subselect)
Creates a less-than-or-equal-to-some sub-query expression for this property.
|
SimpleExpression |
like(Object value)
Creates a LIKE restriction for this property
|
SimpleExpression |
like(String value,
MatchMode matchMode)
Creates a LIKE restriction for this property
|
Criterion |
lt(DetachedCriteria subselect)
Creates a sub-query less-than expression for this property
|
SimpleExpression |
lt(Object value)
Create a less-than restriction based on this property
|
Criterion |
ltAll(DetachedCriteria subselect)
Creates a less-than-all sub-query expression for this property.
|
PropertyExpression |
ltProperty(Property other)
Creates a less-than restriction between 2 properties
|
PropertyExpression |
ltProperty(String other)
Creates a less-than restriction between 2 properties
|
Criterion |
ltSome(DetachedCriteria subselect)
Creates a less-than-some sub-query expression for this property.
|
AggregateProjection |
max()
Creates a property max projection
|
AggregateProjection |
min()
Creates a property min projection
|
Criterion |
ne(DetachedCriteria subselect)
Creates a sub-query non-equality expression for this property
|
SimpleExpression |
ne(Object value)
Creates a non-equality restriction.
|
Criterion |
neOrIsNotNull(Object value)
Creates a non-equality restriction capable of also rendering as IS NOT NULL if the given value is
null |
PropertyExpression |
neProperty(Property other)
Creates a non-equality restriction between 2 properties
|
PropertyExpression |
neProperty(String other)
Creates a non-equality restriction between 2 properties
|
Criterion |
notIn(DetachedCriteria subselect)
Creates a sub-query NOT IN expression for this property.
|
getPropertyName, getTypes, isGrouped, toGroupSqlString, toSqlString, toStringas, getAliases, getColumnAliases, getColumnAliases, getColumnAliases, getColumnAliases, getColumnCount, getTypesprotected Property(String propertyName)
Constructs a Property. non-private to allow subclassing.
propertyName - The property name.public static Property forName(String propertyName)
Factory for Property instances.
propertyName - The name of the property.public Criterion between(Object min, Object max)
Creates a BETWEEN restriction for this property between the given min and max
min - The minimummax - The maximumRestrictions.between(String, Object, Object)public Criterion in(Collection values)
Creates an IN restriction for this property based on the given list of literals
values - The literal valuesRestrictions.in(String, Collection)public Criterion in(Object... values)
Creates an IN restriction for this property based on the given list of literals
values - The literal valuesRestrictions.in(String, Object[])public SimpleExpression like(Object value)
Creates a LIKE restriction for this property
value - The value to like compare withRestrictions.like(String, Object)public SimpleExpression like(String value, MatchMode matchMode)
Creates a LIKE restriction for this property
value - The value to like compare withmatchMode - The match mode to apply to the LIKERestrictions.like(String, String, MatchMode)public SimpleExpression eq(Object value)
Creates an equality restriction.
value - The value to check againstRestrictions.eq(String, Object)public Criterion eqOrIsNull(Object value)
Creates an equality restriction capable of also rendering as IS NULL if the given value is null
value - The value to check againstRestrictions.eqOrIsNull(String, Object),
eq(java.lang.Object),
isNull()public SimpleExpression ne(Object value)
Creates a non-equality restriction.
value - The value to check againstRestrictions.ne(String, Object)public Criterion neOrIsNotNull(Object value)
Creates a non-equality restriction capable of also rendering as IS NOT NULL if the given value is null
value - The value to check againstRestrictions.neOrIsNotNull(String, Object),
ne(java.lang.Object),
isNotNull()public SimpleExpression gt(Object value)
Create a greater-than restriction based on this property
value - The value to check againstRestrictions.gt(String, Object)public SimpleExpression lt(Object value)
Create a less-than restriction based on this property
value - The value to check againstRestrictions.lt(String, Object)public SimpleExpression le(Object value)
Create a less-than-or-equal-to restriction based on this property
value - The value to check againstRestrictions.le(String, Object)public SimpleExpression ge(Object value)
Create a greater-than-or-equal-to restriction based on this property
value - The value to check againstRestrictions.ge(String, Object)public PropertyExpression eqProperty(Property other)
Creates an equality restriction between 2 properties
other - The other property to compare againstRestrictions.eqProperty(String, String)public PropertyExpression eqProperty(String other)
Creates an equality restriction between 2 properties
other - The other property to compare againstRestrictions.eqProperty(String, String)public PropertyExpression neProperty(Property other)
Creates a non-equality restriction between 2 properties
other - The other property to compare againstRestrictions.neProperty(String, String)public PropertyExpression neProperty(String other)
Creates a non-equality restriction between 2 properties
other - The other property to compare againstRestrictions.neProperty(String, String)public PropertyExpression leProperty(Property other)
Creates a less-than-or-equal-to restriction between 2 properties
other - The other property to compare againstRestrictions.leProperty(String, String)public PropertyExpression leProperty(String other)
Creates a less-than-or-equal-to restriction between 2 properties
other - The other property to compare againstRestrictions.leProperty(String, String)public PropertyExpression geProperty(Property other)
Creates a greater-than-or-equal-to restriction between 2 properties
other - The other property to compare againstRestrictions.geProperty(String, String)public PropertyExpression geProperty(String other)
Creates a greater-than-or-equal-to restriction between 2 properties
other - The other property to compare againstRestrictions.geProperty(String, String)public PropertyExpression ltProperty(Property other)
Creates a less-than restriction between 2 properties
other - The other property to compare againstRestrictions.ltProperty(String, String)public PropertyExpression ltProperty(String other)
Creates a less-than restriction between 2 properties
other - The other property to compare againstRestrictions.ltProperty(String, String)public PropertyExpression gtProperty(Property other)
Creates a greater-than restriction between 2 properties
other - The other property to compare againstRestrictions.geProperty(String, String)public PropertyExpression gtProperty(String other)
Creates a greater-than restriction between 2 properties
other - The other property to compare againstRestrictions.geProperty(String, String)public Criterion isNull()
Creates a NULL restriction
Restrictions.isNull(String)public Criterion isNotNull()
Creates a NOT NULL restriction
Restrictions.isNotNull(String)public Criterion isEmpty()
Creates a restriction to check that a collection is empty
Restrictions.isEmpty(String)public Criterion isNotEmpty()
Creates a restriction to check that a collection is not empty
Restrictions.isNotEmpty(String)public CountProjection count()
Creates a property count projection
Projections.count(java.lang.String)public AggregateProjection max()
Creates a property max projection
Projections.max(java.lang.String)public AggregateProjection min()
Creates a property min projection
Projections.min(java.lang.String)public AggregateProjection avg()
Creates a property avg projection
Projections.avg(java.lang.String)public PropertyProjection group()
Creates a projection for this property as a group expression
Projections.groupProperty(java.lang.String)public Order asc()
Creates an ascending ordering for this property
public Order desc()
Creates a descending ordering for this property
public Property getProperty(String propertyName)
Get a component attribute of this property.
propertyName - The sub property namepublic Criterion eq(DetachedCriteria subselect)
Creates a sub-query equality expression for this property
subselect - The sub-querySubqueries.propertyEq(String, DetachedCriteria)public Criterion ne(DetachedCriteria subselect)
Creates a sub-query non-equality expression for this property
subselect - The sub-querySubqueries.propertyNe(String, DetachedCriteria)public Criterion lt(DetachedCriteria subselect)
Creates a sub-query less-than expression for this property
subselect - The sub-querySubqueries.propertyLt(String, DetachedCriteria)public Criterion le(DetachedCriteria subselect)
Creates a sub-query less-than-or-equal-to expression for this property
subselect - The sub-querySubqueries.propertyLe(String, DetachedCriteria)public Criterion gt(DetachedCriteria subselect)
Creates a sub-query greater-than expression for this property
subselect - The sub-querySubqueries.propertyGt(String, DetachedCriteria)public Criterion ge(DetachedCriteria subselect)
Creates a sub-query greater-than-or-equal-to expression for this property
subselect - The sub-querySubqueries.propertyGe(String, DetachedCriteria)public Criterion notIn(DetachedCriteria subselect)
Creates a sub-query NOT IN expression for this property. I.e., [prop] NOT IN [subquery]
subselect - The sub-querySubqueries.propertyNotIn(String, DetachedCriteria)public Criterion in(DetachedCriteria subselect)
Creates a sub-query IN expression for this property. I.e., [prop] IN [subquery]
subselect - The sub-querySubqueries.propertyIn(String, DetachedCriteria)public Criterion eqAll(DetachedCriteria subselect)
Creates a equals-all sub-query expression for this property. I.e., [prop] = ALL [subquery]
subselect - The sub-querySubqueries.propertyEqAll(String, DetachedCriteria)public Criterion gtAll(DetachedCriteria subselect)
Creates a greater-than-all sub-query expression for this property. I.e., [prop] > ALL [subquery]
subselect - The sub-querySubqueries.propertyGtAll(String, DetachedCriteria)public Criterion ltAll(DetachedCriteria subselect)
Creates a less-than-all sub-query expression for this property. I.e., [prop] < ALL [subquery]
subselect - The sub-querySubqueries.propertyLtAll(String, DetachedCriteria)public Criterion leAll(DetachedCriteria subselect)
Creates a less-than-or-equal-to-all sub-query expression for this property. I.e., [prop] ⇐ ALL [subquery]
subselect - The sub-querySubqueries.propertyLeAll(String, DetachedCriteria)public Criterion geAll(DetachedCriteria subselect)
Creates a greater-than-or-equal-to-all sub-query expression for this property. I.e., [prop] >= ALL [subquery]
subselect - The sub-querySubqueries.propertyGeAll(String, DetachedCriteria)public Criterion gtSome(DetachedCriteria subselect)
Creates a greater-than-some sub-query expression for this property. I.e., [prop] > SOME [subquery]
subselect - The sub-querySubqueries.propertyGtSome(String, DetachedCriteria)public Criterion ltSome(DetachedCriteria subselect)
Creates a less-than-some sub-query expression for this property. I.e., [prop] < SOME [subquery]
subselect - The sub-querySubqueries.propertyLtSome(String, DetachedCriteria)public Criterion leSome(DetachedCriteria subselect)
Creates a less-than-or-equal-to-some sub-query expression for this property. I.e., [prop] ⇐ SOME [subquery]
subselect - The sub-querySubqueries.propertyLeSome(String, DetachedCriteria)public Criterion geSome(DetachedCriteria subselect)
Creates a greater-than-or-equal-to-some sub-query expression for this property. I.e., [prop] >= SOME [subquery]
subselect - The sub-querySubqueries.propertyGeSome(String, DetachedCriteria)Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.