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 SummaryFields
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedDbJoin()DbJoin(DbRelationship relationship) DbJoin(DbRelationship relationship, String sourceName, String targetName) 
- 
Method SummaryModifier and TypeMethodDescriptionReturns a "reverse" join.voidencodeAsXML(XMLEncoder encoder, ConfigurationNodeVisitor delegate) Prints itself as XML to the provided XMLEncoder.Returns DbAttribute on on the left side of the join.voidsetRelationship(DbRelationship relationship) voidsetSourceName(String string) voidsetTargetName(String string) toString()
- 
Field Details- 
relationship
- 
sourceName
- 
targetName
 
- 
- 
Constructor Details- 
DbJoinprotected DbJoin()
- 
DbJoin
- 
DbJoin
 
- 
- 
Method Details- 
createReverseJoinReturns a "reverse" join. Join source relationship is not set and must be initialized by the caller.
- 
getSourceReturns DbAttribute on on the left side of the join.
- 
getTarget
- 
encodeAsXMLPrints itself as XML to the provided XMLEncoder.- Specified by:
- encodeAsXMLin interface- XMLSerializable
 
- 
getRelationship
- 
getSourceName
- 
getTargetName
- 
setRelationship
- 
setSourceName
- 
setTargetName
- 
toString
 
-