| Package | com.vmware.data.query |
| Class | public class RelationalConstraint |
| Inheritance | RelationalConstraint Constraint Object |
Eg. VirtualMachines whose host is esx1.vmware.com
Note: this class was generated from its Java counterpart RelationalConstraint
| Property | Defined By | ||
|---|---|---|---|
| constraintOnRelatedObject : Constraint
A constraint on the related objects by the given relationship. | RelationalConstraint | ||
| hasInverseRelation : Boolean
Indicates whether the constraint given by constraintOnRelatedObject
applies to the source, as opposed to the target of the relationship given in
this instance. | RelationalConstraint | ||
| relation : String
The relation to match (the source type of the relation is defined by the
isSourceConstrainted property). | RelationalConstraint | ||
![]() | targetType : String
Type of objects targeted by this constraint. | Constraint | |
| constraintOnRelatedObject | property |
constraintOnRelatedObject:ConstraintA constraint on the related objects by the given relationship. This further filtering can be based on either the identity of the related objects or their properties or some further nested relationship.
This property can be used as the source for data binding.
public function get constraintOnRelatedObject():Constraint public function set constraintOnRelatedObject(value:Constraint):void| hasInverseRelation | property |
hasInverseRelation:BooleanIndicates whether the constraint given by constraintOnRelatedObject applies to the source, as opposed to the target of the relationship given in this instance. It is useful when the client only knows one-way relationship between objects.
If true, the relation defined by
constraintOnRelatedObject.targetType.relationship is used.
Thus the constraint can be referred to as an inverse-RelationalConstraint
(as the inverse relationship is used compared to the normal direction). Make
sure to explicitly set the constraintOnRelatedObject.targetType
value.
Example:
If false (i.e. the target is constrained), the relation defined by
this.targetType.relationship is used.
Example:
Default value is false.
This property can be used as the source for data binding.
public function get hasInverseRelation():Boolean public function set hasInverseRelation(value:Boolean):void| relation | property |
relation:StringThe relation to match (the source type of the relation is defined by the isSourceConstrainted property).
VMODL1 property names must never be qualified with resource model name (i.e. for resource type "VirtualMachine", property "name" is valid while "VirtualMachine/name" is not). VMODL2 property names must always be qualified with resource model name.
This property can be used as the source for data binding.
public function get relation():String public function set relation(value:String):void