Class StructureAccessor


  • 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
    Author:
    James Sutherland
    • Method Detail

      • equals

        public boolean equals​(Object objectToCompare)
        INTERNAL: Used for xml merging.
        Overrides:
        equals 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.
      • 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.