public class DbJoin extends Object implements XMLSerializable, Serializable
Modifier and Type | Field and Description |
---|---|
protected DbRelationship |
relationship |
protected String |
sourceName |
protected String |
targetName |
Modifier | Constructor and Description |
---|---|
protected |
DbJoin() |
|
DbJoin(DbRelationship relationship) |
|
DbJoin(DbRelationship relationship,
String sourceName,
String targetName) |
Modifier and Type | Method and Description |
---|---|
DbJoin |
createReverseJoin()
Returns a "reverse" join.
|
void |
encodeAsXML(XMLEncoder encoder)
Prints itself as XML to the provided XMLEncoder.
|
DbRelationship |
getRelationship() |
DbAttribute |
getSource()
Returns DbAttribute on on the left side of the join.
|
String |
getSourceName() |
DbAttribute |
getTarget() |
String |
getTargetName() |
void |
setRelationship(DbRelationship relationship) |
void |
setSourceName(String string) |
void |
setTargetName(String string) |
String |
toString() |
protected DbRelationship relationship
protected String sourceName
protected String targetName
protected DbJoin()
public DbJoin(DbRelationship relationship)
public DbJoin(DbRelationship relationship, String sourceName, String targetName)
public DbJoin createReverseJoin()
public DbAttribute getSource()
public DbAttribute getTarget()
public void encodeAsXML(XMLEncoder encoder)
encodeAsXML
in interface XMLSerializable
public DbRelationship getRelationship()
public String getSourceName()
public String getTargetName()
public void setRelationship(DbRelationship relationship)
public void setSourceName(String string)
public void setTargetName(String string)
Copyright © 2001–2023 Apache Cayenne. All rights reserved.