public interface IRelatedData
Modifier and Type | Method and Description |
---|---|
Map<Integer,Object> |
getAllRelated()
returns a map of all related data
useful for copy/serialization
the key is a Long that represents the thingid of the related object
|
IThingID |
getBaseThingID()
get base thingID
|
Object |
getData(IThingID thingID)
will result in a DB call unless object is loaded
|
int |
getRelation()
get the relation ID
|
void |
init(IThingID baseThingID,
int relation)
useful to re-initialize object
will unload any maps
|
void |
setBaseThingID(IThingID thingID)
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
|
IThingID getBaseThingID()
void setBaseThingID(IThingID thingID)
int getRelation()
void setRelation(int relation)
void init(IThingID baseThingID, int relation)
Object getData(IThingID thingID) throws MetaException
MetaException
void setData(IThingID thingID, Object data) throws MetaException
MetaException
Map<Integer,Object> getAllRelated() throws MetaException
MetaException