Oracle Application Server TopLink API Reference
10g (9.0.4.3)

B10491-02

oracle.toplink.objectrelational
Class ArrayMapping

java.lang.Object
  extended byoracle.toplink.mappings.DatabaseMapping
      extended byoracle.toplink.sdk.SDKDirectCollectionMapping
          extended byoracle.toplink.objectrelational.ArrayMapping

All Implemented Interfaces:
java.lang.Cloneable, ContainerMapping, SDKCollectionMapping, java.io.Serializable

public class ArrayMapping
extends SDKDirectCollectionMapping

Purpose: In an object-relational data model, structures can contain "Arrays" or collections of other data-types. In Oracle 8i, a "VARRAY" is typically used to represent a collection of primitive data or aggregate structures. These arrays are stored with their parent structure in the same table.

See Also:
StructureMapping, NestedTableMapping, ReferenceMapping, Serialized Form

Constructor Summary
ArrayMapping()
          Default constructor.

 

Method Summary
 java.lang.String getStructureName()
          PUBLIC: Return the name of the structure.
 void initialize(oracle.toplink.publicinterface.Session session)
          INTERNAL: Initialize the mapping.
 void setFieldName(java.lang.String fieldName)
          PUBLIC: Set the name of the field that holds the nested collection.
 void setStructureName(java.lang.String structureName)
          PUBLIC: Set the name of the structure.

 

Methods inherited from class oracle.toplink.sdk.SDKDirectCollectionMapping
buildAddedElementFromChangeSet, buildBackupClone, buildChangeSet, buildClone, buildCopy, buildElementFromElement, buildRemovedElementFromChangeSet, compareElements, compareElementsForChange, compareForChange, compareObjects, fixObjectReferences, getAttributeElementClass, getContainerPolicy, getElementDataTypeName, getField, getFieldElementClass, getFieldName, getRealCollectionAttributeValueFromObject, iterate, mapKeyHasChanged, mergeChangesIntoObject, mergeIntoObject, setAttributeElementClass, setContainerPolicy, setElementDataTypeName, setFieldElementClass, simpleAddToCollectionChangeRecord, simpleRemoveFromCollectionChangeRecord, useCollectionClass, useMapClass, valueFromRow, writeFromObjectIntoRow, writeFromObjectIntoRowForUpdate, writeFromObjectIntoRowWithChangeRecord, writeInsertFieldsIntoRow

 

Methods inherited from class oracle.toplink.mappings.DatabaseMapping
buildBackupCloneForPartObject, buildCloneForPartObject, buildExpression, buildObjectJoinExpression, buildObjectJoinExpression, cascadeMerge, clone, createUnitOfWorkValueHolder, fixRealObjectReferences, getAttributeAccessor, getAttributeClassification, getAttributeName, getAttributeValueFromObject, getDescriptor, getFieldClassification, getFields, getGetMethodName, getObjectCorrespondingTo, getProperties, getProperty, getRealAttributeValueFromObject, getReferenceDescriptor, getRelationshipPartner, getSetMethodName, getValueFromRemoteValueHolder, getWeight, hasConstraintDependency, hasDependency, hasInverseConstraintDependency, isAggregateCollectionMapping, isAggregateMapping, isAggregateObjectMapping, isCollectionMapping, isDatabaseMapping, isDirectCollectionMapping, isDirectToFieldMapping, isForeignReferenceMapping, isManyToManyMapping, isNestedTableMapping, isObjectReferenceMapping, isObjectTypeMapping, isOneToManyMapping, isOneToOneMapping, isPrivateOwned, isReadOnly, isReferenceMapping, isSerializedObjectMapping, isStructureMapping, isTransformationMapping, isTypeConversionMapping, isVariableOneToOneMapping, isWriteOnly, iterateOnRealAttributeValue, performDataModificationEvent, postDelete, postInitialize, postInsert, postUpdate, preDelete, preInitialize, preInsert, preUpdate, readFromRowIntoObject, readOnly, readWrite, rehashFieldDependancies, remoteInitialization, replaceValueHoldersIn, setAttributeAccessor, setAttributeName, setAttributeValueInObject, setDescriptor, setGetMethodName, setIsReadOnly, setProperties, setProperty, setRealAttributeValueInObject, setSetMethodName, setWeight, toString, validateAfterInitialization, validateBeforeInitialization, valueFromObject, verifyDelete, writeFromObjectIntoRowForShallowInsert, writeFromObjectIntoRowForShallowInsertWithChangeRecord, writeFromObjectIntoRowForWhereClause, writeUpdateFieldsIntoRow

 

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

 

Methods inherited from interface oracle.toplink.sdk.SDKCollectionMapping
getAttributeName, setRealAttributeValueInObject

 

Constructor Detail

ArrayMapping

public ArrayMapping()
Default constructor.
Method Detail

getStructureName

public java.lang.String getStructureName()
PUBLIC: Return the name of the structure. This is the name of the user-defined data type as defined on the database.

initialize

public void initialize(oracle.toplink.publicinterface.Session session)
                throws DescriptorException
INTERNAL: Initialize the mapping.
Overrides:
initialize in class SDKDirectCollectionMapping
Throws:
DescriptorException

setFieldName

public void setFieldName(java.lang.String fieldName)
PUBLIC: Set the name of the field that holds the nested collection.
Overrides:
setFieldName in class SDKDirectCollectionMapping

setStructureName

public void setStructureName(java.lang.String structureName)
PUBLIC: Set the name of the structure. This is the name of the user-defined data type as defined on the database.

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