public class StructureAccessor extends MappingAccessor
Defines a StructureMapping metadata. Key notes: - any metadata mapped from XML to this class must be compared in the equals method. - any metadata mapped from XML to this class must be initialized in the initXMLObject method. - when loading from annotations, the constructor accepts the metadata accessor this metadata was loaded from. Used it to look up any 'companion' annotation needed for processing. - methods should be preserved in alphabetical order.
Since:
EclipseLink 2.3
  • Constructor Details

  • Method Details

    • equals

      public boolean equals(Object objectToCompare)
      INTERNAL: Used for xml merging.
      Overrides:
      equals in class MappingAccessor
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class MappingAccessor
    • getColumn

      public ColumnMetadata getColumn()
      INTERNAL: Used for OX mapping.
    • getReferenceClass

      public MetadataClass getReferenceClass()
      INTERNAL: If a target class is specified in metadata, it will be set as the reference class, otherwise we will use the raw class.
      Overrides:
      getReferenceClass in class MappingAccessor
    • getTargetClass

      protected MetadataClass getTargetClass()
      INTERNAL: Return the target class for this accessor.
    • getTargetClassName

      protected String getTargetClassName()
      INTERNAL: Used for OX mapping.
    • initXMLObject

      public void initXMLObject(MetadataAccessibleObject accessibleObject, XMLEntityMappings entityMappings)
      INTERNAL:
      Overrides:
      initXMLObject in class MappingAccessor
    • isEmbedded

      public boolean isEmbedded()
      INTERNAL: Must return true as an embedded is referenced and needs to be correctly initialized.
      Overrides:
      isEmbedded in class MappingAccessor
    • process

      public void process()
      INTERNAL: Build and structure mapping and add it to the descriptor.
      Specified by:
      process in class MetadataAccessor
    • setColumn

      public void setColumn(ColumnMetadata column)
      INTERNAL: Used for OX mapping.
    • setTargetClassName

      public void setTargetClassName(String targetClassName)
      INTERNAL: Used for OX mapping.