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.lang.Cloneable, java.io.Serializable
- 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
Type | Method |
java.lang.String |
getFieldName()
PUBLIC:
Return the name of the field this mapping represents. |
void |
setFieldName(java.lang.String fieldName)
PUBLIC:
Set the field name in the mapping. |
void |
setReferenceClass(java.lang.Class referenceClass)
PUBLIC:
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, getReferenceClass,
getRelationshipPartnerAttributeName, privateOwnedRelationship,
setCustomSelectionQuery, setIndirectionPolicy,
setRelationshipPartnerAttributeName, setSelectionCriteria,
setSelectionSQLString, setUsesBatchReading,
setUsesIndirection, shouldUseBatchReading, useBasicIndirection,
useBatchReading, useContainerIndirection, useIndirection,
usesIndirection |
Methods inherited from class oracle.toplink.mappings.DatabaseMapping |
getAttributeClassification, getAttributeName, getGetMethodName,
getSetMethodName, readOnly, readWrite,
setAttributeName, setGetMethodName, setIsReadOnly,
setSetMethodName, setWeight |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ReferenceMapping
public ReferenceMapping()
getFieldName
public java.lang.String getFieldName()
- PUBLIC:
Return the name of the field this mapping represents.
setFieldName
public void setFieldName(java.lang.String fieldName)
- PUBLIC:
Set the field name in the mapping.
setReferenceClass
public void setReferenceClass(java.lang.Class referenceClass)
- PUBLIC:
This is a reference class whose instances this mapping will store in the domain objects.
- Overrides:
setReferenceClass
in class ForeignReferenceMapping