org.apache.cayenne.map
Class DbRelationshipDetected
java.lang.Object
org.apache.cayenne.map.Relationship
org.apache.cayenne.map.DbRelationship
org.apache.cayenne.map.DbRelationshipDetected
- All Implemented Interfaces:
- Serializable, CayenneMapEntry, XMLSerializable
public class DbRelationshipDetected
- extends DbRelationship
A subclass of DbRelationship
to hold some extra runtime information.
- See Also:
- Serialized Form
Method Summary |
String |
getFkName()
Get the name of the underlying foreign key. |
void |
setFkName(String fkName)
Set the name of the underlying foreign key. |
Methods inherited from class org.apache.cayenne.map.DbRelationship |
addJoin, createReverseRelationship, encodeAsXML, firePropertyDidChange, getJoins, getReverseRelationship, getSourceAttributes, getTargetAttributes, getTargetEntity, isFromPK, isToDependentPK, isToMasterPK, isToPK, isValidForDepPk, removeAllJoins, removeJoin, setJoins, setToDependentPK, setToMany, srcFkSnapshotWithTargetSnapshot, srcPkSnapshotWithTargetSnapshot, targetPkSnapshotWithSrcSnapshot |
Methods inherited from class org.apache.cayenne.map.Relationship |
getName, getParent, getSourceEntity, getTargetEntityName, isRuntime, isToMany, setName, setParent, setRuntime, setSourceEntity, setTargetEntity, setTargetEntityName, toString |
DbRelationshipDetected
public DbRelationshipDetected(String uniqueRelName)
setFkName
public void setFkName(String fkName)
- Set the name of the underlying foreign key. Typically FK_NAME from jdbc metadata.
getFkName
public String getFkName()
- Get the name of the underlying foreign key. Typically FK_NAME from jdbc metadata.
Copyright © 2001-2011 Apache Cayenne. All Rights Reserved.