|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectthinkmap.datasource.database.EntityRelation
public class EntityRelation
The Relation between one entity and another.
| Constructor Summary | |
|---|---|
EntityRelation()
Empty constructor. |
|
EntityRelation(String name,
Binding entityType,
boolean isReciprocal,
Binding[] ids)
Constructor that specifies everything |
|
| Method Summary | |
|---|---|
Binding |
getEntityType()
Get the entity type of mapped entities. |
Binding[] |
getIdBindings()
Get the id column index array. |
boolean |
getIsReciprocal()
Determine if the relation specified in this mapping is reciprocal. |
String |
getName()
Get the name of the relation that connects this entity and the related entity. |
void |
setEntityType(Binding entityType)
Set the entity type of mapped entities. |
void |
setIdBindings(Binding[] ids)
Set the id column index array. |
void |
setIsReciprocal(boolean isReciprocal)
Set whether or not the relation specified in this mapping is reciprocal. |
void |
setName(String name)
Sets the name of the relation that connects this entity and the related entity. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EntityRelation()
public EntityRelation(String name,
Binding entityType,
boolean isReciprocal,
Binding[] ids)
| Method Detail |
|---|
public void setEntityType(Binding entityType)
entityType - entity typepublic Binding getEntityType()
public void setIsReciprocal(boolean isReciprocal)
isReciprocal - true if the relation is reciprocalpublic boolean getIsReciprocal()
public String getName()
public void setName(String name)
public void setIdBindings(Binding[] ids)
ids - column indicespublic Binding[] getIdBindings()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||