public class ExpressionFactory
extends java.lang.Object
Constructor and Description |
---|
ExpressionFactory() |
Modifier and Type | Method and Description |
---|---|
static Expression |
and(Expression... expressions)
Creates an And expression
|
static Expression |
contains(Property property,
java.lang.Object value)
Creates a Contains expression
|
static Expression |
equal(Property property,
java.lang.Object value)
Creates an Equal expression
|
static Expression |
greaterThan(Property property,
java.lang.Object value)
Creates a GreaterThan expression
|
static Expression |
in(Property property,
java.lang.Object[] values)
Creates an In expression
|
static Expression |
isNotNull(Property property)
Creates an IsNotNull expression
|
static Expression |
isNull(Property property)
Creates an IsNull expression
|
static <T extends PortalEntity> |
join(Reference<T> reference,
Subquery<T> subquery)
Creates a Join expression
|
static Expression |
lessThan(Property property,
java.lang.Object value)
Creates a LessThan expression
|
static Expression |
like(Property property,
java.lang.Object value)
Creates a Like expression
|
static Expression |
merge(Expression... expressions)
Creates a new expression by ANDing the expressions.
|
static Expression |
not(Expression expression)
Creates an Not expression (i.e.
|
static Expression |
notEqual(Property property,
java.lang.Object value)
Creates a NotEqual expression
|
static Expression |
or(Expression... expressions)
Creates an Or expression
|
public static Expression and(Expression... expressions)
expressions
- the sub expressionspublic static Expression or(Expression... expressions)
expressions
- the sub expressionspublic static Expression not(Expression expression)
expression
- the sub expressionpublic static Expression equal(Property property, java.lang.Object value)
property
- the property to comparevalue
- the value to compare againstpublic static Expression notEqual(Property property, java.lang.Object value)
property
- the property to comparevalue
- the value to compare againstpublic static Expression like(Property property, java.lang.Object value)
property
- the property to comparevalue
- the value to compare againstpublic static Expression contains(Property property, java.lang.Object value)
property
- the property to comparevalue
- the value to compare againstpublic static Expression isNull(Property property)
property
- the property to comparepublic static Expression isNotNull(Property property)
property
- the property to comparepublic static Expression lessThan(Property property, java.lang.Object value)
property
- the property to comparevalue
- the value to compare againstpublic static Expression greaterThan(Property property, java.lang.Object value)
property
- the property to comparevalue
- the value to compare againstpublic static Expression in(Property property, java.lang.Object[] values)
property
- the property to comparevalues
- the value to compare againstpublic static <T extends PortalEntity> Expression join(Reference<T> reference, Subquery<T> subquery)
reference
- the reference to joinsubquery
- the subquery to join withpublic static Expression merge(Expression... expressions)
expressions
- the sub expressions