Top Description Methods
org.hibernate.graph

public Interface AttributeNode<J>

extends GraphNode<J>, AttributeNode<J>
Known Direct Subinterfaces
org.hibernate.graph.spi.AttributeNodeImplementor
Imports
java.util.Map, javax.persistence.Subgraph, javax.persistence.metamodel.Attribute

Hibernate extension to the JPA entity-graph AttributeNode contract.
Authors
Strong Liu, Steve Ebersole, Andrea Boriero

Method Summary

Modifier and TypeMethod and Description
public <S extends J> void
addKeySubGraph(Class<S> subType, SubGraph<S> subGraph)

public <S extends J> void
addSubGraph(Class<S> subType, SubGraph<S> subGraph)

public Attribute<?, J>
public Map<Class<? extends J>, SubGraph<? extends J>>
public default Map<Class<T>, Subgraph<T>>
getKeySubgraphs()

Implements javax.persistence.AttributeNode.getKeySubgraphs.

Return the Map<Class, Subgraph> of subgraphs associated with this attribute node's map key.
public Map<Class<? extends J>, SubGraph<? extends J>>
public default Map<Class<T>, Subgraph<T>>
getSubgraphs()

Implements javax.persistence.AttributeNode.getSubgraphs.

Return the Map<Class, Subgraph> of subgraphs associated with this attribute node.
public SubGraph<J>
public <S extends J> SubGraph<S>
makeKeySubGraph(Class<S> subtype)

public SubGraph<J>
public <S extends J> SubGraph<S>
makeSubGraph(Class<S> subtype)

Inherited from javax.persistence.AttributeNode:
getAttributeName
Inherited from org.hibernate.graph.GraphNode:
isMutablemakeCopy

Method Detail

addKeySubGraphback to summary
public <S extends J> void addKeySubGraph(Class<S> subType, SubGraph<S> subGraph)
addSubGraphback to summary
public <S extends J> void addSubGraph(Class<S> subType, SubGraph<S> subGraph)
getAttributeDescriptorback to summary
public Attribute<?, J> getAttributeDescriptor()
getKeySubGraphsback to summary
public Map<Class<? extends J>, SubGraph<? extends J>> getKeySubGraphs()
getKeySubgraphsback to summary
public default Map<Class<T>, Subgraph<T>> getKeySubgraphs()

Implements javax.persistence.AttributeNode.getKeySubgraphs.

Doc from javax.persistence.AttributeNode.getKeySubgraphs.

Return the Map<Class, Subgraph> of subgraphs associated with this attribute node's map key.

Returns:Map<Class<T>, Subgraph<T>>

Map of subgraphs associated with this attribute node's map key or empty Map if none have been defined

Annotations
@Override
@SuppressWarnings:unchecked
getSubGraphsback to summary
public Map<Class<? extends J>, SubGraph<? extends J>> getSubGraphs()
getSubgraphsback to summary
public default Map<Class<T>, Subgraph<T>> getSubgraphs()

Implements javax.persistence.AttributeNode.getSubgraphs.

Doc from javax.persistence.AttributeNode.getSubgraphs.

Return the Map<Class, Subgraph> of subgraphs associated with this attribute node.

Returns:Map<Class<T>, Subgraph<T>>

Map of subgraphs associated with this attribute node or empty Map if none have been defined

Annotations
@Override
@SuppressWarnings:unchecked
makeKeySubGraphback to summary
public SubGraph<J> makeKeySubGraph()
makeKeySubGraphback to summary
public <S extends J> SubGraph<S> makeKeySubGraph(Class<S> subtype)
makeSubGraphback to summary
public SubGraph<J> makeSubGraph()
makeSubGraphback to summary
public <S extends J> SubGraph<S> makeSubGraph(Class<S> subtype)