Interface IRelatedData


public interface IRelatedData
  • Method Summary

    Modifier and Type
    Method
    Description
    returns a map of all related data useful for copy/serialization the key is a Long that represents the thingid of the related object
    get base thingID
    getData(IThingID thingID)
    will result in a DB call unless object is loaded
    int
    get the relation ID
    void
    init(IThingID baseThingID, int relation)
    useful to re-initialize object will unload any maps
    void
    set the base thingID that data operations will run against will clear out any loaded data
    void
    setData(IThingID thingID, Object data)
    creates a relationship From baseThingID To thingID, and sets this data
    void
    setRelation(int relation)
    set the relation ID will clear out any loaded data
  • Method Details

    • getBaseThingID

      IThingID getBaseThingID()
      get base thingID
    • setBaseThingID

      void setBaseThingID(IThingID thingID)
      set the base thingID that data operations will run against will clear out any loaded data
    • getRelation

      int getRelation()
      get the relation ID
    • setRelation

      void setRelation(int relation)
      set the relation ID will clear out any loaded data
    • init

      void init(IThingID baseThingID, int relation)
      useful to re-initialize object will unload any maps
    • getData

      Object getData(IThingID thingID) throws MetaException
      will result in a DB call unless object is loaded
      Throws:
      MetaException
    • setData

      void setData(IThingID thingID, Object data) throws MetaException
      creates a relationship From baseThingID To thingID, and sets this data
      Throws:
      MetaException
    • getAllRelated

      Map<Integer,Object> getAllRelated() throws MetaException
      returns a map of all related data useful for copy/serialization the key is a Long that represents the thingid of the related object
      Throws:
      MetaException