Class 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
    Author:
    Guy Pelletier
    • Constructor Detail

      • NamedEntityGraphMetadata

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

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

      • 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.
      • includeAllAttributes

        public boolean includeAllAttributes()
        INTERNAL:
      • 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.
      • setSubclassSubgraphs

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