java.lang.Object
io.github.tonywasher.joceanus.metis.field.MetisFieldPairedItem
All Implemented Interfaces:
MetisDataItem.MetisDataObjectFormat, MetisFieldItem

public class MetisFieldPairedItem extends Object implements MetisFieldItem
Paired Item.
  • Constructor Details

  • Method Details

    • getExternalId

      public Long getExternalId()
      Obtain the id.
      Returns:
      the parent
    • referencesId

      public boolean referencesId(Integer pId)
      Does this Item reference the supplied Id.
      Parameters:
      pId - the id
      Returns:
      true/false
    • getParent

      public MetisFieldVersionedItem getParent()
      Obtain the parent.
      Returns:
      the parent
    • getParentIdFromPairedId

      public static int getParentIdFromPairedId(Long pPairedId)
      Obtain the parentId from the pairedId.
      Parameters:
      pPairedId - the paired Id
      Returns:
      the parentId
    • getChild

      public MetisFieldVersionedItem getChild()
      Obtain the child.
      Returns:
      the child
    • getChildIdFromPairedId

      public static int getChildIdFromPairedId(Long pPairedId)
      Obtain the childId from the pairedId.
      Parameters:
      pPairedId - the paired id
      Returns:
      the childId
    • getPairedIdFromParentAndChild

      public static Long getPairedIdFromParentAndChild(Integer pParentId, Integer pChildId)
      Obtain the pairedId from the parentId and childId.
      Parameters:
      pParentId - the parent id
      pChildId - the childId
      Returns:
      the pairedId
    • getDataFieldSet

      public MetisFieldItem.MetisFieldSetDef getDataFieldSet()
      Description copied from interface: MetisFieldItem
      Obtain the fieldSet.
      Specified by:
      getDataFieldSet in interface MetisFieldItem
      Returns:
      the fieldSet
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object pThat)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object