|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Constructs IQueryExpressions for later use with the corresponding
property search manager.
An IQueryBuilder constructs and combines IQueryExpressions, creating new
IQueryExpressions, which finally are executed against the property search
manager. Construction is done in the following way
builder.equ(x, y).and(builder.eq(z, "name")).or(builder.like(y, "%jpg")) builder.not(builder.greaterThan(x, new Integer(7)))
Note that the result of comparing with both undefined properties and multi-valued properties is "undefined" (as per standard SQL three-valued logic). When combined with "true" and "false" in expressions, "undefined" behaves as below:
undefined AND undefined -> undefined undefined OR undefined -> undefined undefined AND true -> undefined undefined AND false -> false undefined OR true -> true undefined OR false -> undefined NOT(undefined) -> undefined(the only exception being the special query expression isDefined() which always evaluates to "true" or "false").
Copyright (c) SAP AG 2001-2004
| Method Summary | |
IQueryExpression |
constFalse()
|
IQueryExpression |
constTrue()
|
IQueryExpression |
eq(IPropertyName name,
java.lang.Object value)
Returns a new expression which tests property == value. |
IQueryExpression |
eq(IPropertyName name,
java.lang.String value)
Returns a new expression which tests property == value. |
IQueryExpression |
eqIgnoreCase(IPropertyName name,
java.lang.String value)
Returns a new expression which tests property == value, ignoring case. |
IQueryExpression |
greater(IPropertyName name,
java.lang.Object value)
Returns a new expression which tests property > value. |
IQueryExpression |
greater(IPropertyName name,
java.lang.String value)
Returns a new expression which tests property > value. |
IQueryExpression |
greaterEq(IPropertyName name,
java.lang.Object value)
Returns a new expression which tests property >= value. |
IQueryExpression |
greaterEq(IPropertyName name,
java.lang.String value)
Returns a new expression which tests property >= value. |
IQueryExpression |
greaterEqIgnoreCase(IPropertyName name,
java.lang.String value)
Returns a new expression which tests property >= value, ignoring case. |
IQueryExpression |
greaterIgnoreCase(IPropertyName name,
java.lang.String value)
Returns a new expression which tests property > value, ignoring case. |
IQueryExpression |
isCollection()
Returns a new expression which tests if the resource is a collection |
IQueryExpression |
isDefined(IPropertyName name)
Returns a new expression which tests for the properties existence. |
IQueryExpression |
less(IPropertyName name,
java.lang.Object value)
Returns a new expression which tests property < value. |
IQueryExpression |
less(IPropertyName name,
java.lang.String value)
Returns a new expression which tests property < value. |
IQueryExpression |
lessEq(IPropertyName name,
java.lang.Object value)
Returns a new expression which tests property <= value. |
IQueryExpression |
lessEq(IPropertyName name,
java.lang.String value)
Returns a new expression which tests property <= value. |
IQueryExpression |
lessEqIgnoreCase(IPropertyName name,
java.lang.String value)
Returns a new expression which tests property <= value, ignoring case. |
IQueryExpression |
lessIgnoreCase(IPropertyName name,
java.lang.String value)
Returns a new expression which tests property < value, ignoring case. |
IQueryExpression |
like(IPropertyName name,
java.lang.String value)
Returns a new expression which tests property is like value, where value is a wildcard expression. |
IQueryExpression |
likeIgnoreCase(IPropertyName name,
java.lang.String value)
Returns a new expression which tests property is like value, where value is a wildcard expression. |
IQueryExpression |
not(IQueryExpression expression)
Returns a new expression which is the complement of the given expression. |
IQueryExpression |
notEq(IPropertyName name,
java.lang.Object value)
Returns a new expression which tests property ! |
IQueryExpression |
notEq(IPropertyName name,
java.lang.String value)
Returns a new expression which tests property ! |
IQueryExpression |
notEqIgnoreCase(IPropertyName name,
java.lang.String value)
Returns a new expression which tests property ! |
| Method Detail |
public IQueryExpression eq(IPropertyName name,
java.lang.Object value)
name - the name of the propertyvalue - to compare against
public IQueryExpression eq(IPropertyName name,
java.lang.String value)
name - the name of the propertyvalue - to compare against
public IQueryExpression eqIgnoreCase(IPropertyName name,
java.lang.String value)
name - the name of the propertyvalue - to compare against
public IQueryExpression notEq(IPropertyName name,
java.lang.Object value)
name - the name of the propertyvalue - to compare against
public IQueryExpression notEq(IPropertyName name,
java.lang.String value)
name - the name of the propertyvalue - to compare against
public IQueryExpression notEqIgnoreCase(IPropertyName name,
java.lang.String value)
name - the name of the propertyvalue - to compare against
public IQueryExpression less(IPropertyName name,
java.lang.Object value)
name - the name of the propertyvalue - to compare against
public IQueryExpression less(IPropertyName name,
java.lang.String value)
name - the name of the propertyvalue - to compare against
public IQueryExpression lessIgnoreCase(IPropertyName name,
java.lang.String value)
name - the name3 of the propertyvalue - to compare against
public IQueryExpression lessEq(IPropertyName name,
java.lang.Object value)
name - the name of the propertyvalue - to compare against
public IQueryExpression lessEq(IPropertyName name,
java.lang.String value)
name - the name of the propertyvalue - to compare against
public IQueryExpression lessEqIgnoreCase(IPropertyName name,
java.lang.String value)
name - the name of the propertyvalue - to compare against
public IQueryExpression greater(IPropertyName name,
java.lang.Object value)
name - the name of the propertyvalue - to compare against
public IQueryExpression greater(IPropertyName name,
java.lang.String value)
name - the name of the propertyvalue - to compare against
public IQueryExpression greaterIgnoreCase(IPropertyName name,
java.lang.String value)
name - the name of the propertyvalue - to compare against
public IQueryExpression greaterEq(IPropertyName name,
java.lang.Object value)
name - the name of the propertyvalue - to compare against
public IQueryExpression greaterEq(IPropertyName name,
java.lang.String value)
name - the name of the propertyvalue - to compare against
public IQueryExpression greaterEqIgnoreCase(IPropertyName name,
java.lang.String value)
name - the name of the propertyvalue - to compare againstpublic IQueryExpression not(IQueryExpression expression)
expression - to return complement of
public IQueryExpression like(IPropertyName name,
java.lang.String value)
name - the name of the propertyvalue - the wildcard expression
public IQueryExpression likeIgnoreCase(IPropertyName name,
java.lang.String value)
name - the name of the propertyvalue - the wildcard expressionpublic IQueryExpression isDefined(IPropertyName name)
name - the name of the propertypublic IQueryExpression isCollection()
public IQueryExpression constFalse()
public IQueryExpression constTrue()
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||