Class XMLAttributes

  • Direct Known Subclasses:
    Attributes

    public class XMLAttributes
    extends ORMetadata
    Object to represent all the attributes of an XML defined entity, mapped-superclass or embeddable. 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 handled in the merge method. (merging is done at the accessor/mapping level) - any metadata mapped from XML to this class must be initialized in the initXMLObject method. - methods should be preserved in alphabetical order.
    Since:
    EclipseLink 1.0
    Author:
    Guy Pelletier
    • Constructor Detail

      • XMLAttributes

        public XMLAttributes()
        INTERNAL:
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object objectToCompare)
        INTERNAL:
        Specified by:
        equals in class ORMetadata
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • getAccessors

        public java.util.List<MappingAccessor> getAccessors()
        INTERNAL: This list is not cached and should not be cached since our accessors may change in a merge. The accessors list gets rebuilt every time this method is called (which should only ever be once!)
      • getArrays

        public java.util.List<ArrayAccessor> getArrays()
        INTERNAL: Used for OX mapping.
      • getBasicCollections

        public java.util.List<BasicCollectionAccessor> getBasicCollections()
        INTERNAL: Used for OX mapping.
      • getBasicMaps

        public java.util.List<BasicMapAccessor> getBasicMaps()
        INTERNAL: Used for OX mapping.
      • getBasics

        public java.util.List<BasicAccessor> getBasics()
        INTERNAL: Used for OX mapping.
      • getElementCollections

        public java.util.List<ElementCollectionAccessor> getElementCollections()
        INTERNAL: Used for OX mapping.
      • getEmbeddedId

        public EmbeddedIdAccessor getEmbeddedId()
        INTERNAL: Used for OX mapping.
      • getEmbeddeds

        public java.util.List<EmbeddedAccessor> getEmbeddeds()
        INTERNAL: Used for OX mapping.
      • getIds

        public java.util.List<IdAccessor> getIds()
        INTERNAL: Used for OX mapping.
      • getManyToManys

        public java.util.List<ManyToManyAccessor> getManyToManys()
        INTERNAL: Used for OX mapping.
      • getManyToOnes

        public java.util.List<ManyToOneAccessor> getManyToOnes()
        INTERNAL: Used for OX mapping.
      • getOneToManys

        public java.util.List<OneToManyAccessor> getOneToManys()
        INTERNAL: Used for OX mapping.
      • getOneToOnes

        public java.util.List<OneToOneAccessor> getOneToOnes()
        INTERNAL: Used for OX mapping.
      • getStructures

        public java.util.List<StructureAccessor> getStructures()
        INTERNAL: Used for OX mapping.
      • getTransformations

        public java.util.List<TransformationAccessor> getTransformations()
        INTERNAL: Used for OX mapping.
      • getTransients

        public java.util.List<TransientAccessor> getTransients()
        INTERNAL: Used for OX mapping.
      • getVariableOneToOnes

        public java.util.List<VariableOneToOneAccessor> getVariableOneToOnes()
        INTERNAL: Used for OX mapping.
      • getVersions

        public java.util.List<VersionAccessor> getVersions()
        INTERNAL: Used for OX mapping.
      • merge

        public void merge​(ORMetadata metadata)
        INTERNAL: Since we are controlling the merging and we know we'll be comparing apples with apples, the casting is safe to assume.
        Overrides:
        merge in class ORMetadata
      • setArrays

        public void setArrays​(java.util.List<ArrayAccessor> arrays)
        INTERNAL: Used for OX mapping.
      • setBasicCollections

        public void setBasicCollections​(java.util.List<BasicCollectionAccessor> basicCollections)
        INTERNAL: Used for OX mapping.
      • setBasicMaps

        public void setBasicMaps​(java.util.List<BasicMapAccessor> basicMaps)
        INTERNAL: Used for OX mapping.
      • setBasics

        public void setBasics​(java.util.List<BasicAccessor> basics)
        INTERNAL: Used for OX mapping.
      • setElementCollections

        public void setElementCollections​(java.util.List<ElementCollectionAccessor> elementCollections)
        INTERNAL: Used for OX mapping.
      • setEmbeddedId

        public void setEmbeddedId​(EmbeddedIdAccessor embeddedId)
        INTERNAL: Used for OX mapping.
      • setEmbeddeds

        public void setEmbeddeds​(java.util.List<EmbeddedAccessor> embeddeds)
        INTERNAL: Used for OX mapping.
      • setIds

        public void setIds​(java.util.List<IdAccessor> ids)
        INTERNAL: Used for OX mapping.
      • setManyToManys

        public void setManyToManys​(java.util.List<ManyToManyAccessor> manyToManys)
        INTERNAL: Used for OX mapping.
      • setManyToOnes

        public void setManyToOnes​(java.util.List<ManyToOneAccessor> manyToOnes)
        INTERNAL: Used for OX mapping.
      • setOneToManys

        public void setOneToManys​(java.util.List<OneToManyAccessor> oneToManys)
        INTERNAL: Used for OX mapping.
      • setOneToOnes

        public void setOneToOnes​(java.util.List<OneToOneAccessor> oneToOnes)
        INTERNAL: Used for OX mapping.
      • setStructures

        public void setStructures​(java.util.List<StructureAccessor> structures)
        INTERNAL: Used for OX mapping.
      • setTransformations

        public void setTransformations​(java.util.List<TransformationAccessor> transformations)
        INTERNAL: Used for OX mapping.
      • setTransients

        public void setTransients​(java.util.List<TransientAccessor> transients)
        INTERNAL: Used for OX mapping.
      • setVariableOneToOnes

        public void setVariableOneToOnes​(java.util.List<VariableOneToOneAccessor> variableOneToOnes)
        INTERNAL: Used for OX mapping.
      • setVersions

        public void setVersions​(java.util.List<VersionAccessor> versions)
        INTERNAL: Used for OX mapping.