com.googlecode.jpattern.orm.query
Interface IExpression

All Superinterfaces:
IExpressionElement, INameSolverConsumer, IRenderableSqlObject
All Known Implementing Classes:
Expression

public interface IExpression
extends IExpressionElement

Author:
Francesco Cina 18/giu/2011

Method Summary
 IExpression allEq(Map<String,Object> propertyMap)
          All Equal - Map containing property names and their values.
 IExpression and(IExpressionElement expressionOne, IExpressionElement expressionTwo)
          And - join two expressions with a logical and.
 IExpression eq(String property, Object value)
          Express the "Equals to" relation between an object's property and a fixed value.
 IExpression eqProperties(String firstProperty, String secondProperty)
          Express the "Equals to" relation between objects properties
 IExpression ge(String property, Object value)
          Express the "Greater or equals to" relation between an object's property and a fixed value.
 IExpression geProperties(String firstProperty, String secondProperty)
          Express the "Greater or equals to" relation between objects properties
 IExpression gt(String property, Object value)
          Express the "Greater than" relation between an object's property and a fixed value.
 IExpression gtProperties(String firstProperty, String secondProperty)
          Express the "Greater than" relation between objects properties
 IExpression ieq(String property, String value)
          Express the "Insensitive Equal To" between an object's property and a fixed value (it uses a lower() function to make both case insensitive).
 IExpression ieqProperties(String firstProperty, String secondProperty)
          Express the "Insensitive Equal To" bbetween objects properties (it uses a lower() function to make both case insensitive).
 IExpression ilike(String property, String value)
          Case insensitive Like - property like value where the value contains the SQL wild card characters % (percentage) and _ (underscore).
 IExpression in(String property, Collection<?> values)
          In - property has a value in the collection of values.
 IExpression in(String property, IQuery subQuery)
          In - using a subQuery.
 IExpression in(String property, Object[] values)
          In - property has a value in the array of values.
 IExpression isNotNull(String property)
          Is Not Null - property is not null.
 IExpression isNull(String property)
          Is Null - property is null.
 IExpression le(String property, Object value)
          Express the "Lesser or equals to" relation between an object's property and a fixed value.
 IExpression leProperties(String firstProperty, String secondProperty)
          Express the "Lesser or equals to" relation between objects properties
 IExpression like(String property, String value)
          Like - property like value where the value contains the SQL wild card characters % (percentage) and _ (underscore).
 IExpression lt(String property, Object value)
          Express the "Lesser than" relation between an object's property and a fixed value.
 IExpression ltProperties(String firstProperty, String secondProperty)
          Express the "Lesser than" relation between objects properties
 IExpression ne(String property, Object value)
          Express the "Not Equals to" relation between objects properties.
 IExpression neProperties(String firstProperty, String secondProperty)
          Express the "Not Equals to" relation between an object's property and a fixed value.
 IExpression nin(String property, Collection<?> values)
          Not In - property has a value in the collection of values.
 IExpression nin(String property, IQuery subQuery)
          Not In - using a subQuery.
 IExpression nin(String property, Object[] values)
          Not In - property has a value in the array of values.
 IExpression nlike(String property, String value)
          Not Like - property like value where the value contains the SQL wild card characters % (percentage) and _ (underscore).
 IExpression not(IExpressionElement expression)
          Negate the expression (prefix it with NOT).
 IExpression or(IExpressionElement expressionOne, IExpressionElement expressionTwo)
          Or - join two expressions with a logical or.
 
Methods inherited from interface com.googlecode.jpattern.orm.query.IExpressionElement
appendValues
 
Methods inherited from interface com.googlecode.jpattern.orm.query.IRenderableSqlObject
renderSql, renderSql
 
Methods inherited from interface com.googlecode.jpattern.orm.query.INameSolverConsumer
setNameSolver
 

Method Detail

allEq

IExpression allEq(Map<String,Object> propertyMap)
All Equal - Map containing property names and their values.

Parameters:
propertyMap -
Returns:

eq

IExpression eq(String property,
               Object value)
Express the "Equals to" relation between an object's property and a fixed value.

Parameters:
property -
value -
Returns:

eqProperties

IExpression eqProperties(String firstProperty,
                         String secondProperty)
Express the "Equals to" relation between objects properties

Parameters:
firstProperty -
secondProperty -
Returns:

le

IExpression le(String property,
               Object value)
