oracle.toplink.objectrelational
Class ReferenceMapping
java.lang.Object
oracle.toplink.mappings.DatabaseMapping
oracle.toplink.mappings.ForeignReferenceMapping
oracle.toplink.mappings.ObjectReferenceMapping
oracle.toplink.objectrelational.ReferenceMapping
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable
public class ReferenceMapping
- extends ObjectReferenceMapping
Purpose:
In an object-relational data model, structures reference each other through "Refs"; not through foreign keys as
in the relational data model. TopLink supports using the Ref to reference the target object.
- See Also:
- Serialized Form
Method Summary |
java.lang.String |
getFieldName()
Return the name of the field this mapping represents. |
void |
setFieldName(java.lang.String fieldName)
Set the field name in the mapping. |
void |
setReferenceClass(java.lang.Class referenceClass)
This is a reference class whose instances this mapping will store in the domain objects. |
Methods inherited from class oracle.toplink.mappings.ForeignReferenceMapping |
dontUseBatchReading, dontUseIndirection, getJoinFetch, getReferenceClass, getRelationshipPartnerAttributeName, isCascadeMerge, isCascadePersist, isCascadeRefresh, isCascadeRemove, isInnerJoinFetched, isJoinFetched, isOuterJoinFetched, isPrivateOwned, privateOwnedRelationship, setCascadeAll, setCascadeMerge, setCascadePersist, setCascadeRefresh, setCascadeRemove, setCustomSelectionQuery, setIndirectionPolicy, setIsPrivateOwned, setJoinFetch, setRelationshipPartnerAttributeName, setSelectionCall, setSelectionCriteria, setSelectionSQLString, setUsesBatchReading, setUsesIndirection, shouldUseBatchReading, useBasicIndirection, useBatchReading, useContainerIndirection, useInnerJoinFetch, useOuterJoinFetch, usesIndirection |
Methods inherited from class oracle.toplink.mappings.DatabaseMapping |
getAttributeAccessor, getAttributeClassification, getAttributeName, getGetMethodName, getProperty, getSetMethodName, isLazy, isOptional, isUsingMethodAccess, readOnly, readWrite, setAttributeAccessor, setAttributeName, setGetMethodName, setIsLazy, setIsOptional, setIsReadOnly, setProperty, setSetMethodName, setWeight, simpleAddToCollectionChangeRecord, simpleRemoveFromCollectionChangeRecord |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ReferenceMapping
public ReferenceMapping()
getFieldName
public java.lang.String getFieldName()
- Return the name of the field this mapping represents.
setFieldName
public void setFieldName(java.lang.String fieldName)
- Set the field name in the mapping.
setReferenceClass
public void setReferenceClass(java.lang.Class referenceClass)
- This is a reference class whose instances this mapping will store in the domain objects.
- Overrides:
setReferenceClass
in class ForeignReferenceMapping