接口 GraphImplementor<J>
-
- 所有超级接口:
Graph<J>,GraphNode<J>,GraphNodeImplementor<J>
- 所有已知子接口:
RootGraphImplementor<J>,SubGraphImplementor<J>
- 所有已知实现类:
AbstractGraph,RootGraphImpl,SubGraphImpl
public interface GraphImplementor<J> extends Graph<J>, GraphNodeImplementor<J>
Integration version of the Graph contract- 作者:
- Strong Liu
, Steve Ebersole, Andrea Boriero
-
-
方法概要
所有方法 实例方法 抽象方法 默认方法 修饰符和类型 方法 说明 <AJ> AttributeNodeImplementor<AJ>addAttributeNode(String attributeName)Add an AttributeNode (with no associated SubGraphNodes) to this container by attribute namedefault <AJ> AttributeNodeImplementor<AJ>addAttributeNode(javax.persistence.metamodel.Attribute<? extends J,AJ> attribute)Add an AttributeNode (with no associated SubGraphNode) to this container by Attribute referenceAttributeNodeImplementor<?>addAttributeNode(AttributeNodeImplementor<?> makeCopy)<AJ> AttributeNodeImplementor<AJ>addAttributeNode(PersistentAttributeDescriptor<? extends J,AJ> attribute)default <AJ> SubGraphImplementor<AJ>addKeySubGraph(String attributeName)default <AJ> SubGraphImplementor<AJ>addKeySubGraph(String attributeName, Class<AJ> subtype)default <AJ> SubGraphImplementor<AJ>addKeySubGraph(javax.persistence.metamodel.Attribute<? extends J,AJ> attribute)default <AJ> SubGraphImplementor<? extends AJ>addKeySubGraph(javax.persistence.metamodel.Attribute<? extends J,AJ> attribute, Class<? extends AJ> subType)default <AJ> SubGraphImplementor<AJ>addKeySubGraph(PersistentAttributeDescriptor<? extends J,AJ> attribute)default <AJ> SubGraphImplementor<? extends AJ>addKeySubGraph(PersistentAttributeDescriptor<? extends J,AJ> attribute, Class<? extends AJ> subType)default <AJ> SubGraphImplementor<AJ>addSubGraph(String attributeName)Create a (mutable) SubGraphNode associated with the named AttributeNode.default <AJ> SubGraphImplementor<AJ>addSubGraph(String attributeName, Class<AJ> subType)default <AJ> SubGraphImplementor<AJ>addSubGraph(javax.persistence.metamodel.Attribute<? extends J,AJ> attribute)Create a (mutable) SubGraphNode associated with the AttributeNode for the given Attribute.default <AJ> SubGraph<? extends AJ>addSubGraph(javax.persistence.metamodel.Attribute<? extends J,AJ> attribute, Class<? extends AJ> type)default <AJ> SubGraphImplementor<AJ>addSubGraph(PersistentAttributeDescriptor<? extends J,AJ> attribute)default <AJ> SubGraphImplementor<AJ>addSubGraph(PersistentAttributeDescriptor<? extends J,AJ> attribute, Class<AJ> subType)booleanappliesTo(Class<? super J> javaType)booleanappliesTo(ManagedTypeDescriptor<? super J> managedType)<AJ> AttributeNodeImplementor<AJ>findAttributeNode(String attributeName)Find an already existing AttributeNode by attributeName within this containerdefault <AJ> AttributeNodeImplementor<AJ>findAttributeNode(javax.persistence.metamodel.Attribute<? extends J,AJ> attribute)Find an already existing AttributeNode by corresponding attribute reference, within this container<AJ> AttributeNodeImplementor<AJ>findAttributeNode(PersistentAttributeDescriptor<? extends J,AJ> attribute)default <AJ> AttributeNodeImplementor<AJ>findOrCreateAttributeNode(String name)<AJ> AttributeNodeImplementor<AJ>findOrCreateAttributeNode(PersistentAttributeDescriptor<? extends J,AJ> attribute)List<AttributeNodeImplementor<?>>getAttributeNodeImplementors()default List<AttributeNode<?>>getAttributeNodeList()Get a list of all existing AttributeNodes within this containerManagedTypeDescriptor<J>getGraphedType()Graphs apply only to ManagedTypes.GraphImplementor<J>makeCopy(boolean mutable)RootGraphImplementor<J>makeRootGraph(String name, boolean mutable)Create a named (if passed `name` !SubGraphImplementor<J>makeSubGraph(boolean mutable)Create a (mutable/immutable) SubGraph based on this Graphvoidmerge(GraphImplementor<J>... others)SessionFactoryImplementorsessionFactory()default voidvisitAttributeNodes(Consumer<AttributeNodeImplementor<?>> consumer)-
从接口继承的方法 org.hibernate.graph.Graph
getGraphAttributeNodes
-
-
-
-
方法详细资料
-
appliesTo
boolean appliesTo(ManagedTypeDescriptor<? super J> managedType)
-
merge
void merge(GraphImplementor<J>... others)
-
sessionFactory
SessionFactoryImplementor sessionFactory()
-
getGraphedType
ManagedTypeDescriptor<J> getGraphedType()
从接口复制的说明:GraphGraphs apply only to ManagedTypes. Returns the ManagedType being graphed here.- 指定者:
getGraphedType在接口中Graph<J>
-
makeRootGraph
RootGraphImplementor<J> makeRootGraph(String name, boolean mutable) throws CannotBecomeEntityGraphException
从接口复制的说明:GraphCreate a named (if passed `name` != null) root Graph. The `mutable` parameter controls whether the created Graph is mutable.- 指定者:
makeRootGraph在接口中Graph<J>- 抛出:
CannotBecomeEntityGraphException- For named attributes that are not entity valued
-
makeSubGraph
SubGraphImplementor<J> makeSubGraph(boolean mutable)
从接口复制的说明:GraphCreate a (mutable/immutable) SubGraph based on this Graph- 指定者:
makeSubGraph在接口中Graph<J>
-
makeCopy
GraphImplementor<J> makeCopy(boolean mutable)
-
visitAttributeNodes
default void visitAttributeNodes(Consumer<AttributeNodeImplementor<?>> consumer)
-
addAttributeNode
AttributeNodeImplementor<?> addAttributeNode(AttributeNodeImplementor<?> makeCopy)
-
getAttributeNodeImplementors
List<AttributeNodeImplementor<?>> getAttributeNodeImplementors()
-
getAttributeNodeList
default List<AttributeNode<?>> getAttributeNodeList()
从接口复制的说明:GraphGet a list of all existing AttributeNodes within this container- 指定者:
getAttributeNodeList在接口中Graph<J>
-
findAttributeNode
<AJ> AttributeNodeImplementor<AJ> findAttributeNode(String attributeName)
从接口复制的说明:GraphFind an already existing AttributeNode by attributeName within this container- 指定者:
findAttributeNode在接口中Graph<J>
-
findAttributeNode
<AJ> AttributeNodeImplementor<AJ> findAttributeNode(PersistentAttributeDescriptor<? extends J,AJ> attribute)
-
findAttributeNode
default <AJ> AttributeNodeImplementor<AJ> findAttributeNode(javax.persistence.metamodel.Attribute<? extends J,AJ> attribute)
从接口复制的说明:GraphFind an already existing AttributeNode by corresponding attribute reference, within this container- 指定者:
findAttributeNode在接口中Graph<J>
-
addAttributeNode
<AJ> AttributeNodeImplementor<AJ> addAttributeNode(String attributeName) throws CannotContainSubGraphException
从接口复制的说明:GraphAdd an AttributeNode (with no associated SubGraphNodes) to this container by attribute name- 指定者:
addAttributeNode在接口中Graph<J>- 抛出:
CannotContainSubGraphException
-
addAttributeNode
<AJ> AttributeNodeImplementor<AJ> addAttributeNode(PersistentAttributeDescriptor<? extends J,AJ> attribute) throws CannotContainSubGraphException
-
addAttributeNode
default <AJ> AttributeNodeImplementor<AJ> addAttributeNode(javax.persistence.metamodel.Attribute<? extends J,AJ> attribute) throws CannotContainSubGraphException
从接口复制的说明:GraphAdd an AttributeNode (with no associated SubGraphNode) to this container by Attribute reference- 指定者:
addAttributeNode在接口中Graph<J>- 抛出:
CannotContainSubGraphException
-
findOrCreateAttributeNode
default <AJ> AttributeNodeImplementor<AJ> findOrCreateAttributeNode(String name)
-
findOrCreateAttributeNode
<AJ> AttributeNodeImplementor<AJ> findOrCreateAttributeNode(PersistentAttributeDescriptor<? extends J,AJ> attribute)
-
addSubGraph
default <AJ> SubGraphImplementor<AJ> addSubGraph(String attributeName) throws CannotContainSubGraphException
从接口复制的说明:GraphCreate a (mutable) SubGraphNode associated with the named AttributeNode. The created SubGraphNode is returned- 指定者:
addSubGraph在接口中Graph<J>- 抛出:
CannotContainSubGraphException
-
addSubGraph
default <AJ> SubGraphImplementor<AJ> addSubGraph(String attributeName, Class<AJ> subType) throws CannotContainSubGraphException
- 指定者:
addSubGraph在接口中Graph<J>- 抛出:
CannotContainSubGraphException
-
addSubGraph
default <AJ> SubGraphImplementor<AJ> addSubGraph(PersistentAttributeDescriptor<? extends J,AJ> attribute) throws CannotContainSubGraphException
-
addSubGraph
default <AJ> SubGraphImplementor<AJ> addSubGraph(PersistentAttributeDescriptor<? extends J,AJ> attribute, Class<AJ> subType) throws CannotContainSubGraphException
-
addSubGraph
default <AJ> SubGraphImplementor<AJ> addSubGraph(javax.persistence.metamodel.Attribute<? extends J,AJ> attribute) throws CannotContainSubGraphException
从接口复制的说明:GraphCreate a (mutable) SubGraphNode associated with the AttributeNode for the given Attribute. The created SubGraphNode is returned- 指定者:
addSubGraph在接口中Graph<J>- 抛出:
CannotContainSubGraphException
-
addSubGraph
default <AJ> SubGraph<? extends AJ> addSubGraph(javax.persistence.metamodel.Attribute<? extends J,AJ> attribute, Class<? extends AJ> type) throws CannotContainSubGraphException
- 指定者:
addSubGraph在接口中Graph<J>- 抛出:
CannotContainSubGraphException
-
addKeySubGraph
default <AJ> SubGraphImplementor<AJ> addKeySubGraph(String attributeName)
- 指定者:
addKeySubGraph在接口中Graph<J>
-
addKeySubGraph
default <AJ> SubGraphImplementor<AJ> addKeySubGraph(String attributeName, Class<AJ> subtype)
- 指定者:
addKeySubGraph在接口中Graph<J>
-
addKeySubGraph
default <AJ> SubGraphImplementor<AJ> addKeySubGraph(PersistentAttributeDescriptor<? extends J,AJ> attribute)
-
addKeySubGraph
default <AJ> SubGraphImplementor<AJ> addKeySubGraph(javax.persistence.metamodel.Attribute<? extends J,AJ> attribute)
- 指定者:
addKeySubGraph在接口中Graph<J>
-
addKeySubGraph
default <AJ> SubGraphImplementor<? extends AJ> addKeySubGraph(PersistentAttributeDescriptor<? extends J,AJ> attribute, Class<? extends AJ> subType) throws CannotContainSubGraphException
-
addKeySubGraph
default <AJ> SubGraphImplementor<? extends AJ> addKeySubGraph(javax.persistence.metamodel.Attribute<? extends J,AJ> attribute, Class<? extends AJ> subType) throws CannotContainSubGraphException
- 指定者:
addKeySubGraph在接口中Graph<J>- 抛出:
CannotContainSubGraphException
-
-