com.ibm.ia.model

Interface Relationship<T extends Entity>

  • Type Parameters:
    T - the type of the referenced entity.


    public interface Relationship<T extends Entity>

    A relationship is a reference to an entity instance. An instance consists of an entity type and an entity identifier.

    Entities, events, and concepts can have relationships to an entity instance, which might be stored in a remote partition.

    • Method Summary

      Methods 
      Modifier and Type Method and Description
      java.lang.String getKey()
      Returns the identifier of the referenced entity.
      java.lang.String getType()
      Returns the type of the referenced entity.
      T resolve()
      Retrieves the value of the referenced entity from the entity store.
    • Method Detail

      • getKey

        java.lang.String getKey()
        Returns the identifier of the referenced entity.
        Returns:
        the entity identifier.
      • getType

        java.lang.String getType()
        Returns the type of the referenced entity.
        Returns:
        the entity type.
      • resolve

        T resolve()

        Retrieves the value of the referenced entity from the entity store.

        The returned value is a copy of the referenced entity. If you modify the value, the changes are not persisted automatically.

        Returns:
        the value of the referenced entity.

© Copyright IBM 2016