java.lang.Object
org.eclipse.persistence.internal.jpa.metadata.ORMetadata
org.eclipse.persistence.internal.jpa.metadata.accessors.classes.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
  • Constructor Details

    • XMLAttributes

      public XMLAttributes()
      INTERNAL:
  • Method Details

    • equals

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

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

      public 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 List<ArrayAccessor> getArrays()
      INTERNAL: Used for OX mapping.
    • getBasicCollections

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public void initXMLObject(MetadataAccessibleObject accessibleObject, XMLEntityMappings entityMappings)
      INTERNAL: This is going to initialize the accessible objects.
      Overrides:
      initXMLObject in class ORMetadata
    • 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(List<ArrayAccessor> arrays)
      INTERNAL: Used for OX mapping.
    • setBasicCollections

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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