java.lang.Object
org.eclipse.persistence.internal.jpa.metadata.ORMetadata
org.eclipse.persistence.internal.jpa.metadata.graphs.NamedEntityGraphMetadata

public class NamedEntityGraphMetadata extends ORMetadata
Object to hold onto named entity graph 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.5
  • Field Details

  • Constructor Details

    • NamedEntityGraphMetadata

      public NamedEntityGraphMetadata()
      INTERNAL: Used for XML loading.
    • NamedEntityGraphMetadata

      public NamedEntityGraphMetadata(MetadataAnnotation namedEntityGraph, EntityAccessor accessor)
      INTERNAL: Used for annotation loading.
  • Method Details

    • equals

      public boolean equals(Object objectToCompare)
      INTERNAL: Used for XML merging and overriding.
      Specified by:
      equals in class ORMetadata
    • hashCode

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

      public Boolean getIncludeAllAttributes()
      INTERNAL: Used for OX mapping.
    • getName

      public String getName()
      INTERNAL: Used for OX mapping.
    • getNamedAttributeNodes

      public List<NamedAttributeNodeMetadata> getNamedAttributeNodes()
      INTERNAL: Used for OX mapping.
    • getSubclassSubgraphs

      public List<NamedSubgraphMetadata> getSubclassSubgraphs()
      INTERNAL: Used for OX mapping.
    • getSubgraphs

      public List<NamedSubgraphMetadata> getSubgraphs()
      INTERNAL: Used for OX mapping.
    • includeAllAttributes

      public boolean includeAllAttributes()
      INTERNAL:
    • initXMLObject

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

      protected boolean hasName()
      INTERNAL: Return true is a name was provided through metadata.
    • process

      public void process(EntityAccessor entityAccessor)
      INTERNAL: Process the entity graph metadata.
    • setIncludeAllAttributes

      public void setIncludeAllAttributes(Boolean includeAllAttributes)
      INTERNAL: Used for OX mapping.
    • setName

      public void setName(String name)
      INTERNAL: Used for OX mapping.
    • setNamedAttributeNodes

      public void setNamedAttributeNodes(List<NamedAttributeNodeMetadata> attributeNodes)
      INTERNAL: Used for OX mapping.
    • setSubclassSubgraphs

      public void setSubclassSubgraphs(List<NamedSubgraphMetadata> subclassSubgraphs)
      INTERNAL: Used for OX mapping.
    • setSubgraphs

      public void setSubgraphs(List<NamedSubgraphMetadata> subgraphs)
      INTERNAL: Used for OX mapping.