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
    • Field Detail

      • m_name

        protected java.lang.String m_name
      • m_includeAllAttributes

        protected java.lang.Boolean m_includeAllAttributes
    • 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​(java.lang.Object objectToCompare)
        INTERNAL: Used for XML merging and overriding.
        Specified by:
        equals in class ORMetadata
      • hashCode

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

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

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

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

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

        public java.util.List<NamedSubgraphMetadata> getSubgraphs()
        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​(java.lang.Boolean includeAllAttributes)
        INTERNAL: Used for OX mapping.
      • setName

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

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

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

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