类 AbstractGraph<J>
- java.lang.Object
-
- org.hibernate.graph.internal.AbstractGraphNode<J>
-
- org.hibernate.graph.internal.AbstractGraph<J>
-
- 所有已实现的接口:
Graph<J>,GraphNode<J>,GraphImplementor<J>,GraphNodeImplementor<J>
- 直接已知子类:
RootGraphImpl,SubGraphImpl
public abstract class AbstractGraph<J> extends AbstractGraphNode<J> implements GraphImplementor<J>
- 作者:
- Steve Ebersole
-
-
构造器概要
构造器 限定符 构造器 说明 protectedAbstractGraph(boolean mutable, GraphImplementor<J> original)AbstractGraph(ManagedTypeDescriptor<J> managedType, boolean mutable, SessionFactoryImplementor sessionFactory)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 <AJ> AttributeNodeImplementor<AJ>addAttributeNode(String attributeName)Add an AttributeNode (with no associated SubGraphNodes) to this container by attribute nameAttributeNodeImplementor<?>addAttributeNode(AttributeNodeImplementor<?> incomingAttributeNode)<AJ> AttributeNodeImplementor<AJ>addAttributeNode(PersistentAttributeDescriptor<? extends J,AJ> attribute)<AJ> AttributeNodeImplementor<AJ>findAttributeNode(String attributeName)Find an already existing AttributeNode by attributeName within this container<AJ> AttributeNodeImplementor<AJ>findAttributeNode(PersistentAttributeDescriptor<? extends J,AJ> attribute)<AJ> AttributeNodeImplementor<AJ>findOrCreateAttributeNode(PersistentAttributeDescriptor<? extends J,AJ> attribute)List<AttributeNodeImplementor<?>>getAttributeNodeImplementors()List<AttributeNode<?>>getGraphAttributeNodes()Ultimately only needed for implementingEntityGraph.getAttributeNodes()andSubgraph.getAttributeNodes()ManagedTypeDescriptor<J>getGraphedType()Graphs apply only to ManagedTypes.RootGraphImplementor<J>makeRootGraph(String name, boolean mutable)Create a named (if passed `name` !voidmerge(GraphImplementor<J>... others)SessionFactoryImplementorsessionFactory()-
从类继承的方法 org.hibernate.graph.internal.AbstractGraphNode
isMutable, verifyMutability
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 org.hibernate.graph.spi.GraphImplementor
addAttributeNode, addKeySubGraph, addKeySubGraph, addKeySubGraph, addKeySubGraph, addKeySubGraph, addKeySubGraph, addSubGraph, addSubGraph, addSubGraph, addSubGraph, addSubGraph, addSubGraph, appliesTo, appliesTo, findAttributeNode, findOrCreateAttributeNode, getAttributeNodeList, makeCopy, makeSubGraph, visitAttributeNodes
-
从接口继承的方法 org.hibernate.graph.spi.GraphNodeImplementor
makeCopy
-
-
-
-
构造器详细资料
-
AbstractGraph
public AbstractGraph(ManagedTypeDescriptor<J> managedType, boolean mutable, SessionFactoryImplementor sessionFactory)
-
AbstractGraph
protected AbstractGraph(boolean mutable, GraphImplementor<J> original)
-
-
方法详细资料
-
sessionFactory
public SessionFactoryImplementor sessionFactory()
- 指定者:
sessionFactory在接口中GraphImplementor<J>- 覆盖:
sessionFactory在类中AbstractGraphNode<J>
-
getGraphedType
public ManagedTypeDescriptor<J> getGraphedType()
从接口复制的说明:GraphGraphs apply only to ManagedTypes. Returns the ManagedType being graphed here.- 指定者:
getGraphedType在接口中Graph<J>- 指定者:
getGraphedType在接口中GraphImplementor<J>
-
makeRootGraph
public RootGraphImplementor<J> makeRootGraph(String name, boolean mutable)
从接口复制的说明:GraphCreate a named (if passed `name` != null) root Graph. The `mutable` parameter controls whether the created Graph is mutable.- 指定者:
makeRootGraph在接口中Graph<J>- 指定者:
makeRootGraph在接口中GraphImplementor<J>
-
merge
public void merge(GraphImplementor<J>... others)
- 指定者:
merge在接口中GraphImplementor<J>
-
addAttributeNode
public AttributeNodeImplementor<?> addAttributeNode(AttributeNodeImplementor<?> incomingAttributeNode)
- 指定者:
addAttributeNode在接口中GraphImplementor<J>
-
findAttributeNode
public <AJ> AttributeNodeImplementor<AJ> findAttributeNode(String attributeName)
从接口复制的说明:GraphFind an already existing AttributeNode by attributeName within this container- 指定者:
findAttributeNode在接口中Graph<J>- 指定者:
findAttributeNode在接口中GraphImplementor<J>
-
findAttributeNode
public <AJ> AttributeNodeImplementor<AJ> findAttributeNode(PersistentAttributeDescriptor<? extends J,AJ> attribute)
- 指定者:
findAttributeNode在接口中GraphImplementor<J>
-
getGraphAttributeNodes
public List<AttributeNode<?>> getGraphAttributeNodes()
从接口复制的说明:GraphUltimately only needed for implementingEntityGraph.getAttributeNodes()andSubgraph.getAttributeNodes()- 指定者:
getGraphAttributeNodes在接口中Graph<J>
-
getAttributeNodeImplementors
public List<AttributeNodeImplementor<?>> getAttributeNodeImplementors()
- 指定者:
getAttributeNodeImplementors在接口中GraphImplementor<J>
-
addAttributeNode
public <AJ> AttributeNodeImplementor<AJ> addAttributeNode(String attributeName) throws CannotContainSubGraphException
从接口复制的说明:GraphAdd an AttributeNode (with no associated SubGraphNodes) to this container by attribute name- 指定者:
addAttributeNode在接口中Graph<J>- 指定者:
addAttributeNode在接口中GraphImplementor<J>- 抛出:
CannotContainSubGraphException
-
addAttributeNode
public <AJ> AttributeNodeImplementor<AJ> addAttributeNode(PersistentAttributeDescriptor<? extends J,AJ> attribute) throws CannotContainSubGraphException
- 指定者:
addAttributeNode在接口中GraphImplementor<J>- 抛出:
CannotContainSubGraphException
-
findOrCreateAttributeNode
public <AJ> AttributeNodeImplementor<AJ> findOrCreateAttributeNode(PersistentAttributeDescriptor<? extends J,AJ> attribute)
- 指定者:
findOrCreateAttributeNode在接口中GraphImplementor<J>
-
-