Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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.

Author:
  halset
See Also:
  Serialized Form

Field Summary

Fields inherited from class org.apache.cayenne.map.DbRelationship
`joins, PROPERTY_DID_CHANGE, toDependentPK`

Fields inherited from class org.apache.cayenne.map.Relationship
`name, runtime, sourceEntity, targetEntityName, toMany`

Constructor Summary
`DbRelationshipDetected(String uniqueRelName)`

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, 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`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Constructor Detail

### DbRelationshipDetected

    public DbRelationshipDetected(String uniqueRelName)

Method Detail

### 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.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2001-2008 Apache Cayenne. All Rights Reserved.