public interface Graph<J> extends GraphNode<J>
Modifier and Type | Method and Description |
---|---|
<AJ> AttributeNode<AJ> |
addAttributeNode(javax.persistence.metamodel.Attribute<? extends J,AJ> attribute)
Add an AttributeNode (with no associated SubGraphNode) to this container
by Attribute reference
|
<AJ> AttributeNode<AJ> |
addAttributeNode(java.lang.String attributeName)
Add an AttributeNode (with no associated SubGraphNodes) to this container
by attribute name
|
<AJ> SubGraph<AJ> |
addKeySubGraph(javax.persistence.metamodel.Attribute<? extends J,AJ> attribute) |
<AJ> SubGraph<? extends AJ> |
addKeySubGraph(javax.persistence.metamodel.Attribute<? extends J,AJ> attribute,
java.lang.Class<? extends AJ> type) |
<AJ> SubGraph<AJ> |
addKeySubGraph(java.lang.String attributeName) |
<AJ> SubGraph<AJ> |
addKeySubGraph(java.lang.String attributeName,
java.lang.Class<AJ> type) |
<AJ> SubGraph<AJ> |
addSubGraph(javax.persistence.metamodel.Attribute<? extends J,AJ> attribute)
Create a (mutable) SubGraphNode associated with the AttributeNode for the given
Attribute.
|
<AJ> SubGraph<? extends AJ> |
addSubGraph(javax.persistence.metamodel.Attribute<? extends J,AJ> attribute,
java.lang.Class<? extends AJ> type) |
<AJ> SubGraph<AJ> |
addSubGraph(java.lang.String attributeName)
Create a (mutable) SubGraphNode associated with the named AttributeNode.
|
<AJ> SubGraph<AJ> |
addSubGraph(java.lang.String attributeName,
java.lang.Class<AJ> type) |
<AJ> AttributeNode<AJ> |
findAttributeNode(javax.persistence.metamodel.Attribute<? extends J,AJ> attribute)
Find an already existing AttributeNode by corresponding attribute
reference, within this container
|
<AJ> AttributeNode<AJ> |
findAttributeNode(java.lang.String attributeName)
Find an already existing AttributeNode by attributeName within this
container
|
java.util.List<AttributeNode<?>> |
getAttributeNodeList()
Get a list of all existing AttributeNodes within this container
|
java.util.List<AttributeNode<?>> |
getGraphAttributeNodes()
Ultimately only needed for implementing
EntityGraph.getAttributeNodes()
and Subgraph.getAttributeNodes() |
javax.persistence.metamodel.ManagedType<J> |
getGraphedType()
Graphs apply only to ManagedTypes.
|
Graph<J> |
makeCopy(boolean mutable) |
RootGraph<J> |
makeRootGraph(java.lang.String name,
boolean mutable)
Create a named (if passed `name` != null) root Graph.
|
SubGraph<J> |
makeSubGraph(boolean mutable)
Create a (mutable/immutable) SubGraph based on this Graph
|
javax.persistence.metamodel.ManagedType<J> getGraphedType()
RootGraph<J> makeRootGraph(java.lang.String name, boolean mutable) throws CannotBecomeEntityGraphException
CannotBecomeEntityGraphException
- For named attributes
that are not entity valuedSubGraph<J> makeSubGraph(boolean mutable)
java.util.List<AttributeNode<?>> getGraphAttributeNodes()
EntityGraph.getAttributeNodes()
and Subgraph.getAttributeNodes()
<AJ> AttributeNode<AJ> findAttributeNode(java.lang.String attributeName)
<AJ> AttributeNode<AJ> findAttributeNode(javax.persistence.metamodel.Attribute<? extends J,AJ> attribute)
java.util.List<AttributeNode<?>> getAttributeNodeList()
<AJ> AttributeNode<AJ> addAttributeNode(java.lang.String attributeName)
<AJ> AttributeNode<AJ> addAttributeNode(javax.persistence.metamodel.Attribute<? extends J,AJ> attribute)
<AJ> SubGraph<AJ> addSubGraph(java.lang.String attributeName) throws CannotContainSubGraphException
CannotContainSubGraphException
<AJ> SubGraph<AJ> addSubGraph(java.lang.String attributeName, java.lang.Class<AJ> type) throws CannotContainSubGraphException
CannotContainSubGraphException
<AJ> SubGraph<AJ> addSubGraph(javax.persistence.metamodel.Attribute<? extends J,AJ> attribute) throws CannotContainSubGraphException
CannotContainSubGraphException
<AJ> SubGraph<? extends AJ> addSubGraph(javax.persistence.metamodel.Attribute<? extends J,AJ> attribute, java.lang.Class<? extends AJ> type) throws CannotContainSubGraphException
CannotContainSubGraphException
<AJ> SubGraph<AJ> addKeySubGraph(java.lang.String attributeName) throws CannotContainSubGraphException
CannotContainSubGraphException
<AJ> SubGraph<AJ> addKeySubGraph(java.lang.String attributeName, java.lang.Class<AJ> type) throws CannotContainSubGraphException
CannotContainSubGraphException
<AJ> SubGraph<AJ> addKeySubGraph(javax.persistence.metamodel.Attribute<? extends J,AJ> attribute) throws CannotContainSubGraphException
CannotContainSubGraphException
<AJ> SubGraph<? extends AJ> addKeySubGraph(javax.persistence.metamodel.Attribute<? extends J,AJ> attribute, java.lang.Class<? extends AJ> type) throws CannotContainSubGraphException
CannotContainSubGraphException
Copyright © 2001-2020 Red Hat, Inc. All Rights Reserved.