com.jpattern.orm.query.clause
Interface Where<T extends Where<?>>

All Superinterfaces:
SqlClause<T>
All Known Subinterfaces:
CustomFindWhere, DeleteWhere, FindWhere<BEAN>, UpdateWhere
All Known Implementing Classes:
CustomFindWhereImpl, DeleteWhereImpl, FindWhereImpl, OrmWhere, UpdateWhereImpl

public interface Where<T extends Where<?>>
extends SqlClause<T>

Author:
Francesco Cina 18/giu/2011

Method Summary
 T allEq(Map<String,Object> propertyMap)
          All Equal - Map containing property names and their values.
 T and(ExpressionElement... expressionElements)
          And - join more expressions with a logical and.
 T and(List<ExpressionElement> expressionElements)
          And - join more expressions with a logical and.
 T eq(String property, Object value)
          Express the "Equals to" relation between an object's property and a fixed value.
 T eqProperties(String firstProperty, String secondProperty)
          Express the "Equals to" relation between objects properties
 T ge(String property, Object value)
          Express the "Greater or equals to" relation between an object's property and a fixed value.
 T geProperties(String firstProperty, String secondProperty)
          Express the "Greater or equals to" relation between objects properties
 T gt(String property, Object value)
          Express the "Greater than" relation between an object's property and a fixed value.
 T gtProperties(String firstProperty, String secondProperty)
          Express the "Greater than" relation between objects properties
 T 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).
 T ieqProperties(String firstProperty, String secondProperty)
          Express the "Insensitive Equal To" bbetween objects properties (it uses a lower() function to make both case insensitive).
 T ilike(String property, String value)
          Case insensitive Like - property like value where the value contains the SQL wild card characters % (percentage) and _ (underscore).
 T in(String property, BaseFindQuery subQuery)
          In - using a subQuery.
 T in(String property, Collection<?> values)
          In - property has a value in the collection of values.
 T in(String property, Object[] values)
          In - property has a value in the array of values.
 T isNotNull(String property)
          Is Not Null - property is not null.
 T isNull(String property)
          Is Null - property is null.
 T le(String property, Object value)
          Express the "Lesser or equals to" relation between an object's property and a fixed value.
 T leProperties(String firstProperty, String secondProperty)
          Express the "Lesser or equals to" relation between objects properties
 T like(String property, String value)
          Like - property like value where the value contains the SQL wild card characters % (percentage) and _ (underscore).
 T lt(String property, Object value)
          Express the "Lesser than" relation between an object's property and a fixed value.
 T ltProperties(String firstProperty, String secondProperty)
          Express the "Lesser than" relation between objects properties
 T ne(String property, Object value)
          Express the "Not Equals to" relation between objects properties.
 T neProperties(String firstProperty, String secondProperty)
          Express the "Not Equals to" relation between an object's property and a fixed value.
 T nin(String property, BaseFindQuery subQuery)
          Not In - using a subQuery.
 T nin(String property, Collection<?> values)
          Not In - property has a value in the collection of values.
 T nin(String property, Object[] values)
          Not In - property has a value in the array of values.
 T nlike(String property, String value)
          Not Like - property like value where the value contains the SQL wild card characters % (percentage) and _ (underscore).
 T not(ExpressionElement expression)
          Negate the expression (prefix it with NOT).
 T or(ExpressionElement... expressionElements)
          Or - join more expressions with a logical or.
 T or(List<ExpressionElement> expressionElements)
          Or - join more expressions with a logical or.
 

Method Detail

allEq

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

Parameters:
propertyMap -
Returns:

eq

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

Parameters:
property -
value -
Returns:

eqProperties

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

Parameters:
firstProperty -
secondProperty -
Returns:

le

T 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

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

Parameters:
firstProperty -
secondProperty -
Returns:

ge

T 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

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

Parameters:
firstProperty -
secondProperty -
Returns:

lt

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

Parameters:
property -
value -
Returns:

ltProperties

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

Parameters:
firstProperty -
secondProperty -
Returns:

gt

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

Parameters:
property -
value -
Returns:

gtProperties

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

Parameters:
firstProperty -
secondProperty -
Returns:

ieq

T 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

T 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

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

Parameters:
property -
value -
Returns:

neProperties

T 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

T 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

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

Parameters:
propertyName -
values -
Returns:

nin

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

Parameters:
propertyName -
values -
Returns:

nin

T nin(String property,
      BaseFindQuery subQuery)
Not In - using a subQuery.

Parameters:
propertyName -
subQuery -
Returns:

in

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

Parameters:
propertyName -
values -
Returns:

in

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

Parameters:
propertyName -
values -
Returns:

in

T in(String property,
     BaseFindQuery subQuery)
In - using a subQuery.

Parameters:
propertyName -
subQuery -
Returns:

isNotNull

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

Parameters:
propertyName -
Returns:

isNull

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

Parameters:
propertyName -
Returns:

like

T 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

T 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

T not(ExpressionElement expression)
Negate the expression (prefix it with NOT).

Parameters:
exp -
Returns:

or

T or(ExpressionElement... expressionElements)
Or - join more expressions with a logical or.

Parameters:
expressionElements -
Returns:

or

T or(List<ExpressionElement> expressionElements)
Or - join more expressions with a logical or.

Parameters:
expressionElements -
Returns:

and

T and(List<ExpressionElement> expressionElements)
And - join more expressions with a logical and.

Parameters:
expressionElements -
Returns:

and

T and(ExpressionElement... expressionElements)
And - join more expressions with a logical and.

Parameters:
expressionElements -
Returns:


Copyright © 2013. All Rights Reserved.