com.sap.netweaver.bc.rf.common.namespace

Interface IQueryBuilder


public interface IQueryBuilder

Constructs IQueryExpressions for later use with the corresponding property search manager.

A 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)))
 

Copyright (c) SAP AG 2001-2002


Method Summary
 IQueryExpression constFalse()
           
 IQueryExpression constTrue()
           
 IQueryExpression eq(IName name, Object value)
          Returns a new expression which tests property == value.
 IQueryExpression eq(IName name, String value)
          Returns a new expression which tests property == value.
 IQueryExpression eqIgnoreCase(IName name, String value)
          Returns a new expression which tests property == value, ignoring case.
 IQueryExpression greater(IName name, Object value)
          Returns a new expression which tests property > value.
 IQueryExpression greater(IName name, String value)
          Returns a new expression which tests property > value.
 IQueryExpression greaterEq(IName name, Object value)
          Returns a new expression which tests property >= value.
 IQueryExpression greaterEq(IName name, String value)
          Returns a new expression which tests property >= value.
 IQueryExpression greaterEqIgnoreCase(IName name, String value)
          Returns a new expression which tests property >= value, ignoring case.
 IQueryExpression greaterIgnoreCase(IName name, 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(IName name)
          Returns a new expression which tests for the properties existence.
 IQueryExpression less(IName name, Object value)
          Returns a new expression which tests property < value.
 IQueryExpression less(IName name, String value)
          Returns a new expression which tests property < value.
 IQueryExpression lessEq(IName name, Object value)
          Returns a new expression which tests property <= value.
 IQueryExpression lessEq(IName name, String value)
          Returns a new expression which tests property <= value.
 IQueryExpression lessEqIgnoreCase(IName name, String value)
          Returns a new expression which tests property <= value, ignoring case.
 IQueryExpression lessIgnoreCase(IName name, String value)
          Returns a new expression which tests property < value, ignoring case.
 IQueryExpression like(IName name, String value)
          Returns a new expression which tests property is like value, where value is a wildcard expression.
 IQueryExpression likeIgnoreCase(IName name, 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(IName name, Object value)
          Returns a new expression which tests property !
 IQueryExpression notEq(IName name, String value)
          Returns a new expression which tests property !
 IQueryExpression notEqIgnoreCase(IName name, String value)
          Returns a new expression which tests property !
 

Method Detail

eq

IQueryExpression eq(IName name,
                    Object value)
Returns a new expression which tests property == value.

Parameters:
name - the name of the property
value - to compare against
Returns:
expression representing property == value

eq

IQueryExpression eq(IName name,
                    String value)
Returns a new expression which tests property == value.

Parameters:
name - the name of the property
value - to compare against
Returns:
expression representing property == value

eqIgnoreCase

IQueryExpression eqIgnoreCase(IName name,
                              String value)
Returns a new expression which tests property == value, ignoring case.

Parameters:
name - the name of the property
value - to compare against
Returns:
expression representing property == value

notEq

IQueryExpression notEq(IName name,
                       Object value)
Returns a new expression which tests property != value.

Parameters:
name - the name of the property
value - to compare against
Returns:
expression representing property != value

notEq

IQueryExpression notEq(IName name,
                       String value)
Returns a new expression which tests property != value.

Parameters:
name - the name of the property
value - to compare against
Returns:
expression representing property != value

notEqIgnoreCase

IQueryExpression notEqIgnoreCase(IName name,
                                 String value)
Returns a new expression which tests property != value, ignoring case.

Parameters:
name - the name of the property
value - to compare against
Returns:
expression representing property != value

less

IQueryExpression less(IName name,
                      Object value)
Returns a new expression which tests property < value.

Parameters:
name - the name of the property
value - to compare against
Returns:
expression representing property < value

less

IQueryExpression less(IName name,
                      String value)
Returns a new expression which tests property < value.

Parameters:
name - the name of the property
value - to compare against
Returns:
expression representing property < value

lessIgnoreCase

IQueryExpression lessIgnoreCase(IName name,
                                String value)
Returns a new expression which tests property < value, ignoring case.

Parameters:
name - the name3 of the property
value - to compare against
Returns:
expression representing property < value

lessEq

IQueryExpression lessEq(IName name,
                        Object value)
Returns a new expression which tests property <= value.

Parameters:
name - the name of the property
value - to compare against
Returns:
expression representing property <= value

lessEq

IQueryExpression lessEq(IName name,
                        String value)
Returns a new expression which tests property <= value.

Parameters:
name - the name of the property
value - to compare against
Returns:
expression representing property <= value

lessEqIgnoreCase

IQueryExpression lessEqIgnoreCase(IName name,
                                  String value)
Returns a new expression which tests property <= value, ignoring case.

Parameters:
name - the name of the property
value - to compare against
Returns:
expression representing property <= value

greater

IQueryExpression greater(IName name,
                         Object value)
Returns a new expression which tests property > value.

Parameters:
name - the name of the property
value - to compare against
Returns:
expression representing property > value

greater

IQueryExpression greater(IName name,
                         String value)
Returns a new expression which tests property > value.

Parameters:
name - the name of the property
value - to compare against
Returns:
expression representing property > value

greaterIgnoreCase

IQueryExpression greaterIgnoreCase(IName name,
                                   String value)
Returns a new expression which tests property > value, ignoring case.

Parameters:
name - the name of the property
value - to compare against
Returns:
expression representing property > value

greaterEq

IQueryExpression greaterEq(IName name,
                           Object value)
Returns a new expression which tests property >= value.

Parameters:
name - the name of the property
value - to compare against
Returns:
expression representing property >= value

greaterEq

IQueryExpression greaterEq(IName name,
                           String value)
Returns a new expression which tests property >= value.

Parameters:
name - the name of the property
value - to compare against
Returns:
expression representing property >= value

greaterEqIgnoreCase

IQueryExpression greaterEqIgnoreCase(IName name,
                                     String value)
Returns a new expression which tests property >= value, ignoring case.

Parameters:
name - the name of the property
value - to compare against
Returns:
expression representing property >= value

not

IQueryExpression not(IQueryExpression expression)
Returns a new expression which is the complement of the given expression.

Parameters:
expression - to return complement of
Returns:
expression representing !expression

like

IQueryExpression like(IName name,
                      String value)
Returns a new expression which tests property is like value, where value is a wildcard expression. Wildcard characters are "_" and "%", where "_" matches one character and "%" matches 0 or more characters. "\" can be used as escape character and is only allowed to escape itself, "_" and "%".

Parameters:
name - the name of the property
value - the wildcard expression
Returns:
expression representing property like value

likeIgnoreCase

IQueryExpression likeIgnoreCase(IName name,
                                String value)
Returns a new expression which tests property is like value, where value is a wildcard expression. Wildcard characters are "_" and "%", where "_" matches one character and "%" matches 0 or more characters. "\" can be used as escape character and is only allowed to escape itself, "_" and "%".

Parameters:
name - the name of the property
value - the wildcard expression
Returns:
expression representing property like value

isDefined

IQueryExpression isDefined(IName name)
Returns a new expression which tests for the properties existence.

Parameters:
name - the name of the property
Returns:
expression representing "if exists property"

isCollection

IQueryExpression isCollection()
Returns a new expression which tests if the resource is a collection

Returns:
expression representing test if resource is collection

constFalse

IQueryExpression constFalse()
Returns:
constant false

constTrue

IQueryExpression constTrue()
Returns:
constant true
Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] KMC-WPC [sap.com] tc/kmc/wpc/wpcfacade api EP-PIN-WPC-WCM
[sap.com] KMC-CM [sap.com] tc/km/frwk api EP-KM-CM


Copyright 2011 SAP AG Complete Copyright Notice