Class NamedSubgraphMetadata


  • public class NamedSubgraphMetadata
    extends ORMetadata
    Object to hold onto named sub 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_typeName

        protected java.lang.String m_typeName
    • Constructor Detail

      • NamedSubgraphMetadata

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

        public NamedSubgraphMetadata​(MetadataAnnotation namedSubgraph,
                                     ClassAccessor 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
      • getName

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

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

        public java.lang.String getTypeClassName()
        INTERNAL:
      • getTypeName

        public java.lang.String getTypeName()
        INTERNAL: Used for OX mapping.
      • process

        public void process​(java.util.Map<java.lang.String,​java.util.Map<java.lang.String,​org.eclipse.persistence.queries.AttributeGroup>> attributeGraphs)
        INTERNAL: Process the named subgraph metadata into a new attribute group.
      • processAttributeNodes

        public void processAttributeNodes​(java.util.Map<java.lang.String,​java.util.Map<java.lang.String,​org.eclipse.persistence.queries.AttributeGroup>> attributeGraphs,
                                          org.eclipse.persistence.queries.AttributeGroup subgraph,
                                          org.eclipse.persistence.queries.AttributeGroup entityGraph)
        INTERNAL: Process the named subgraph metadata attribute nodes.
      • setName

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

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

        public void setType​(MetadataClass type)
        INTERNAL:
      • setTypeName

        public void setTypeName​(java.lang.String typeName)
        INTERNAL: Used for OX mapping.