com.sap.ip.me.api.smartsync
Interface RelationDescriptor


public interface RelationDescriptor

RelationDescriptor provides read access to:

Example: From FieldDescriptor fieldDesc

  RelationDescriptor relationDesc = fieldDesc.getRelatedRelation();
  

From RowDescriptor rowDesc
  RelationDescriptorIterator relationDescIterator = rowDesc.getRelatingRelations();
  while(relationDescIterator.hasNext()){
    RelationDescriptor relationDescriptor = (RelationDescriptor)relationDescIterator.next();
    ...............
    ...............
  }

From SyncBODescriptor syncBoDesc
   RelationDescriptorIterator relationDescIterator =  syncBoDesc.getDependencyRelations();
   while(relationDescIterator.hasNext()){
     RelationDescriptor relationDescriptor = (RelationDescriptor)relationDescIterator.next();
     ...............
     ...............
  }

Version:
2.1
Author:
SAP
See Also:
FieldDescriptor, RowDescriptor, SyncBoDescriptor

Method Summary
 DependencyType getDependency()
          Returns the DependencyType described in this RelationDescriptor.
 RowDescriptor getRelatedRowDescriptor()
          Returns the RowDescriptor instance of the related Row.
 FieldDescriptor getRelatingFieldDescriptor()
          Returns the FieldDescriptor instance of the relating field.
 java.lang.String getRelationDescriptorId()
          Returns a unique id string for this RelationDescriptor.
 

Method Detail

getRelatingFieldDescriptor

public FieldDescriptor getRelatingFieldDescriptor()
Returns the FieldDescriptor instance of the relating field.

Returns:
the FieldDescriptor instance of the relating field

getRelatedRowDescriptor

public RowDescriptor getRelatedRowDescriptor()
Returns the RowDescriptor instance of the related Row.


getDependency

public DependencyType getDependency()
Returns the DependencyType described in this RelationDescriptor.

Returns:
the DependencyType described in this RelationDescriptor

getRelationDescriptorId

public java.lang.String getRelationDescriptorId()
Returns a unique id string for this RelationDescriptor.

Returns:
a unique id string for this RelationDescriptor


Copyright © 2005 SAP AG. All Rights Reserved.