public class Property extends PropertyProjection
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 an greater-than-or-equal-to restriction between 2 properties
|
PropertyExpression |
geProperty(String other)
Creates an 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 an greater-than restriction between 2 properties
|
PropertyExpression |
gtProperty(String other)
Creates an 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 an less-than-or-equal-to restriction between 2 properties
|
PropertyExpression |
leProperty(String other)
Creates an 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 an less-than restriction between 2 properties
|
PropertyExpression |
ltProperty(String other)
Creates an 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 an non-equality restriction.
|
Criterion |
neOrIsNotNull(Object value)
Creates an non-equality restriction capable of also rendering as IS NOT NULL if the given value is
null |
PropertyExpression |
neProperty(Property other)
Creates an non-equality restriction between 2 properties
|
PropertyExpression |
neProperty(String other)
Creates an 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, toString
as, getAliases, getColumnAliases, getColumnAliases, getColumnAliases, getColumnAliases, getColumnCount, getTypes
protected Property(String propertyName)
propertyName
- The property name.public static Property forName(String propertyName)
propertyName
- The name of the property.public Criterion between(Object min, Object max)
min
- The minimummax
- The maximumRestrictions.between(String, Object, Object)
public Criterion in(Collection values)
values
- The literal valuesRestrictions.in(String, Collection)
public Criterion in(Object[] values)
values
- The literal valuesRestrictions.in(String, Object[])
public SimpleExpression like(Object value)
value
- The value to like compare withRestrictions.like(String, Object)
public SimpleExpression like(String value, MatchMode matchMode)
value
- The value to like compare withmatchMode
- The match mode to apply to the LIKERestrictions.like(String, String, MatchMode)
public SimpleExpression eq(Object value)
value
- The value to check againstRestrictions.eq(String, Object)
public Criterion eqOrIsNull(Object value)
null
value
- The value to check againstRestrictions.eqOrIsNull(String, Object)
,
eq(java.lang.Object)
,
isNull()
public SimpleExpression ne(Object value)
value
- The value to check againstRestrictions.ne(String, Object)
public Criterion neOrIsNotNull(Object value)
null
value
- The value to check againstRestrictions.neOrIsNotNull(String, Object)
,
ne(java.lang.Object)
,
isNotNull()
public SimpleExpression gt(Object value)
value
- The value to check againstRestrictions.gt(String, Object)
public SimpleExpression lt(Object value)
value
- The value to check againstRestrictions.lt(String, Object)
public SimpleExpression le(Object value)
value
- The value to check againstRestrictions.le(String, Object)
public SimpleExpression ge(Object value)
value
- The value to check againstRestrictions.ge(String, Object)
public PropertyExpression eqProperty(Property other)
other
- The other property to compare againstRestrictions.eqProperty(String, String)
public PropertyExpression eqProperty(String other)
other
- The other property to compare againstRestrictions.eqProperty(String, String)
public PropertyExpression neProperty(Property other)
other
- The other property to compare againstRestrictions.neProperty(String, String)
public PropertyExpression neProperty(String other)
other
- The other property to compare againstRestrictions.neProperty(String, String)
public PropertyExpression leProperty(Property other)
other
- The other property to compare againstRestrictions.leProperty(String, String)
public PropertyExpression leProperty(String other)
other
- The other property to compare againstRestrictions.leProperty(String, String)
public PropertyExpression geProperty(Property other)
other
- The other property to compare againstRestrictions.geProperty(String, String)
public PropertyExpression geProperty(String other)
other
- The other property to compare againstRestrictions.geProperty(String, String)
public PropertyExpression ltProperty(Property other)
other
- The other property to compare againstRestrictions.ltProperty(String, String)
public PropertyExpression ltProperty(String other)
other
- The other property to compare againstRestrictions.ltProperty(String, String)
public PropertyExpression gtProperty(Property other)
other
- The other property to compare againstRestrictions.geProperty(String, String)
public PropertyExpression gtProperty(String other)
other
- The other property to compare againstRestrictions.geProperty(String, String)
public Criterion isNull()
Restrictions.isNull(String)
public Criterion isNotNull()
Restrictions.isNotNull(String)
public Criterion isEmpty()
Restrictions.isEmpty(String)
public Criterion isNotEmpty()
Restrictions.isNotEmpty(String)
public CountProjection count()
Projections.count(java.lang.String)
public AggregateProjection max()
Projections.max(java.lang.String)
public AggregateProjection min()
Projections.min(java.lang.String)
public AggregateProjection avg()
Projections.avg(java.lang.String)
public PropertyProjection group()
Projections.groupProperty(java.lang.String)
public Order asc()
public Order desc()
public Property getProperty(String propertyName)
propertyName
- The sub property namepublic Criterion eq(DetachedCriteria subselect)
subselect
- The sub-querySubqueries.propertyEq(String, DetachedCriteria)
public Criterion ne(DetachedCriteria subselect)
subselect
- The sub-querySubqueries.propertyNe(String, DetachedCriteria)
public Criterion lt(DetachedCriteria subselect)
subselect
- The sub-querySubqueries.propertyLt(String, DetachedCriteria)
public Criterion le(DetachedCriteria subselect)
subselect
- The sub-querySubqueries.propertyLe(String, DetachedCriteria)
public Criterion gt(DetachedCriteria subselect)
subselect
- The sub-querySubqueries.propertyGt(String, DetachedCriteria)
public Criterion ge(DetachedCriteria subselect)
subselect
- The sub-querySubqueries.propertyGe(String, DetachedCriteria)
public Criterion notIn(DetachedCriteria subselect)
[prop] NOT IN [subquery]
subselect
- The sub-querySubqueries.propertyNotIn(String, DetachedCriteria)
public Criterion in(DetachedCriteria subselect)
[prop] IN [subquery]
subselect
- The sub-querySubqueries.propertyIn(String, DetachedCriteria)
public Criterion eqAll(DetachedCriteria subselect)
[prop] = ALL [subquery]
subselect
- The sub-querySubqueries.propertyEqAll(String, DetachedCriteria)
public Criterion gtAll(DetachedCriteria subselect)
[prop] > ALL [subquery]
subselect
- The sub-querySubqueries.propertyGtAll(String, DetachedCriteria)
public Criterion ltAll(DetachedCriteria subselect)
[prop] < ALL [subquery]
subselect
- The sub-querySubqueries.propertyLtAll(String, DetachedCriteria)
public Criterion leAll(DetachedCriteria subselect)
[prop] <= ALL [subquery]
subselect
- The sub-querySubqueries.propertyLeAll(String, DetachedCriteria)
public Criterion geAll(DetachedCriteria subselect)
[prop] >= ALL [subquery]
subselect
- The sub-querySubqueries.propertyGeAll(String, DetachedCriteria)
public Criterion gtSome(DetachedCriteria subselect)
[prop] > SOME [subquery]
subselect
- The sub-querySubqueries.propertyGtSome(String, DetachedCriteria)
public Criterion ltSome(DetachedCriteria subselect)
[prop] < SOME [subquery]
subselect
- The sub-querySubqueries.propertyLtSome(String, DetachedCriteria)
public Criterion leSome(DetachedCriteria subselect)
[prop] <= SOME [subquery]
subselect
- The sub-querySubqueries.propertyLeSome(String, DetachedCriteria)
public Criterion geSome(DetachedCriteria subselect)
[prop] >= SOME [subquery]
subselect
- The sub-querySubqueries.propertyGeSome(String, DetachedCriteria)
Copyright © 2016 JBoss by Red Hat. All rights reserved.