| Package | Description |
|---|---|
| com.avaje.ebean |
Core API (see Ebean and EbeanServer).
|
| com.avaje.ebeaninternal.api | |
| com.avaje.ebeaninternal.server.expression |
Expressions for building WHERE clauses.
|
| com.avaje.ebeaninternal.server.querydefn | |
| com.avaje.ebeaninternal.util |
Utility objects
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
ExampleExpression
Query by Example expression.
|
interface |
Junction<T>
Represents a Conjunction or a Disjunction.
|
| Modifier and Type | Method and Description |
|---|---|
static Expression |
Expr.allEq(Map<String,Object> propertyMap)
All Equal - Map containing property names and their values.
|
Expression |
ExpressionFactory.allEq(Map<String,Object> propertyMap)
All Equal - Map containing property names and their values.
|
static Expression |
Expr.and(Expression expOne,
Expression expTwo)
And - join two expressions with a logical and.
|
Expression |
ExpressionFactory.and(Expression expOne,
Expression expTwo)
And - join two expressions with a logical and.
|
static Expression |
Expr.between(String propertyName,
Object value1,
Object value2)
Between - property between the two given values.
|
Expression |
ExpressionFactory.between(String propertyName,
Object value1,
Object value2)
Between - property between the two given values.
|
static Expression |
Expr.between(String lowProperty,
String highProperty,
Object value)
Between - value between two given properties.
|
Expression |
ExpressionFactory.betweenProperties(String lowProperty,
String highProperty,
Object value)
Between - value between two given properties.
|
static Expression |
Expr.contains(String propertyName,
String value)
Contains - property like %value%.
|
Expression |
ExpressionFactory.contains(String propertyName,
String value)
Contains - property like %value%.
|
static Expression |
Expr.endsWith(String propertyName,
String value)
Ends With - property like %value.
|
Expression |
ExpressionFactory.endsWith(String propertyName,
String value)
Ends With - property like %value.
|
static Expression |
Expr.eq(String propertyName,
Object value)
Equal To - property equal to the given value.
|
Expression |
ExpressionFactory.eq(String propertyName,
Object value)
Equal To - property equal to the given value.
|
static Expression |
Expr.ge(String propertyName,
Object value)
Greater Than or Equal to - property greater than or equal to the given
value.
|
Expression |
ExpressionFactory.ge(String propertyName,
Object value)
Greater Than or Equal to - property greater than or equal to the given
value.
|
static Expression |
Expr.gt(String propertyName,
Object value)
Greater Than - property greater than the given value.
|
Expression |
ExpressionFactory.gt(String propertyName,
Object value)
Greater Than - property greater than the given value.
|
static Expression |
Expr.icontains(String propertyName,
String value)
Case insensitive Contains - property like %value%.
|
Expression |
ExpressionFactory.icontains(String propertyName,
String value)
Case insensitive Contains - property like %value%.
|
static Expression |
Expr.idEq(Object value)
Id Equal to - ID property is equal to the value.
|
Expression |
ExpressionFactory.idEq(Object value)
Id Equal to - ID property is equal to the value.
|
Expression |
ExpressionFactory.idIn(List<?> idList)
Id IN a list of Id values.
|
static Expression |
Expr.iendsWith(String propertyName,
String value)
Case insensitive Ends With - property like %value.
|
Expression |
ExpressionFactory.iendsWith(String propertyName,
String value)
Case insensitive Ends With - property like %value.
|
static Expression |
Expr.ieq(String propertyName,
String value)
Case Insensitive Equal To - property equal to the given value (typically
using a lower() function to make it case insensitive).
|
Expression |
ExpressionFactory.ieq(String propertyName,
String value)
Case Insensitive Equal To - property equal to the given value (typically
using a lower() function to make it case insensitive).
|
static Expression |
Expr.ilike(String propertyName,
String value)
Case insensitive Like - property like value where the value contains the
SQL wild card characters % (percentage) and _ (underscore).
|
Expression |
ExpressionFactory.ilike(String propertyName,
String value)
Case insensitive Like - property like value where the value contains the
SQL wild card characters % (percentage) and _ (underscore).
|
static Expression |
Expr.in(String propertyName,
Collection<?> values)
In - property has a value in the collection of values.
|
Expression |
ExpressionFactory.in(String propertyName,
Collection<?> values)
In - property has a value in the collection of values.
|
static Expression |
Expr.in(String propertyName,
Object[] values)
In - property has a value in the array of values.
|
Expression |
ExpressionFactory.in(String propertyName,
Object[] values)
In - property has a value in the array of values.
|
static Expression |
Expr.in(String propertyName,
Query<?> subQuery)
In - using a subQuery.
|
Expression |
ExpressionFactory.in(String propertyName,
Query<?> subQuery)
In - using a subQuery.
|
static Expression |
Expr.isNotNull(String propertyName)
Is Not Null - property is not null.
|
Expression |
ExpressionFactory.isNotNull(String propertyName)
Is Not Null - property is not null.
|
static Expression |
Expr.isNull(String propertyName)
Is Null - property is null.
|
Expression |
ExpressionFactory.isNull(String propertyName)
Is Null - property is null.
|
static Expression |
Expr.istartsWith(String propertyName,
String value)
Case insensitive Starts With - property like value%.
|
Expression |
ExpressionFactory.istartsWith(String propertyName,
String value)
Case insensitive Starts With - property like value%.
|
static Expression |
Expr.le(String propertyName,
Object value)
Less Than or Equal to - property less than or equal to the given value.
|
Expression |
ExpressionFactory.le(String propertyName,
Object value)
Less Than or Equal to - property less than or equal to the given value.
|
static Expression |
Expr.like(String propertyName,
String value)
Like - property like value where the value contains the SQL wild card
characters % (percentage) and _ (underscore).
|
Expression |
ExpressionFactory.like(String propertyName,
String value)
Like - property like value where the value contains the SQL wild card
characters % (percentage) and _ (underscore).
|
static Expression |
Expr.lt(String propertyName,
Object value)
Less Than - property less than the given value.
|
Expression |
ExpressionFactory.lt(String propertyName,
Object value)
Less Than - property less than the given value.
|
static Expression |
Expr.ne(String propertyName,
Object value)
Not Equal To - property not equal to the given value.
|
Expression |
ExpressionFactory.ne(String propertyName,
Object value)
Not Equal To - property not equal to the given value.
|
static Expression |
Expr.not(Expression exp)
Negate the expression (prefix it with NOT).
|
Expression |
ExpressionFactory.not(Expression exp)
Negate the expression (prefix it with NOT).
|
static Expression |
Expr.or(Expression expOne,
Expression expTwo)
Or - join two expressions with a logical or.
|
Expression |
ExpressionFactory.or(Expression expOne,
Expression expTwo)
Or - join two expressions with a logical or.
|
static Expression |
Expr.raw(String raw)
Add raw expression with no parameters.
|
Expression |
ExpressionFactory.raw(String raw)
Add raw expression with no parameters.
|
static Expression |
Expr.raw(String raw,
Object value)
Add raw expression with a single parameter.
|
Expression |
ExpressionFactory.raw(String raw,
Object value)
Add raw expression with a single parameter.
|
static Expression |
Expr.raw(String raw,
Object[] values)
Add raw expression with an array of parameters.
|
Expression |
ExpressionFactory.raw(String raw,
Object[] values)
Add raw expression with an array of parameters.
|
static Expression |
Expr.startsWith(String propertyName,
String value)
Starts With - property like value%.
|
Expression |
ExpressionFactory.startsWith(String propertyName,
String value)
Starts With - property like value%.
|
| Modifier and Type | Method and Description |
|---|---|
ExpressionList<T> |
ExpressionList.add(Expression expr)
Add an Expression to the list.
|
static Expression |
Expr.and(Expression expOne,
Expression expTwo)
And - join two expressions with a logical and.
|
Expression |
ExpressionFactory.and(Expression expOne,
Expression expTwo)
And - join two expressions with a logical and.
|
ExpressionList<T> |
ExpressionList.and(Expression expOne,
Expression expTwo)
And - join two expressions with a logical and.
|
Query<T> |
Query.having(Expression addExpressionToHaving)
Add an expression to the having clause returning the query.
|
static Expression |
Expr.not(Expression exp)
Negate the expression (prefix it with NOT).
|
Expression |
ExpressionFactory.not(Expression exp)
Negate the expression (prefix it with NOT).
|
ExpressionList<T> |
ExpressionList.not(Expression exp)
Negate the expression (prefix it with NOT).
|
static Expression |
Expr.or(Expression expOne,
Expression expTwo)
Or - join two expressions with a logical or.
|
Expression |
ExpressionFactory.or(Expression expOne,
Expression expTwo)
Or - join two expressions with a logical or.
|
ExpressionList<T> |
ExpressionList.or(Expression expOne,
Expression expTwo)
Or - join two expressions with a logical or.
|
Query<T> |
Query.where(Expression expression)
Add a single Expression to the where clause returning the query.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
SpiExpression
An expression that becomes part of a Where clause or Having clause.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractExpression
Base class for simple expressions.
|
class |
DefaultExampleExpression
A "Query By Example" type of expression.
|
class |
IdInExpression
Slightly redundant as Query.setId() ultimately also does the same job.
|
class |
SimpleExpression |
| Modifier and Type | Method and Description |
|---|---|
Expression |
DefaultExpressionFactory.allEq(Map<String,Object> propertyMap)
All Equal - Map containing property names and their values.
|
Expression |
DefaultExpressionFactory.and(Expression expOne,
Expression expTwo)
And - join two expressions with a logical and.
|
Expression |
DefaultExpressionFactory.between(String propertyName,
Object value1,
Object value2)
Between - property between the two given values.
|
Expression |
DefaultExpressionFactory.betweenProperties(String lowProperty,
String highProperty,
Object value)
Between - value between two given properties.
|
Expression |
DefaultExpressionFactory.contains(String propertyName,
String value)
Contains - property like %value%.
|
Expression |
DefaultExpressionFactory.endsWith(String propertyName,
String value)
Ends With - property like %value.
|
Expression |
DefaultExpressionFactory.eq(String propertyName,
Object value)
Equal To - property equal to the given value.
|
Expression |
DefaultExpressionFactory.ge(String propertyName,
Object value)
Greater Than or Equal to - property greater than or equal to the given
value.
|
Expression |
DefaultExpressionFactory.gt(String propertyName,
Object value)
Greater Than - property greater than the given value.
|
Expression |
DefaultExpressionFactory.icontains(String propertyName,
String value)
Case insensitive Contains - property like %value%.
|
Expression |
DefaultExpressionFactory.idEq(Object value)
Id Equal to - ID property is equal to the value.
|
Expression |
DefaultExpressionFactory.idIn(List<?> idList)
Id IN a list of id values.
|
Expression |
DefaultExpressionFactory.iendsWith(String propertyName,
String value)
Case insensitive Ends With - property like %value.
|
Expression |
DefaultExpressionFactory.ieq(String propertyName,
String value)
Case Insensitive Equal To - property equal to the given value (typically
using a lower() function to make it case insensitive).
|
Expression |
DefaultExpressionFactory.ilike(String propertyName,
String value)
Case insensitive Like - property like value where the value contains the
SQL wild card characters % (percentage) and _ (underscore).
|
Expression |
DefaultExpressionFactory.in(String propertyName,
Collection<?> values)
In - property has a value in the collection of values.
|
Expression |
DefaultExpressionFactory.in(String propertyName,
Object[] values)
In - property has a value in the array of values.
|
Expression |
DefaultExpressionFactory.in(String propertyName,
Query<?> subQuery)
In - using a subQuery.
|
Expression |
DefaultExpressionFactory.isNotNull(String propertyName)
Is Not Null - property is not null.
|
Expression |
DefaultExpressionFactory.isNull(String propertyName)
Is Null - property is null.
|
Expression |
DefaultExpressionFactory.istartsWith(String propertyName,
String value)
Case insensitive Starts With - property like value%.
|
Expression |
DefaultExpressionFactory.le(String propertyName,
Object value)
Less Than or Equal to - property less than or equal to the given value.
|
Expression |
DefaultExpressionFactory.like(String propertyName,
String value)
Like - property like value where the value contains the SQL wild card
characters % (percentage) and _ (underscore).
|
Expression |
DefaultExpressionFactory.lt(String propertyName,
Object value)
Less Than - property less than the given value.
|
Expression |
DefaultExpressionFactory.ne(String propertyName,
Object value)
Not Equal To - property not equal to the given value.
|
Expression |
DefaultExpressionFactory.not(Expression exp)
Negate the expression (prefix it with NOT).
|
Expression |
DefaultExpressionFactory.or(Expression expOne,
Expression expTwo)
Or - join two expressions with a logical or.
|
Expression |
DefaultExpressionFactory.raw(String raw)
Add raw expression with no parameters.
|
Expression |
DefaultExpressionFactory.raw(String raw,
Object value)
Add raw expression with a single parameter.
|
Expression |
DefaultExpressionFactory.raw(String raw,
Object[] values)
Add raw expression with an array of parameters.
|
Expression |
DefaultExpressionFactory.startsWith(String propertyName,
String value)
Starts With - property like value%.
|
| Modifier and Type | Method and Description |
|---|---|
Expression |
DefaultExpressionFactory.and(Expression expOne,
Expression expTwo)
And - join two expressions with a logical and.
|
Expression |
DefaultExpressionFactory.not(Expression exp)
Negate the expression (prefix it with NOT).
|
Expression |
DefaultExpressionFactory.or(Expression expOne,
Expression expTwo)
Or - join two expressions with a logical or.
|
| Modifier and Type | Method and Description |
|---|---|
DefaultOrmQuery<T> |
DefaultOrmQuery.addHaving(Expression expression) |
DefaultOrmQuery<T> |
DefaultOrmQuery.addWhere(Expression expression) |
DefaultOrmQuery<T> |
DefaultOrmQuery.having(Expression expression) |
DefaultOrmQuery<T> |
DefaultOrmQuery.where(Expression expression) |
| Modifier and Type | Method and Description |
|---|---|
ExpressionList<T> |
DefaultExpressionList.add(Expression expr) |
ExpressionList<T> |
DefaultExpressionList.and(Expression expOne,
Expression expTwo) |
ExpressionList<T> |
DefaultExpressionList.not(Expression exp) |
ExpressionList<T> |
DefaultExpressionList.or(Expression expOne,
Expression expTwo) |
Copyright © 2014. All Rights Reserved.