Package org.apache.cayenne.map
Class DbJoin
java.lang.Object
org.apache.cayenne.map.DbJoin
- All Implemented Interfaces:
- Serializable,- XMLSerializable
public class DbJoin extends Object implements XMLSerializable, Serializable
Defines a join between two attributes of a given relationship.
- Since:
- 1.1
- See Also:
- Serialized Form
- 
Field SummaryFields Modifier and Type Field Description protected DbRelationshiprelationshipprotected StringsourceNameprotected StringtargetName
- 
Constructor SummaryConstructors Modifier Constructor Description protectedDbJoin()DbJoin(DbRelationship relationship)DbJoin(DbRelationship relationship, String sourceName, String targetName)
- 
Method SummaryModifier and Type Method Description DbJoincreateReverseJoin()Returns a "reverse" join.voidencodeAsXML(XMLEncoder encoder, ConfigurationNodeVisitor delegate)Prints itself as XML to the provided XMLEncoder.DbRelationshipgetRelationship()DbAttributegetSource()Returns DbAttribute on on the left side of the join.StringgetSourceName()DbAttributegetTarget()StringgetTargetName()voidsetRelationship(DbRelationship relationship)voidsetSourceName(String string)voidsetTargetName(String string)StringtoString()
- 
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
 
-