|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectiitb.con.core.Instance
iitb.con.core.RelationInstance
public class RelationInstance
Relations are associated with the entities and instances.
RelationIntance interface provides methods to set and remove the
relations among the entity instances.
The relation is created between two items, which is considered
as left-item and right-item.
Instance
,
Relation
Field Summary | |
---|---|
int |
leftInstanceId
Relation's left instance id |
int |
rightInstanceId
Relation's right instance id |
Fields inherited from class iitb.con.core.Instance |
---|
id, typeId |
Constructor Summary | |
---|---|
RelationInstance()
|
Method Summary | |
---|---|
java.lang.Object |
getAttributeValue(java.lang.String name)
Returns the specified attributes value. This method should be over-ridden by the specialized instances |
byte |
getDirection()
Returns the direction kind in the relation. 0 - LEFT_TO_RIGHT 1 - BIDIRECTIONAL |
java.lang.String |
getLeftRole()
Returns the left role name of the relation. |
java.lang.String |
getRightRole()
Returns the right role name of the relation. |
void |
setAttributeValue(java.lang.String name,
java.lang.Object value)
Sets the instance's attribute value. This method should be over-ridden by the specialized instances |
Result |
setLeftInstance(EntityInstance instance)
Sets the instance for the left item. |
Result |
setRightInstance(EntityInstance instance)
Sets the instance for the right item. |
Methods inherited from class iitb.con.core.Instance |
---|
setType |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public int leftInstanceId
public int rightInstanceId
Constructor Detail |
---|
public RelationInstance()
Method Detail |
---|
public java.lang.Object getAttributeValue(java.lang.String name)
Instance
getAttributeValue
in class Instance
name
- attribute name
public byte getDirection()
public java.lang.String getLeftRole()
public java.lang.String getRightRole()
public void setAttributeValue(java.lang.String name, java.lang.Object value)
Instance
setAttributeValue
in class Instance
name
- attribute namevalue
- attribute's valuepublic Result setLeftInstance(EntityInstance instance)
instance
- EntityInstance
Result
public Result setRightInstance(EntityInstance instance)
instance
- EntityInstance
Result
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |