Class StructureMapping

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable

    public class StructureMapping
    extends AbstractCompositeObjectMapping

    Purpose: A structure is an object-relational user-defined data-type or object-type. A structure is similar to a Java class as it defines attributes or fields where each attribute is either a primitive data-type, another structure, an array, or a reference to another structure. The mapping is similar to an AggregateObjectMapping, as multiple objects are stored in a single table.

    See Also:
    Serialized Form
    • Constructor Detail

      • StructureMapping

        public StructureMapping()
        Default constructor.
    • Method Detail

      • getStructureName

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

        public void setFieldName​(java.lang.String fieldName)
      • buildCompositeObject

        protected java.lang.Object buildCompositeObject​(org.eclipse.persistence.internal.descriptors.ObjectBuilder objectBuilder,
                                                        org.eclipse.persistence.internal.sessions.AbstractRecord nestedRow,
                                                        ObjectBuildingQuery query,
                                                        org.eclipse.persistence.internal.identitymaps.CacheKey parentCacheKey,
                                                        org.eclipse.persistence.internal.queries.JoinedAttributeManager joinManager,
                                                        org.eclipse.persistence.internal.sessions.AbstractSession targetSession)
        Specified by:
        buildCompositeObject in class AbstractCompositeObjectMapping