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.
ArrayMapping is used to map a collection of primitive data
ObjectArrayMapping is used to map a collection of Oracle data-type
Note
Only Oracle8i supports Varray type.
ArrayMapping
| Modifier and Type | Field and Description |
|---|---|
| protected String | structureName
Arrays require a structure name, this is the ADT defined for the VARRAY. |
| Access | Constructor and Description |
|---|---|
| public |
| structureName | back to summary |
|---|---|
| protected String structureName Arrays require a structure name, this is the ADT defined for the VARRAY. | |
| ObjectArrayMapping | back to summary |
|---|---|
| public ObjectArrayMapping() | |
| buildCompositeObject | back to summary |
|---|---|
| protected Object buildCompositeObject(ClassDescriptor descriptor, AbstractRecord nestedRow, ObjectBuildingQuery query, CacheKey parentCacheKey, JoinedAttributeManager joinManager, AbstractSession targetSession) Implements abstract org.
| |
| buildCompositeRow | back to summary |
|---|---|
| protected AbstractRecord buildCompositeRow(Object attributeValue, AbstractSession session, AbstractRecord parentRow, DatabaseMapping. Implements abstract org.
| |
| getStructureName | back to summary |
|---|---|
| public String getStructureName() Overrides org. PUBLIC: Return the name of the structure. This is the name of the user defined data type as defined on the database.
| |
| initialize | back to summary |
|---|---|
| public void initialize(AbstractSession session) throws DescriptorException Overrides org. INTERNAL: Initialize the mapping.
| |
| isRelationalMapping | back to summary |
|---|---|
| public boolean isRelationalMapping() Overrides org. INTERNAL:
| |
| setFieldName | back to summary |
|---|---|
| public void setFieldName(String fieldName) | |
| setStructureName | back to summary |
|---|---|
| public void setStructureName(String structureName) PUBLIC: Set the name of the structure. This is the name of the user defined data type as defined on the database. | |