Express the "Lesser or equals to" relation between an object's property and a fixed value.

Parameters:
property -
value -
Returns:

leProperties

IExpression leProperties(String firstProperty,
                         String secondProperty)
Express the "Lesser or equals to" relation between objects properties

Parameters:
firstProperty -
secondProperty -
Returns:

ge

IExpression ge(String property,
               Object value)
Express the "Greater or equals to" relation between an object's property and a fixed value.

Parameters:
property -
value -
Returns:

geProperties

IExpression geProperties(String firstProperty,
                         String secondProperty)
Express the "Greater or equals to" relation between objects properties

Parameters:
firstProperty -
secondProperty -
Returns:

lt

IExpression lt(String property,
               Object value)
Express the "Lesser than" relation between an object's property and a fixed value.

Parameters:
property -
value -
Returns:

ltProperties

IExpression ltProperties(String firstProperty,
                         String secondProperty)
Express the "Lesser than" relation between objects properties

Parameters:
firstProperty -
secondProperty -
Returns:

gt

IExpression gt(String property,
               Object value)
Express the "Greater than" relation between an object's property and a fixed value.

Parameters:
property -
value -
Returns:

gtProperties

IExpression gtProperties(String firstProperty,
                         String secondProperty)
Express the "Greater than" relation between objects properties

Parameters:
firstProperty -
secondProperty -
Returns:

ieq

IExpression ieq(String property,
                String value)
Express the "Insensitive Equal To" between an object's property and a fixed value (it uses a lower() function to make both case insensitive).

Parameters:
propertyName -
value -
Returns:

ieqProperties

IExpression ieqProperties(String firstProperty,
                          String secondProperty)
Express the "Insensitive Equal To" bbetween objects properties (it uses a lower() function to make both case insensitive).

Parameters:
firstProperty -
secondProperty -
Returns:

ne

IExpression ne(String property,
               Object value)
Express the "Not Equals to" relation between objects properties.

Parameters:
property -
value -
Returns:

neProperties

IExpression neProperties(String firstProperty,
                         String secondProperty)
Express the "Not Equals to" relation between an object's property and a fixed value.

Parameters:
firstProperty -
secondProperty -
Returns:

ilike

IExpression ilike(String property,
                  String value)
Case insensitive Like - property like value where the value contains the SQL wild card characters % (percentage) and _ (underscore).

Parameters:
propertyName -
value -
Returns:

nin

IExpression nin(String property,
                Collection<?> values)
Not In - property has a value in the collection of values.

Parameters:
propertyName -
values -
Returns:

nin

IExpression nin(String property,
                Object[] values)
Not In - property has a value in the array of values.

Parameters:
propertyName -
values -
Returns:

nin

IExpression nin(String property,
                IQuery subQuery)
Not In - using a subQuery.

Parameters:
propertyName -
subQuery -
Returns:

in

IExpression in(String property,
               Collection<?> values)
In - property has a value in the collection of values.

Parameters:
propertyName -
values -
Returns:

in

IExpression in(String property,
               Object[] values)
In - property has a value in the array of values.

Parameters:
propertyName -
values -
Returns:

in

IExpression in(String property,
               IQuery subQuery)
In - using a subQuery.

Parameters:
propertyName -
subQuery -
Returns:

isNotNull

IExpression isNotNull(String property)
Is Not Null - property is not null.

Parameters:
propertyName -
Returns:

isNull

IExpression isNull(String property)
Is Null - property is null.

Parameters:
propertyName -
Returns:

like

IExpression like(String property,
                 String value)
Like - property like value where the value contains the SQL wild card characters % (percentage) and _ (underscore).

Parameters:
propertyName -
value -

nlike

IExpression nlike(String property,
                  String value)
Not Like - property like value where the value contains the SQL wild card characters % (percentage) and _ (underscore).

Parameters:
propertyName -
value -

not

IExpression not(IExpressionElement expression)
Negate the expression (prefix it with NOT).

Parameters:
exp -
Returns:

or

IExpression or(IExpressionElement expressionOne,
               IExpressionElement expressionTwo)
Or - join two expressions with a logical or.

Parameters:
expOne -
expTwo -
Returns:

and

IExpression and(IExpressionElement expressionOne,
                IExpressionElement expressionTwo)
And - join two expressions with a logical and.

Parameters:
expOne -
expTwo -
Returns:


Copyright © 2011. All Rights Reserved.