|
WebObjects 5.2.3 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.webobjects.eoaccess.EOJoin
An EOJoin describes one source-destination attribute pair for an EORelationship.
EORelationship
Constructor Summary | |
EOJoin(EOAttribute source,
EOAttribute destination)
Creates and returns a new EOJoin with the given source and destination
attributes. |
Method Summary | |
Object |
clone()
Returns a reference to the receiver. |
EOAttribute |
destinationAttribute()
Returns the destination ("right") attribute of the receiver. |
boolean |
equals(Object object)
Compares object with the receiver and returns
true if they are identical, false
otherwise. |
boolean |
isReciprocalToJoin(EOJoin otherJoin)
Returns true if the receiver's source attribute is
identical to otherJoin 's destination attribute, and
otherJoin 's source attribute is equal to the
receiver's destination attribute; returns false
otherwise. |
EOAttribute |
sourceAttribute()
Returns the source ("left") attribute of the receiver. |
String |
toString()
Returns a string representation of the receiver. |
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public EOJoin(EOAttribute source, EOAttribute destination)
source
and destination
attributes. See the EORelationship class documentation
for an example of creating a relationship using EOJoins.
source
- The source attribute for the new EOJoin.destination
- The destination attribute for the new EOJoin.EORelationship
,
EORelationship.addJoin(EOJoin aJoin)
Method Detail |
public Object clone()
public EOAttribute destinationAttribute()
EORelationship.destinationAttributes()
public boolean equals(Object object)
object
with the receiver and returns
true
if they are identical, false
otherwise.
object
- An object to be compared with the receiver.
true
if object
and
the receiver are identical.public boolean isReciprocalToJoin(EOJoin otherJoin)
true
if the receiver's source attribute is
identical to otherJoin
's destination attribute, and
otherJoin
's source attribute is equal to the
receiver's destination attribute; returns false
otherwise. This type of join is known as a back-referencing join.
otherJoin
- An EOJoin object to compare with the receiver.
true
if otherJoin
is a back-referencing join relative to the
receiver.EORelationship.inverseRelationship()
public EOAttribute sourceAttribute()
EORelationship.sourceAttributes()
public String toString()
|
Last updated Thu Oct 21 15:04:16 PDT 2004. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |