public class Restrictions extends ArrayList<Restriction>
modCount
Constructor and Description |
---|
Restrictions() |
Modifier and Type | Method and Description |
---|---|
Restrictions |
add(String property,
Object value)
Add a RestrictionType.EQUALS
|
Restrictions |
add(String property,
RestrictionType restrictionType)
Add a restriction
|
Restrictions |
add(String property,
RestrictionType restrictionType,
Calendar value,
javax.persistence.TemporalType temporalType)
Add a Calendar restriction
|
Restrictions |
add(String property,
RestrictionType restrictionType,
Date value,
javax.persistence.TemporalType temporalType)
Add a Date restriction
|
Restrictions |
add(String property,
RestrictionType restrictionType,
Object value)
Add a restriction
|
Restrictions |
add(String property,
RestrictionType restrictionType,
Object value,
LikeType likeType)
Add a restriction
|
Restrictions |
addQueryString(String property)
Add a RestrictionType.QUERY_STRING
|
Restrictions |
addQueryString(String property,
List<QueryParameter> parameters)
Add a RestrictionType.QUERY_STRING
|
Restrictions |
addQueryString(String property,
QueryParameter parameter)
Add a RestrictionType.QUERY_STRING
|
Restrictions |
endGroup()
Add a RestrictionType.END_GROUP
|
Restrictions |
equals(String property,
Calendar value,
javax.persistence.TemporalType temporalType)
Add a Calendar RestrictionType.EQUALS (property '=' value)
|
Restrictions |
equals(String property,
Date value,
javax.persistence.TemporalType temporalType)
Add a Date RestrictionType.EQUALS (property '=' value)
|
Restrictions |
equals(String property,
Object value)
Add a RestrictionType.EQUALS (property '=' value)
|
String |
getQueryString() |
Restrictions |
greaterEqualsThan(String property,
Calendar value,
javax.persistence.TemporalType temporalType)
Add a Calendar RestrictionType.GREATER_EQUALS_THAN (property '>=' value)
|
Restrictions |
greaterEqualsThan(String property,
Date value,
javax.persistence.TemporalType temporalType)
Add a Date RestrictionType.GREATER_EQUALS_THAN (property '>=' value)
|
Restrictions |
greaterEqualsThan(String property,
Object value)
Add a RestrictionType.GREATER_EQUALS_THAN (property '>=' value)
|
Restrictions |
greaterThan(String property,
Calendar value,
javax.persistence.TemporalType temporalType)
Add a Calendar RestrictionType.GREATER_THAN (property '>' value)
|
Restrictions |
greaterThan(String property,
Date value,
javax.persistence.TemporalType temporalType)
Add a Date RestrictionType.GREATER_THAN (property '>' value)
|
Restrictions |
greaterThan(String property,
Object value)
Add a RestrictionType.GREATER_THAN (property '>' value)
|
Restrictions |
in(String property,
Object value)
Add a RestrictionType.IN (property 'in' value)
|
Restrictions |
isNotNull(String property)
Add a RestrictionType.NOT_NULL (property 'is not null')
|
Restrictions |
isNull(String property)
Add a RestrictionType.NULL (property 'is null')
|
Restrictions |
lessEqualsThan(String property,
Calendar value,
javax.persistence.TemporalType temporalType)
Add a Calendar RestrictionType.LESS_EQUALS_THAN (property '<=' value)
|
Restrictions |
lessEqualsThan(String property,
Date value,
javax.persistence.TemporalType temporalType)
Add a Date RestrictionType.LESS_EQUALS_THAN (property '<=' value)
|
Restrictions |
lessEqualsThan(String property,
Object value)
Add a RestrictionType.LESS_EQUALS_THAN (property '<=' value)
|
Restrictions |
lessThan(String property,
Calendar value,
javax.persistence.TemporalType temporalType)
Add a Calendar RestrictionType.LESS_THAN (property '<' value)
|
Restrictions |
lessThan(String property,
Date value,
javax.persistence.TemporalType temporalType)
Add a Date RestrictionType.LESS_THAN (property '<' value)
|
Restrictions |
lessThan(String property,
Object value)
Add a RestrictionType.LESS_THAN (property '<' value)
|
Restrictions |
like(String property,
Object value)
Add a RestrictionType.LIKE (property 'like' value)
|
Restrictions |
like(String property,
Object value,
LikeType likeType)
Add a RestrictionType.LIKE (property 'like' value)
|
Restrictions |
notEquals(String property,
Calendar value,
javax.persistence.TemporalType temporalType)
Add a Calendar RestrictionType.NOT_EQUALS (property '!
|
Restrictions |
notEquals(String property,
Date value,
javax.persistence.TemporalType temporalType)
Add a Date RestrictionType.NOT_EQUALS (property '!
|
Restrictions |
notEquals(String property,
Object value)
Add a RestrictionType.NOT_EQUALS (property '!
|
Restrictions |
notIn(String property,
Object value)
Add a RestrictionType.NOT_IN (property 'not in' value)
|
Restrictions |
notLike(String property,
Object value)
Add a RestrictionType.NOT_LIKE (property 'not like' value)
|
Restrictions |
notLike(String property,
Object value,
LikeType likeType)
Add a RestrictionType.NOT_LIKE (property 'not like' value)
|
Restrictions |
or()
Add a RestrictionType.OR
|
Restrictions |
startGroup()
Add a RestrictionType.START_GROUP
|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeRange, retainAll, set, size, subList, toArray, toArray, trimToSize
equals, hashCode
containsAll, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
containsAll, equals, hashCode
public Restrictions add(String property, RestrictionType restrictionType)
property
- restrictionType
- public Restrictions add(String property, Object value)
property
- value
- public Restrictions add(String property, RestrictionType restrictionType, Date value, javax.persistence.TemporalType temporalType)
property
- restrictionType
- value
- temporalType
- public Restrictions add(String property, RestrictionType restrictionType, Calendar value, javax.persistence.TemporalType temporalType)
property
- restrictionType
- value
- temporalType
- public Restrictions add(String property, RestrictionType restrictionType, Object value)
property
- restrictionType
- value
- public Restrictions add(String property, RestrictionType restrictionType, Object value, LikeType likeType)
property
- restrictionType
- value
- likeType
- public Restrictions addQueryString(String property)
property
- public Restrictions addQueryString(String property, List<QueryParameter> parameters)
property
- parameters
- public Restrictions addQueryString(String property, QueryParameter parameter)
property
- parameter
- public Restrictions isNull(String property)
property
- public Restrictions isNotNull(String property)
property
- public Restrictions like(String property, Object value)
property
- value
- public Restrictions like(String property, Object value, LikeType likeType)
property
- value
- likeType
- public Restrictions notLike(String property, Object value)
property
- value
- public Restrictions notLike(String property, Object value, LikeType likeType)
property
- value
- likeType
- public Restrictions greaterThan(String property, Object value)
property
- value
- public Restrictions greaterThan(String property, Date value, javax.persistence.TemporalType temporalType)
property
- value
- temporalType
- public Restrictions greaterThan(String property, Calendar value, javax.persistence.TemporalType temporalType)
property
- value
- temporalType
- public Restrictions greaterEqualsThan(String property, Object value)
property
- value
- public Restrictions greaterEqualsThan(String property, Date value, javax.persistence.TemporalType temporalType)
property
- value
- temporalType
- public Restrictions greaterEqualsThan(String property, Calendar value, javax.persistence.TemporalType temporalType)
property
- value
- temporalType
- public Restrictions lessThan(String property, Object value)
property
- value
- public Restrictions lessThan(String property, Date value, javax.persistence.TemporalType temporalType)
property
- value
- temporalType
- public Restrictions lessThan(String property, Calendar value, javax.persistence.TemporalType temporalType)
property
- value
- temporalType
- public Restrictions lessEqualsThan(String property, Object value)
property
- value
- public Restrictions lessEqualsThan(String property, Date value, javax.persistence.TemporalType temporalType)
property
- value
- temporalType
- public Restrictions lessEqualsThan(String property, Calendar value, javax.persistence.TemporalType temporalType)
property
- value
- temporalType
- public Restrictions in(String property, Object value)
property
- value
- public Restrictions notIn(String property, Object value)
property
- value
- public Restrictions equals(String property, Object value)
property
- value
- public Restrictions equals(String property, Date value, javax.persistence.TemporalType temporalType)
property
- value
- temporalType
- public Restrictions equals(String property, Calendar value, javax.persistence.TemporalType temporalType)
property
- value
- temporalType
- public Restrictions notEquals(String property, Object value)
property
- value
- public Restrictions notEquals(String property, Date value, javax.persistence.TemporalType temporalType)
property
- value
- temporalType
- public Restrictions notEquals(String property, Calendar value, javax.persistence.TemporalType temporalType)
property
- value
- temporalType
- public Restrictions or()
public Restrictions startGroup()
public Restrictions endGroup()
public String getQueryString()
Copyright © 2015. All rights reserved.