All Implemented Interfaces:
MetisDataItem.MetisDataDeletableItem, MetisDataItem.MetisDataIndexedItem, MetisDataItem.MetisDataObjectFormat, MetisFieldItem, MetisFieldItem.MetisFieldTableItem, MetisFieldItem.MetisFieldUpdatableItem, PrometheusTableItem, Comparable<Object>
Direct Known Subclasses:
PrometheusDataInfoLinkSet

public abstract class PrometheusDataInfoItem extends PrometheusEncryptedDataItem
Representation of an information extension of a DataItem.
Author:
Tony Washer
  • Field Details

    • DATALEN

      public static final int DATALEN
      Maximum DataLength.
      See Also:
    • ERROR_BADDATATYPE

      protected static final String ERROR_BADDATATYPE
      Invalid Data Type Error.
    • ERROR_BADDATA

      protected static final String ERROR_BADDATA
      Invalid Data Error.
    • ERROR_BADINFOCLASS

      protected static final String ERROR_BADINFOCLASS
      Invalid Info Class Error.
  • Constructor Details

  • Method Details

    • toString

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

      public String formatObject(OceanusDataFormatter pFormatter)
      Description copied from interface: MetisDataItem.MetisDataObjectFormat
      Obtain Object summary.
      Specified by:
      formatObject in interface MetisDataItem.MetisDataObjectFormat
      Overrides:
      formatObject in class PrometheusDataItem
      Parameters:
      pFormatter - the data formatter
      Returns:
      the display summary of the object
    • getInfoType

      public abstract PrometheusStaticDataItem getInfoType()
      Obtain InfoType.
      Returns:
      the InfoTypeId
    • getInfoClass

      public abstract PrometheusDataInfoClass getInfoClass()
      Obtain InfoClass.
      Returns:
      the InfoClass
    • getInfoTypeId

      public Integer getInfoTypeId()
      Obtain InfoTypeId.
      Returns:
      the InfoTypeId
    • getOwner

      public abstract PrometheusDataItem getOwner()
      Obtain Owner.
      Returns:
      the Owner
    • getOwnerId

      public Integer getOwnerId()
      Obtain OwnerId.
      Returns:
      the OwnerId
    • getLink

      public <X extends PrometheusDataItem> X getLink(Class<X> pClass)
      Obtain Link.
      Type Parameters:
      X - the link type
      Parameters:
      pClass - the class of the link
      Returns:
      the Link
    • getLinkName

      public String getLinkName()
      Get Link name.
      Returns:
      the link name
    • getLink

      protected PrometheusDataItem getLink()
      Obtain Link.
      Returns:
      the Link
    • getValue

      public <X> X getValue(Class<X> pClass)
      Obtain Value as object.
      Type Parameters:
      X - the object type
      Parameters:
      pClass - the object class
      Returns:
      the Value
    • getField

      public PrometheusEncryptedPair getField()
      Obtain Value as underlying object.
      Returns:
      the Value
    • getValueBytes

      public byte[] getValueBytes()
      Obtain Encrypted Bytes.
      Returns:
      the Bytes
    • getValue

      public static <X> X getValue(PrometheusEncryptedValues pValueSet, Class<X> pClass)
      Obtain Value as object.
      Type Parameters:
      X - the object type
      Parameters:
      pValueSet - the valueSet
      pClass - the object class
      Returns:
      the Value
    • getField

      public static PrometheusEncryptedPair getField(PrometheusEncryptedValues pValueSet)
      Obtain Value as encrypted field.
      Parameters:
      pValueSet - the valueSet
      Returns:
      the Value
    • setValueInfoType

      protected final void setValueInfoType(PrometheusStaticDataItem pValue)
      Set InfoType.
      Parameters:
      pValue - the info Type
    • setValueInfoType

      protected final void setValueInfoType(Integer pId)
      Set InfoType Id.
      Parameters:
      pId - the info Type id
    • setValueInfoType

      protected final void setValueInfoType(String pName)
      Set InfoType Name.
      Parameters:
      pName - the info Type name
    • setValueOwner

      protected final void setValueOwner(PrometheusDataItem pValue)
      Set Owner.
      Parameters:
      pValue - the owner
    • setValueOwner

      protected final void setValueOwner(Integer pId)
      Set Owner id.
      Parameters:
      pId - the owner id
    • setValueOwner

      protected final void setValueOwner(String pName)
      Set Owner name.
      Parameters:
      pName - the owner name
    • setValueValue

      protected void setValueValue(Object pValue) throws OceanusException
      Set Value.
      Parameters:
      pValue - the value
      Throws:
      OceanusException - on error
    • setValueValue

      protected void setValueValue(PrometheusEncryptedPair pValue)
      Set value.
      Parameters:
      pValue - the value
    • setValueBytes

      protected <X> void setValueBytes(byte[] pBytes, Class<X> pClass) throws OceanusException
      Set Object Value.
      Type Parameters:
      X - the object type
      Parameters:
      pBytes - the value
      pClass - the object class
      Throws:
      OceanusException - on error
    • setValueLink

      protected void setValueLink(PrometheusDataItem pLink)
      Set link.
      Parameters:
      pLink - the link
    • setValueLink

      protected void setValueLink(String pName)
      Set link name.
      Parameters:
      pName - the linkName
    • markDeleted

      public void markDeleted()
      Mark deleted.
    • touchUnderlyingItems

      public void touchUnderlyingItems()
      Description copied from class: PrometheusDataItem
      Touch underlying items that are referenced by this item.
      Overrides:
      touchUnderlyingItems in class PrometheusDataItem
    • setValue

      protected void setValue(Object pValue) throws OceanusException
      Set Value.
      Parameters:
      pValue - the Value
      Throws:
      OceanusException - on error
    • rewindToVersion

      public void rewindToVersion(int pVersion)
      Description copied from class: MetisFieldVersionedItem
      Rewind item to the required version.
      Overrides:
      rewindToVersion in class PrometheusDataItem
      Parameters:
      pVersion - the version to rewind to
    • rewindInfoLinkSet

      public void rewindInfoLinkSet()
      rewind any infoSet links.
    • compareValues

      public int compareValues(PrometheusDataItem pThat)
      Description copied from class: PrometheusDataItem
      compareTo another dataItem.
      Specified by:
      compareValues in class PrometheusDataItem
      Parameters:
      pThat - the DataItem to compare
      Returns:
      the order