|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eobjects.metamodel.util.BaseObject
org.eobjects.metamodel.schema.AbstractRelationship
public abstract class AbstractRelationship
| Constructor Summary | |
|---|---|
AbstractRelationship()
|
|
| Method Summary | |
|---|---|
protected static Table |
checkSameTable(Column[] columns)
|
protected boolean |
classEquals(BaseObject obj)
Override this method if the equals method should support different subtypes. |
int |
compareTo(Relationship that)
|
boolean |
containsColumnPair(Column pkColumn,
Column fkColumn)
Determines whether this relationship contains a specific pair of columns |
protected void |
decorateIdentity(List<Object> identifiers)
Subclasses should implement this method and add all fields to the list that are to be included in equals(...) and hashCode() evaluation |
Table |
getForeignTable()
Gets the table of the foreign key column(s). |
Table |
getPrimaryTable()
Gets the table of the primary key column(s). |
String |
toString()
|
| Methods inherited from class org.eobjects.metamodel.util.BaseObject |
|---|
equals, hashCode |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.eobjects.metamodel.schema.Relationship |
|---|
getForeignColumns, getPrimaryColumns |
| Constructor Detail |
|---|
public AbstractRelationship()
| Method Detail |
|---|
protected static Table checkSameTable(Column[] columns)
public Table getForeignTable()
Relationship
getForeignTable in interface Relationshippublic Table getPrimaryTable()
Relationship
getPrimaryTable in interface Relationshippublic String toString()
toString in class BaseObjectpublic int compareTo(Relationship that)
compareTo in interface Comparable<Relationship>protected final void decorateIdentity(List<Object> identifiers)
BaseObject
decorateIdentity in class BaseObjectprotected final boolean classEquals(BaseObject obj)
BaseObject
obj instanceof Number
and make sure that the decorateIdentity(...) method will always return a
comparable list of identity-objects.
classEquals in class BaseObject
public boolean containsColumnPair(Column pkColumn,
Column fkColumn)
Relationship
containsColumnPair in interface RelationshippkColumn - primary key columnfkColumn - foreign key column
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||