Class NamedAttributeNodeMetadata


  • public class NamedAttributeNodeMetadata
    extends ORMetadata
    Object to hold onto named attribute node 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_subgraph

        protected java.lang.String m_subgraph
      • m_keySubgraph

        protected java.lang.String m_keySubgraph
    • Constructor Detail

      • NamedAttributeNodeMetadata

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

        public NamedAttributeNodeMetadata​(MetadataAnnotation namedAttributeNode,
                                          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
      • getKeySubgraph

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

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

        public java.lang.String getSubgraph()
        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,
                            org.eclipse.persistence.queries.AttributeGroup graph,
                            org.eclipse.persistence.queries.AttributeGroup rootGraph)
        INTERNAL: Process the named attribute node metadata.
      • setKeySubgraph

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

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

        public void setSubgraph​(java.lang.String subgraph)
        INTERNAL: Used for OX mapping.