Module org.eclipse.persistence.jpa
Class NamedSubgraphMetadata
java.lang.Object
org.eclipse.persistence.internal.jpa.metadata.ORMetadata
org.eclipse.persistence.internal.jpa.metadata.graphs.NamedSubgraphMetadata
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
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
protected List
<NamedAttributeNodeMetadata> protected MetadataClass
protected String
Fields inherited from class org.eclipse.persistence.internal.jpa.metadata.ORMetadata
m_project
-
Constructor Summary
ConstructorDescriptionINTERNAL: Used for XML loading.NamedSubgraphMetadata
(MetadataAnnotation namedSubgraph, ClassAccessor accessor) INTERNAL: Used for annotation loading. -
Method Summary
Modifier and TypeMethodDescriptionboolean
INTERNAL: Used for XML merging and overriding.INTERNAL: The unique identifier of named subgraph metadata.getName()
INTERNAL: Used for OX mapping.INTERNAL: Used for OX mapping.INTERNAL:INTERNAL: Used for OX mapping.int
hashCode()
void
initXMLObject
(MetadataAccessibleObject accessibleObject, XMLEntityMappings entityMappings) INTERNAL:void
INTERNAL: Process the named subgraph metadata into a new attribute group.void
processAttributeNodes
(Map<String, Map<String, AttributeGroup>> attributeGraphs, AttributeGroup subgraph, AttributeGroup entityGraph) INTERNAL: Process the named subgraph metadata attribute nodes.void
INTERNAL: Used for OX mapping.void
setNamedAttributeNodes
(List<NamedAttributeNodeMetadata> namedAttributeNodes) INTERNAL: Used for OX mapping.void
setType
(MetadataClass type) INTERNAL:void
setTypeName
(String typeName) INTERNAL: Used for OX mapping.Methods inherited from class org.eclipse.persistence.internal.jpa.metadata.ORMetadata
getAccessibleObject, getAccessibleObjectName, getAnnotation, getBoxedType, getDatabaseTypeEnum, getEntityMappings, getFullyQualifiedClassName, getJavaClass, getJavaClassName, getLoader, getLocation, getLogger, getMetadataClass, getMetadataClass, getMetadataClass, getMetadataFactory, getName, getPrimitiveClassForName, getProject, getText, getXMLElement, hasIdentifier, hasText, initXMLClassName, initXMLObject, initXMLObjects, initXMLTextObject, loadedFromAnnotation, loadedFromEclipseLinkXML, loadedFromXML, merge, mergeORObjectLists, mergeORObjects, mergeSimpleObjects, reloadEntity, reloadMappedSuperclass, setAccessibleObject, setEntityMappings, setFieldName, setFieldName, setProject, shouldOverride, valuesMatch, valuesMatch
-
Field Details
-
m_name
-
m_type
-
m_typeName
-
m_namedAttributeNodes
-
-
Constructor Details
-
NamedSubgraphMetadata
public NamedSubgraphMetadata()INTERNAL: Used for XML loading. -
NamedSubgraphMetadata
INTERNAL: Used for annotation loading.
-
-
Method Details
-
equals
INTERNAL: Used for XML merging and overriding.- Specified by:
equals
in classORMetadata
-
hashCode
public int hashCode() -
getIdentifier
INTERNAL: The unique identifier of named subgraph metadata.- Overrides:
getIdentifier
in classORMetadata
- See Also:
-
getName
INTERNAL: Used for OX mapping. -
getNamedAttributeNodes
INTERNAL: Used for OX mapping. -
getTypeClassName
INTERNAL: -
getTypeName
INTERNAL: Used for OX mapping. -
initXMLObject
public void initXMLObject(MetadataAccessibleObject accessibleObject, XMLEntityMappings entityMappings) INTERNAL:- Overrides:
initXMLObject
in classORMetadata
-
process
INTERNAL: Process the named subgraph metadata into a new attribute group. -
processAttributeNodes
public void processAttributeNodes(Map<String, Map<String, AttributeGroup>> attributeGraphs, AttributeGroup subgraph, AttributeGroup entityGraph) INTERNAL: Process the named subgraph metadata attribute nodes. -
setName
INTERNAL: Used for OX mapping. -
setNamedAttributeNodes
INTERNAL: Used for OX mapping. -
setType
INTERNAL: -
setTypeName
INTERNAL: Used for OX mapping.
-