Oracle Application Server TopLink API Reference
10g Release 2 (10.1.2)

B15903-01


oracle.toplink.objectrelational
Class ReferenceMapping

java.lang.Object
  extended byoracle.toplink.mappings.DatabaseMapping
      extended byoracle.toplink.mappings.ForeignReferenceMapping
          extended byoracle.toplink.mappings.ObjectReferenceMapping
              extended byoracle.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

Constructor Summary
ReferenceMapping()

Method Summary
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.ObjectReferenceMapping
useProxyIndirection, useProxyIndirection, useProxyIndirection

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, simpleAddToCollectionChangeRecord, simpleRemoveFromCollectionChangeRecord

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

Constructor Detail

ReferenceMapping

public ReferenceMapping()

Method Detail

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

Copyright © 1998, 2005 Oracle Corporation. All Rights Reserved.