public interface GraphImplementor<J> extends Graph<J>, GraphNodeImplementor<J>
Modifier and Type | Method and Description |
---|---|
default <AJ> AttributeNodeImplementor<AJ> |
addAttributeNode(javax.persistence.metamodel.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(java.lang.String attributeName)
Add an AttributeNode (with no associated SubGraphNodes) to this container
by attribute name
|
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,
java.lang.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,
java.lang.Class<? extends AJ> subType) |
default <AJ> SubGraphImplementor<AJ> |
addKeySubGraph(java.lang.String attributeName) |
default <AJ> SubGraphImplementor<AJ> |
addKeySubGraph(java.lang.String attributeName,
java.lang.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,
java.lang.Class<? extends AJ> type) |
default <AJ> SubGraphImplementor<AJ> |
addSubGraph(PersistentAttributeDescriptor<? extends J,AJ> attribute) |
default <AJ> SubGraphImplementor<AJ> |
addSubGraph(PersistentAttributeDescriptor<? extends J,AJ> attribute,
java.lang.Class<AJ> subType) |
default <AJ> SubGraphImplementor<AJ> |
addSubGraph(java.lang.String attributeName)
Create a (mutable) SubGraphNode associated with the named AttributeNode.
|
default <AJ> SubGraphImplementor<AJ> |
addSubGraph(java.lang.String attributeName,
java.lang.Class<AJ> subType) |
boolean |
appliesTo(java.lang.Class<? super J> javaType) |
boolean |
appliesTo(ManagedTypeDescriptor<? super J> managedType) |
default <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) |
<AJ> AttributeNodeImplementor<AJ> |
findAttributeNode(java.lang.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(java.lang.String name) |
java.util.List<AttributeNodeImplementor<?>> |
getAttributeNodeImplementors() |
default java.util.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(java.lang.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(java.util.function.Consumer<AttributeNodeImplementor<?>> consumer) |
getGraphAttributeNodes
boolean appliesTo(ManagedTypeDescriptor<? super J> managedType)
boolean appliesTo(java.lang.Class<? super J> javaType)
void merge(GraphImplementor<J>... others)
SessionFactoryImplementor sessionFactory()
ManagedTypeDescriptor<J> getGraphedType()
Graph
getGraphedType
in interface Graph<J>
RootGraphImplementor<J> makeRootGraph(java.lang.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(java.util.function.Consumer<AttributeNodeImplementor<?>> consumer)
AttributeNodeImplementor<?> addAttributeNode(AttributeNodeImplementor<?> makeCopy)
java.util.List<AttributeNodeImplementor<?>> getAttributeNodeImplementors()
default java.util.List<AttributeNode<?>> getAttributeNodeList()
Graph
getAttributeNodeList
in interface Graph<J>
<AJ> AttributeNodeImplementor<AJ> findAttributeNode(java.lang.String attributeName)
Graph
findAttributeNode
in interface Graph<J>
<AJ> AttributeNodeImplementor<AJ> findAttributeNode(PersistentAttributeDescriptor<? extends J,AJ> attribute)
default <AJ> AttributeNodeImplementor<AJ> findAttributeNode(javax.persistence.metamodel.Attribute<? extends J,AJ> attribute)
Graph
findAttributeNode
in interface Graph<J>
<AJ> AttributeNodeImplementor<AJ> addAttributeNode(java.lang.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(javax.persistence.metamodel.Attribute<? extends J,AJ> attribute) throws CannotContainSubGraphException
Graph
addAttributeNode
in interface Graph<J>
CannotContainSubGraphException
default <AJ> AttributeNodeImplementor<AJ> findOrCreateAttributeNode(java.lang.String name)
<AJ> AttributeNodeImplementor<AJ> findOrCreateAttributeNode(PersistentAttributeDescriptor<? extends J,AJ> attribute)
default <AJ> SubGraphImplementor<AJ> addSubGraph(java.lang.String attributeName) throws CannotContainSubGraphException
Graph
addSubGraph
in interface Graph<J>
CannotContainSubGraphException
default <AJ> SubGraphImplementor<AJ> addSubGraph(java.lang.String attributeName, java.lang.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, java.lang.Class<AJ> subType) throws CannotContainSubGraphException
CannotContainSubGraphException
default <AJ> SubGraphImplementor<AJ> addSubGraph(javax.persistence.metamodel.Attribute<? extends J,AJ> attribute) throws CannotContainSubGraphException
Graph
addSubGraph
in interface Graph<J>
CannotContainSubGraphException
default <AJ> SubGraph<? extends AJ> addSubGraph(javax.persistence.metamodel.Attribute<? extends J,AJ> attribute, java.lang.Class<? extends AJ> type) throws CannotContainSubGraphException
addSubGraph
in interface Graph<J>
CannotContainSubGraphException
default <AJ> SubGraphImplementor<AJ> addKeySubGraph(java.lang.String attributeName)
addKeySubGraph
in interface Graph<J>
default <AJ> SubGraphImplementor<AJ> addKeySubGraph(java.lang.String attributeName, java.lang.Class<AJ> subtype)
addKeySubGraph
in interface Graph<J>
default <AJ> SubGraphImplementor<AJ> addKeySubGraph(PersistentAttributeDescriptor<? extends J,AJ> attribute)
default <AJ> SubGraphImplementor<AJ> addKeySubGraph(javax.persistence.metamodel.Attribute<? extends J,AJ> attribute)
addKeySubGraph
in interface Graph<J>
default <AJ> SubGraphImplementor<? extends AJ> addKeySubGraph(PersistentAttributeDescriptor<? extends J,AJ> attribute, java.lang.Class<? extends AJ> subType) throws CannotContainSubGraphException
CannotContainSubGraphException
default <AJ> SubGraphImplementor<? extends AJ> addKeySubGraph(javax.persistence.metamodel.Attribute<? extends J,AJ> attribute, java.lang.Class<? extends AJ> subType) throws CannotContainSubGraphException
addKeySubGraph
in interface Graph<J>
CannotContainSubGraphException
Copyright © 2001-2019 Red Hat, Inc. All Rights Reserved.