Package org.apache.cayenne.map
Class DbJoin
java.lang.Object
org.apache.cayenne.map.DbJoin
- All Implemented Interfaces:
Serializable
,XMLSerializable
Defines a join between two attributes of a given relationship.
- Since:
- 1.1
- See Also:
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
DbJoin()
DbJoin
(DbRelationship relationship) DbJoin
(DbRelationship relationship, String sourceName, String targetName) -
Method Summary
Modifier and TypeMethodDescriptionReturns a "reverse" join.void
encodeAsXML
(XMLEncoder encoder, ConfigurationNodeVisitor delegate) Prints itself as XML to the provided XMLEncoder.Returns DbAttribute on on the left side of the join.void
setRelationship
(DbRelationship relationship) void
setSourceName
(String string) void
setTargetName
(String string) toString()
-
Field Details
-
relationship
-
sourceName
-
targetName
-
-
Constructor Details
-
DbJoin
protected DbJoin() -
DbJoin
-
DbJoin
-
-
Method Details
-
createReverseJoin
Returns a "reverse" join. Join source relationship is not set and must be initialized by the caller. -
getSource
Returns DbAttribute on on the left side of the join. -
getTarget
-
encodeAsXML
Prints itself as XML to the provided XMLEncoder.- Specified by:
encodeAsXML
in interfaceXMLSerializable
-
getRelationship
-
getSourceName
-
getTargetName
-
setRelationship
-
setSourceName
-
setTargetName
-
toString
-