org.apache.cayenne.map
Class DbJoin
java.lang.Object
   org.apache.cayenne.map.DbJoin
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
 
 
 
 
relationship
protected DbRelationship relationship
sourceName
protected String sourceName
targetName
protected String targetName
DbJoin
protected DbJoin()
DbJoin
public DbJoin(DbRelationship relationship)
DbJoin
public DbJoin(DbRelationship relationship,
              String sourceName,
              String targetName)
createReverseJoin
public DbJoin createReverseJoin()
- Returns a "reverse" join. Join source relationship is not set and must be
 initialized by the caller.
 
- 
 
- 
 
getSource
public DbAttribute getSource()
- Returns DbAttribute on on the left side of the join.
 
- 
 
- 
 
getTarget
public DbAttribute getTarget()
- 
 
- 
 
encodeAsXML
public void encodeAsXML(XMLEncoder encoder)
- Prints itself as XML to the provided XMLEncoder.
 
- 
- Specified by:
- encodeAsXMLin interface- XMLSerializable
 
- 
 
getRelationship
public DbRelationship getRelationship()
- 
 
- 
 
getSourceName
public String getSourceName()
- 
 
- 
 
getTargetName
public String getTargetName()
- 
 
- 
 
setRelationship
public void setRelationship(DbRelationship relationship)
- 
 
- 
 
setSourceName
public void setSourceName(String string)
- 
 
- 
 
setTargetName
public void setTargetName(String string)
- 
 
- 
 
toString
public String toString()
- 
- Overrides:
- toStringin class- Object
 
- 
 
Copyright © 2001-2011 Apache Cayenne. All Rights Reserved.