All Implemented Interfaces:
Serializable, Cloneable, ContainerMapping, ArrayCollectionMapping

public class ArrayMapping extends AbstractCompositeDirectCollectionMapping

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:
  • Constructor Details

    • ArrayMapping

      public ArrayMapping()
      Default constructor.
  • Method Details

    • setFieldName

      public void setFieldName(String fieldName)
      PUBLIC: Set the name of the field that holds the nested collection.
    • getStructureName

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

      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.
    • getElementDataTypeName

      public String getElementDataTypeName()
      PUBLIC: Return the "data type" associated with each element in the nested collection. Depending on the data store, this could be optional.
    • setElementDataTypeName

      public void setElementDataTypeName(String elementDataTypeName)
      PUBLIC: Set the "data type" associated with each element in the nested collection. Depending on the data store, this could be optional.
    • isRelationalMapping

      public boolean isRelationalMapping()
      INTERNAL:
      Overrides:
      isRelationalMapping in class DatabaseMapping
    • initialize

      public void initialize(AbstractSession session) throws DescriptorException
      INTERNAL: Initialize the mapping.
      Overrides:
      initialize in class AbstractCompositeDirectCollectionMapping
      Throws:
      DescriptorException