public interface GraphImplementor<J> extends Graph<J>, GraphNodeImplementor<J>
Modifier and Type | Method and Description |
---|---|
default <AJ> AttributeNodeImplementor<AJ> |
addAttributeNode(Attribute<? extends J,AJ> attribute)
Add an AttributeNode (with no associated SubGraphNode) to this container
by Attribute reference
|
AttributeNodeImplementor<?> |
addAttributeNode(AttributeNodeImplementor<?> makeCopy) |
<AJ> AttributeNodeImplementor<AJ> |
addAttributeNode(PersistentAttributeDescriptor<? extends J,AJ> attribute) |
<AJ> AttributeNodeImplementor<AJ> |
addAttributeNode(String attributeName)
Add an AttributeNode (with no associated SubGraphNodes) to this container
by attribute name
|
default <AJ> SubGraphImplementor<AJ> |
addKeySubGraph(Attribute<? extends J,AJ> attribute) |
default <AJ> SubGraphImplementor<? extends AJ> |
addKeySubGraph(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> |
addKeySubGraph(String attributeName) |
default <AJ> SubGraphImplementor<AJ> |
addKeySubGraph(String attributeName,
Class<AJ> subtype) |
default <AJ> SubGraphImplementor<AJ> |
addSubGraph(Attribute<? extends J,AJ> attribute)
Create a (mutable) SubGraphNode associated with the AttributeNode for the given
Attribute.
|
default <AJ> SubGraph<? extends AJ> |
addSubGraph(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) |
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) |
boolean |
appliesTo(Class<? super J> javaType) |
boolean |
appliesTo(ManagedTypeDescriptor<? super J> managedType) |
default <AJ> AttributeNodeImplementor<AJ> |
findAttributeNode(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) |
<AJ> AttributeNodeImplementor<AJ> |
findAttributeNode(String attributeName)
Find an already existing AttributeNode by attributeName within this
container
|
<AJ> AttributeNodeImplementor<AJ> |
findOrCreateAttributeNode(PersistentAttributeDescriptor<? extends J,AJ> attribute) |
default <AJ> AttributeNodeImplementor<AJ> |
findOrCreateAttributeNode(String name) |
List<AttributeNodeImplementor<?>> |
getAttributeNodeImplementors() |
default List<AttributeNode<?>> |
getAttributeNodeList()
Get a list of all existing AttributeNodes within this container
|
ManagedTypeDescriptor<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` != null) root Graph.
|
SubGraphImplementor<J> |
makeSubGraph(boolean mutable)
Create a (mutable/immutable) SubGraph based on this Graph
|
void |
merge(GraphImplementor<J>... others) |
SessionFactoryImplementor |
sessionFactory() |
default void |
visitAttributeNodes(Consumer<AttributeNodeImplementor<?>> consumer) |
getGraphAttributeNodes
boolean appliesTo(ManagedTypeDescriptor<? super J> managedType)
void merge(GraphImplementor<J>... others)
SessionFactoryImplementor sessionFactory()
ManagedTypeDescriptor<J> getGraphedType()
Graph
getGraphedType
in interface Graph<J>
RootGraphImplementor<J> makeRootGraph(String name, boolean mutable) throws CannotBecomeEntityGraphException
Graph
makeRootGraph
in interface Graph<J>
CannotBecomeEntityGraphException
- For named attributes
that are not entity valuedSubGraphImplementor<J> makeSubGraph(boolean mutable)
Graph
makeSubGraph
in interface Graph<J>
GraphImplementor<J> makeCopy(boolean mutable)
default void visitAttributeNodes(Consumer<AttributeNodeImplementor<?>> consumer)
AttributeNodeImplementor<?> addAttributeNode(AttributeNodeImplementor<?> makeCopy)
List<AttributeNodeImplementor<?>> getAttributeNodeImplementors()
default List<AttributeNode<?>> getAttributeNodeList()
Graph
getAttributeNodeList
in interface Graph<J>
<AJ> AttributeNodeImplementor<AJ> findAttributeNode(String attributeName)
Graph
findAttributeNode
in interface Graph<J>
<AJ> AttributeNodeImplementor<AJ> findAttributeNode(PersistentAttributeDescriptor<? extends J,AJ> attribute)
default <AJ> AttributeNodeImplementor<AJ> findAttributeNode(Attribute<? extends J,AJ> attribute)
Graph
findAttributeNode
in interface Graph<J>
<AJ> AttributeNodeImplementor<AJ> addAttributeNode(String attributeName) throws CannotContainSubGraphException
Graph
addAttributeNode
in interface Graph<J>
CannotContainSubGraphException
<AJ> AttributeNodeImplementor<AJ> addAttributeNode(PersistentAttributeDescriptor<? extends J,AJ> attribute) throws CannotContainSubGraphException
CannotContainSubGraphException
default <AJ> AttributeNodeImplementor<AJ> addAttributeNode(Attribute<? extends J,AJ> attribute) throws CannotContainSubGraphException
Graph
addAttributeNode
in interface Graph<J>
CannotContainSubGraphException
default <AJ> AttributeNodeImplementor<AJ> findOrCreateAttributeNode(String name)
<AJ> AttributeNodeImplementor<AJ> findOrCreateAttributeNode(PersistentAttributeDescriptor<? extends J,AJ> attribute)
default <AJ> SubGraphImplementor<AJ> addSubGraph(String attributeName) throws CannotContainSubGraphException
Graph
addSubGraph
in interface Graph<J>
CannotContainSubGraphException
default <AJ> SubGraphImplementor<AJ> addSubGraph(String attributeName, Class<AJ> subType) throws CannotContainSubGraphException
addSubGraph
in interface Graph<J>
CannotContainSubGraphException
default <AJ> SubGraphImplementor<AJ> addSubGraph(PersistentAttributeDescriptor<? extends J,AJ> attribute) throws CannotContainSubGraphException
CannotContainSubGraphException
default <AJ> SubGraphImplementor<AJ> addSubGraph(PersistentAttributeDescriptor<? extends J,AJ> attribute, Class<AJ> subType) throws CannotContainSubGraphException
CannotContainSubGraphException
default <AJ> SubGraphImplementor<AJ> addSubGraph(Attribute<? extends J,AJ> attribute) throws CannotContainSubGraphException
Graph
addSubGraph
in interface Graph<J>
CannotContainSubGraphException
default <AJ> SubGraph<? extends AJ> addSubGraph(Attribute<? extends J,AJ> attribute, Class<? extends AJ> type) throws CannotContainSubGraphException
addSubGraph
in interface Graph<J>
CannotContainSubGraphException
default <AJ> SubGraphImplementor<AJ> addKeySubGraph(String attributeName)
addKeySubGraph
in interface Graph<J>
default <AJ> SubGraphImplementor<AJ> addKeySubGraph(String attributeName, Class<AJ> subtype)
addKeySubGraph
in interface Graph<J>
default <AJ> SubGraphImplementor<AJ> addKeySubGraph(PersistentAttributeDescriptor<? extends J,AJ> attribute)
default <AJ> SubGraphImplementor<AJ> addKeySubGraph(Attribute<? extends J,AJ> attribute)
addKeySubGraph
in interface Graph<J>
default <AJ> SubGraphImplementor<? extends AJ> addKeySubGraph(PersistentAttributeDescriptor<? extends J,AJ> attribute, Class<? extends AJ> subType) throws CannotContainSubGraphException
CannotContainSubGraphException
default <AJ> SubGraphImplementor<? extends AJ> addKeySubGraph(Attribute<? extends J,AJ> attribute, Class<? extends AJ> subType) throws CannotContainSubGraphException
addKeySubGraph
in interface Graph<J>
CannotContainSubGraphException
Copyright © 2001-2022 Red Hat, Inc. All Rights Reserved.