public class Restriction extends Object
Constructor and Description |
---|
Restriction() |
Restriction(RestrictionType restrictionType) |
Restriction(String property,
Object value) |
Restriction(String property,
RestrictionType restrictionType) |
Restriction(String property,
RestrictionType restrictionType,
Calendar value,
javax.persistence.TemporalType temporalType) |
Restriction(String property,
RestrictionType restrictionType,
Date value,
javax.persistence.TemporalType temporalType) |
Restriction(String property,
RestrictionType restrictionType,
Object value) |
Restriction(String property,
RestrictionType restrictionType,
Object value,
boolean ilike) |
Restriction(String property,
RestrictionType restrictionType,
Object value,
LikeType likeType) |
Restriction(String property,
RestrictionType restrictionType,
Object value,
LikeType likeType,
boolean ilike) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
static Restriction |
equals(String property,
Calendar value,
javax.persistence.TemporalType temporalType)
Creates a Restrition of type EQUALS
|
static Restriction |
equals(String property,
Date value,
javax.persistence.TemporalType temporalType)
Creates a Restrition of type EQUALS
|
static Restriction |
equals(String property,
Object value)
Creates a Restrition of type EQUALS
|
LikeType |
getLikeType() |
List<QueryParameter> |
getParameters() |
String |
getProperty() |
RestrictionType |
getRestrictionType() |
javax.persistence.TemporalType |
getTemporalType() |
Object |
getValue() |
static Restriction |
greaterEqualsThan(String property,
Calendar value,
javax.persistence.TemporalType temporalType)
Creates a Restrition of type GREATER_EQUALS_THAN
|
static Restriction |
greaterEqualsThan(String property,
Date value,
javax.persistence.TemporalType temporalType)
Creates a Restrition of type GREATER_EQUAS_THAN
|
static Restriction |
greaterEqualsThan(String property,
Object value)
Creates a Restrition of type GREATER_EQUALS_THHAN
|
static Restriction |
greaterThan(String property,
Calendar value,
javax.persistence.TemporalType temporalType)
Creates a Restrition of type GREATER_THAN
|
static Restriction |
greaterThan(String property,
Date value,
javax.persistence.TemporalType temporalType)
Creates a Restrition of type GREATER_THAN
|
static Restriction |
greaterThan(String property,
Object value)
Creates a Restrition of type GREATER_THAN
|
int |
hashCode() |
static Restriction |
in(String property,
Object value)
Creates a Restrition of type IN
|
boolean |
isIlike()
Indicates if LIKE type is not case sensitive
|
static Restriction |
isNotNull(String property)
Creates a Restrition of type NOT_NULL
|
static Restriction |
isNull(String property)
Creates a Restrition of type NULL
|
static Restriction |
lessEqualsThan(String property,
Calendar value,
javax.persistence.TemporalType temporalType)
Creates a Restrition of type LESS_EQUALS_THAN
|
static Restriction |
lessEqualsThan(String property,
Date value,
javax.persistence.TemporalType temporalType)
Creates a Restrition of type LESS_EQUALS_THAN
|
static Restriction |
lessEqualsThan(String property,
Object value)
Creates a Restrition of type LESS_EQUAS_THAN
|
static Restriction |
lessThan(String property,
Calendar value,
javax.persistence.TemporalType temporalType)
Creates a Restrition of type LESS_THAN
|
static Restriction |
lessThan(String property,
Date value,
javax.persistence.TemporalType temporalType)
Creates a Restrition of type LESS_THAN
|
static Restriction |
lessThan(String property,
Object value)
Creates a Restrition of type LESS_THAN
|
static Restriction |
like(String property,
Object value)
Creates a Restrition of type LIKE
|
static Restriction |
like(String property,
Object value,
boolean ilike)
Creates a Restrition of type LIKE
|
static Restriction |
like(String property,
Object value,
LikeType likeType)
Creates a Restrition of type LIKE
|
static Restriction |
like(String property,
Object value,
LikeType likeType,
boolean ilike)
Creates a Restrition of type LIKE
|
static Restriction |
notEquals(String property,
Calendar value,
javax.persistence.TemporalType temporalType)
Creates a Restrition of type NOT_EQUALS
|
static Restriction |
notEquals(String property,
Date value,
javax.persistence.TemporalType temporalType)
Creates a Restrition of type NOT_EQUALS
|
static Restriction |
notEquals(String property,
Object value)
Creates a Restrition of type NOT_EQUALS
|
static Restriction |
notIn(String property,
Object value)
Creates a Restrition of type NOT_IN
|
static Restriction |
notLike(String property,
Object value)
Creates a Restrition of type NOT_LIKE
|
static Restriction |
notLike(String property,
Object value,
boolean ilike)
Creates a Restrition of type NOT_LIKE
|
static Restriction |
notLike(String property,
Object value,
LikeType likeType)
Creates a Restrition of type NOT_LIKE
|
static Restriction |
notLike(String property,
Object value,
LikeType likeType,
boolean ilike)
Creates a Restrition of type NOT_LIKE
|
void |
setIlike(boolean ilike)
Set if LIKE type is not case sensitive
|
void |
setLikeType(LikeType likeType) |
void |
setParameters(List<QueryParameter> parameters) |
void |
setProperty(String property) |
void |
setRestrictionType(RestrictionType restrictionType) |
void |
setTemporalType(javax.persistence.TemporalType temporalType) |
void |
setValue(Object value) |
String |
toString() |
public Restriction()
public Restriction(RestrictionType restrictionType)
restrictionType
- public Restriction(String property, RestrictionType restrictionType)
property
- restrictionType
- public Restriction(String property, RestrictionType restrictionType, Date value, javax.persistence.TemporalType temporalType)
property
- restrictionType
- value
- temporalType
- public Restriction(String property, RestrictionType restrictionType, Calendar value, javax.persistence.TemporalType temporalType)
property
- restrictionType
- value
- temporalType
- public Restriction(String property, RestrictionType restrictionType, Object value)
property
- restrictionType
- value
- public Restriction(String property, RestrictionType restrictionType, Object value, boolean ilike)
property
- restrictionType
- value
- ilike
- public Restriction(String property, RestrictionType restrictionType, Object value, LikeType likeType)
property
- restrictionType
- value
- likeType
- public Restriction(String property, RestrictionType restrictionType, Object value, LikeType likeType, boolean ilike)
property
- restrictionType
- value
- likeType
- ilike
- public javax.persistence.TemporalType getTemporalType()
public void setTemporalType(javax.persistence.TemporalType temporalType)
public LikeType getLikeType()
public void setLikeType(LikeType likeType)
public String getProperty()
public void setProperty(String property)
public RestrictionType getRestrictionType()
public void setRestrictionType(RestrictionType restrictionType)
public Object getValue()
public void setValue(Object value)
public boolean isIlike()
public void setIlike(boolean ilike)
ilike
- public static Restriction isNull(String property)
property
- public static Restriction isNotNull(String property)
property
- public static Restriction like(String property, Object value)
property
- value
- public static Restriction like(String property, Object value, LikeType likeType)
property
- value
- likeType
- public static Restriction like(String property, Object value, boolean ilike)
property
- value
- ilike
- public static Restriction like(String property, Object value, LikeType likeType, boolean ilike)
property
- value
- likeType
- ilike
- public static Restriction notLike(String property, Object value)
property
- value
- public static Restriction notLike(String property, Object value, LikeType likeType)
property
- value
- likeType
- public static Restriction notLike(String property, Object value, boolean ilike)
property
- value
- ilike
- public static Restriction notLike(String property, Object value, LikeType likeType, boolean ilike)
property
- value
- likeType
- ilike
- public static Restriction greaterThan(String property, Object value)
property
- value
- public static Restriction greaterThan(String property, Date value, javax.persistence.TemporalType temporalType)
property
- value
- temporalType
- public static Restriction greaterThan(String property, Calendar value, javax.persistence.TemporalType temporalType)
property
- value
- temporalType
- public static Restriction greaterEqualsThan(String property, Object value)
property
- value
- public static Restriction greaterEqualsThan(String property, Date value, javax.persistence.TemporalType temporalType)
property
- value
- temporalType
- public static Restriction greaterEqualsThan(String property, Calendar value, javax.persistence.TemporalType temporalType)
property
- value
- temporalType
- public static Restriction lessThan(String property, Object value)
property
- value
- public static Restriction lessThan(String property, Date value, javax.persistence.TemporalType temporalType)
property
- value
- temporalType
- public static Restriction lessThan(String property, Calendar value, javax.persistence.TemporalType temporalType)
property
- value
- temporalType
- public static Restriction lessEqualsThan(String property, Object value)
property
- value
- public static Restriction lessEqualsThan(String property, Date value, javax.persistence.TemporalType temporalType)
property
- value
- temporalType
- public static Restriction lessEqualsThan(String property, Calendar value, javax.persistence.TemporalType temporalType)
property
- value
- temporalType
- public static Restriction in(String property, Object value)
property
- value
- public static Restriction notIn(String property, Object value)
property
- value
- public static Restriction equals(String property, Object value)
property
- value
- public static Restriction equals(String property, Date value, javax.persistence.TemporalType temporalType)
property
- value
- temporalType
- public static Restriction equals(String property, Calendar value, javax.persistence.TemporalType temporalType)
property
- value
- temporalType
- public static Restriction notEquals(String property, Object value)
property
- value
- public static Restriction notEquals(String property, Date value, javax.persistence.TemporalType temporalType)
property
- value
- temporalType
- public static Restriction notEquals(String property, Calendar value, javax.persistence.TemporalType temporalType)
property
- value
- temporalType
- public List<QueryParameter> getParameters()
public void setParameters(List<QueryParameter> parameters)
Copyright © 2015. All rights reserved.