接口 Graph<J>
-
- 所有超级接口:
GraphNode<J>
- 所有已知子接口:
GraphImplementor<J>,RootGraph<J>,RootGraphImplementor<J>,SubGraph<J>,SubGraphImplementor<J>
- 所有已知实现类:
AbstractGraph,RootGraphImpl,SubGraphImpl
public interface Graph<J> extends GraphNode<J>
- 作者:
- Strong Liu
, Steve Ebersole, Andrea Boriero
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 <AJ> AttributeNode<AJ>addAttributeNode(String attributeName)Add an AttributeNode (with no associated SubGraphNodes) to this container by attribute name<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> SubGraph<AJ>addKeySubGraph(String attributeName)<AJ> SubGraph<AJ>addKeySubGraph(String attributeName, Class<AJ> type)<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, Class<? extends AJ> type)<AJ> SubGraph<AJ>addSubGraph(String attributeName)Create a (mutable) SubGraphNode associated with the named AttributeNode.<AJ> SubGraph<AJ>addSubGraph(String attributeName, 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, Class<? extends AJ> type)<AJ> AttributeNode<AJ>findAttributeNode(String attributeName)Find an already existing AttributeNode by attributeName within this container<AJ> AttributeNode<AJ>findAttributeNode(javax.persistence.metamodel.Attribute<? extends J,AJ> attribute)Find an already existing AttributeNode by corresponding attribute reference, within this containerList<AttributeNode<?>>getAttributeNodeList()Get a list of all existing AttributeNodes within this containerList<AttributeNode<?>>getGraphAttributeNodes()Ultimately only needed for implementingEntityGraph.getAttributeNodes()andSubgraph.getAttributeNodes()javax.persistence.metamodel.ManagedType<J>getGraphedType()Graphs apply only to ManagedTypes.Graph<J>makeCopy(boolean mutable)RootGraph<J>makeRootGraph(String name, boolean mutable)Create a named (if passed `name` !SubGraph<J>makeSubGraph(boolean mutable)Create a (mutable/immutable) SubGraph based on this Graph
-
-
-
方法详细资料
-
getGraphedType
javax.persistence.metamodel.ManagedType<J> getGraphedType()
Graphs apply only to ManagedTypes. Returns the ManagedType being graphed here.
-
makeRootGraph
RootGraph<J> makeRootGraph(String name, boolean mutable) throws CannotBecomeEntityGraphException
Create a named (if passed `name` != null) root Graph. The `mutable` parameter controls whether the created Graph is mutable.- 抛出:
CannotBecomeEntityGraphException- For named attributes that are not entity valued
-
makeSubGraph
SubGraph<J> makeSubGraph(boolean mutable)
Create a (mutable/immutable) SubGraph based on this Graph
-
getGraphAttributeNodes
List<AttributeNode<?>> getGraphAttributeNodes()
Ultimately only needed for implementingEntityGraph.getAttributeNodes()andSubgraph.getAttributeNodes()
-
findAttributeNode
<AJ> AttributeNode<AJ> findAttributeNode(String attributeName)
Find an already existing AttributeNode by attributeName within this container
-
findAttributeNode
<AJ> AttributeNode<AJ> findAttributeNode(javax.persistence.metamodel.Attribute<? extends J,AJ> attribute)
Find an already existing AttributeNode by corresponding attribute reference, within this container
-
getAttributeNodeList
List<AttributeNode<?>> getAttributeNodeList()
Get a list of all existing AttributeNodes within this container
-
addAttributeNode
<AJ> AttributeNode<AJ> addAttributeNode(String attributeName)
Add an AttributeNode (with no associated SubGraphNodes) to this container by attribute name
-
addAttributeNode
<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
-
addSubGraph
<AJ> SubGraph<AJ> addSubGraph(String attributeName) throws CannotContainSubGraphException
Create a (mutable) SubGraphNode associated with the named AttributeNode. The created SubGraphNode is returned
-
addSubGraph
<AJ> SubGraph<AJ> addSubGraph(String attributeName, Class<AJ> type) throws CannotContainSubGraphException
-
addSubGraph
<AJ> SubGraph<AJ> addSubGraph(javax.persistence.metamodel.Attribute<? extends J,AJ> attribute) throws CannotContainSubGraphException
Create a (mutable) SubGraphNode associated with the AttributeNode for the given Attribute. The created SubGraphNode is returned
-
addSubGraph
<AJ> SubGraph<? extends AJ> addSubGraph(javax.persistence.metamodel.Attribute<? extends J,AJ> attribute, Class<? extends AJ> type) throws CannotContainSubGraphException
-
addKeySubGraph
<AJ> SubGraph<AJ> addKeySubGraph(String attributeName) throws CannotContainSubGraphException
-
addKeySubGraph
<AJ> SubGraph<AJ> addKeySubGraph(String attributeName, Class<AJ> type) throws CannotContainSubGraphException
-
addKeySubGraph
<AJ> SubGraph<AJ> addKeySubGraph(javax.persistence.metamodel.Attribute<? extends J,AJ> attribute) throws CannotContainSubGraphException
-
addKeySubGraph
<AJ> SubGraph<? extends AJ> addKeySubGraph(javax.persistence.metamodel.Attribute<? extends J,AJ> attribute, Class<? extends AJ> type) throws CannotContainSubGraphException
-
-