com.hp.ucmdb.api.topology
Interface PropertyConditionBuilder


public interface PropertyConditionBuilder

Since:
UCMDB 9.0

Method Summary
 ConditionExpression<CompletePropertyCondition,PropertiesConditionOperand> not(CompletePropertyCondition singleCondition)
          Returns a negation of the given complete condition, wrapping it first in a ConditionExpression

This method is equivalent to calling:

 ConditionExpression<CompletePropertyCondition,PropertiesConditionOperand> not(ConditionExpression<CompletePropertyCondition,PropertiesConditionOperand> subExpression)
          Returns the negated given sub expression.
 IncompletePropertyCondition property(java.lang.String propertyName)
          Creates an incomplete condition on the specified property and sets the property condition of this element to the created condition.
 ConditionExpressionBuilder<CompletePropertyCondition,PropertiesConditionOperand> property(java.lang.String propertyName, Operator operator, java.lang.Object value)
          Defines that the expression continuation will use the given property condition as its "left side" (or single leaf).
 ConditionExpressionBuilder<CompletePropertyCondition,PropertiesConditionOperand> property(java.lang.String propertyName, Operator operator, java.lang.Object value, java.lang.String conditionName)
          Defines that the expression continuation will use the given property condition as its "left side" (or single leaf).
 ConditionExpressionBuilder<CompletePropertyCondition,PropertiesConditionOperand> use(CompletePropertyCondition completeProperty)
          Uses a previously defined complete property as its "left side" (or single leaf).
 ConditionExpressionBuilder<CompletePropertyCondition,PropertiesConditionOperand> use(ConditionExpression<CompletePropertyCondition,PropertiesConditionOperand> propertyConditionExpression)
          Uses a previously defined condition expression as its "left side".
 

Method Detail

property

ConditionExpressionBuilder<CompletePropertyCondition,PropertiesConditionOperand> property(java.lang.String propertyName,
                                                                                          Operator operator,
                                                                                          java.lang.Object value)
Defines that the expression continuation will use the given property condition as its "left side" (or single leaf).

When the query is constructed in code, it it easier to use the property method.

Parameters:
propertyName - the property name to create the condition on.
operator - the operator to use.
value - the value of the property condition, must be of the "correct" type or assignable. Some operators accept null as empty values.
Returns:
the next builder.
See Also:
ConditionExpressionBuilder, ConditionExpression

property

@NotFinalAPI
ConditionExpressionBuilder<CompletePropertyCondition,PropertiesConditionOperand> property(java.lang.String propertyName,
                                                                                                      Operator operator,
                                                                                                      java.lang.Object value,
                                                                                                      java.lang.String conditionName)
Defines that the expression continuation will use the given property condition as its "left side" (or single leaf). The condition may have a condition name attached to it.

When the query is constructed in code, it it easier to use the property method.

Parameters:
propertyName - the property name to create the condition on.
operator - the operator to use.
value - the value of the property condition, must be of the "correct" type or assignable. Some operators accept null as empty values.
conditionName - the condition name. May be null. See CompletePropertyCondition.withConditionName(String) for details.
Returns:
the next builder.
See Also:
ConditionExpressionBuilder, ConditionExpression, CompletePropertyCondition.withConditionName(String)

property

IncompletePropertyCondition property(java.lang.String propertyName)
Creates an incomplete condition on the specified property and sets the property condition of this element to the created condition. Convert The resulting object to a fixed-value condition with isEqualTo, greaterOrEqual or other IncompletePropertyCondition methods .

Returns:
incomplete condition on property

use

ConditionExpressionBuilder<CompletePropertyCondition,PropertiesConditionOperand> use(CompletePropertyCondition completeProperty)
Uses a previously defined complete property as its "left side" (or single leaf).

Returns:
the next builder.
See Also:
ConditionExpressionBuilder, ConditionExpression

use

ConditionExpressionBuilder<CompletePropertyCondition,PropertiesConditionOperand> use(ConditionExpression<CompletePropertyCondition,PropertiesConditionOperand> propertyConditionExpression)
Uses a previously defined condition expression as its "left side".

Returns:
the next builder.
See Also:
ConditionExpressionBuilder, ConditionExpression

not

ConditionExpression<CompletePropertyCondition,PropertiesConditionOperand> not(ConditionExpression<CompletePropertyCondition,PropertiesConditionOperand> subExpression)
Returns the negated given sub expression.

Returns:
a valid condition expression.
See Also:
ConditionExpressionBuilder, ConditionExpression

not

ConditionExpression<CompletePropertyCondition,PropertiesConditionOperand> not(CompletePropertyCondition singleCondition)
Returns a negation of the given complete condition, wrapping it first in a ConditionExpression

This method is equivalent to calling:

 builder.not(builder.use(singleCondition))
 

Returns:
a valid condition expression.
See Also:
ConditionExpressionBuilder, ConditionExpression


Documentation Feedback
Copyright 2010 Hewlett-Packard Development Company, L.P.