Package com.hp.ucmdb.api.topology
Interface PropertyConditionBuilder
public interface PropertyConditionBuilder
- Since:
- UCMDB 9.0
-
Method Summary
Modifier and TypeMethodDescriptionnot
(CompletePropertyCondition singleCondition) Returns a negation of the given complete condition, wrapping it first in a ConditionExpressionnot
(ConditionExpression<CompletePropertyCondition, PropertiesConditionOperand> subExpression) Returns the negated given sub expression.Creates an incomplete condition on the specified property and sets the property condition of this element to the created condition.Defines that the expression continuation will use the given property condition as its "left side" (or single leaf).Defines that the expression continuation will use the given property condition as its "left side" (or single leaf).use
(CompletePropertyCondition completeProperty) Uses a previously defined complete property as its "left side" (or single leaf).use
(ConditionExpression<CompletePropertyCondition, PropertiesConditionOperand> propertyConditionExpression) Uses a previously defined condition expression as its "left side".
-
Method Details
-
property
ConditionExpressionBuilder<CompletePropertyCondition,PropertiesConditionOperand> property(String propertyName, Operator operator, 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 theproperty
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:
-
property
@NotFinalAPI ConditionExpressionBuilder<CompletePropertyCondition,PropertiesConditionOperand> property(String propertyName, Operator operator, Object value, 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 theproperty
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. SeeCompletePropertyCondition.withConditionName(String)
for details.- Returns:
- the next builder.
- See Also:
-
property
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 withisEqualTo
,greaterOrEqual
or otherIncompletePropertyCondition
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:
-
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:
-
not
ConditionExpression<CompletePropertyCondition,PropertiesConditionOperand> not(ConditionExpression<CompletePropertyCondition, PropertiesConditionOperand> subExpression) Returns the negated given sub expression.- Returns:
- a valid condition expression.
- See Also:
-
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:
-