public class SubgraphImpl<T> extends AbstractGraphNode<T> implements Subgraph<T>, GraphNodeImplementor
Constructor and Description |
---|
SubgraphImpl(SessionFactoryImplementor entityManagerFactory,
ManagedType managedType,
Class<T> subclass) |
Modifier and Type | Method and Description |
---|---|
void |
addAttributeNodes(Attribute<T,?>... attributes)
Add one or more attribute nodes to the entity graph.
|
void |
addAttributeNodes(String... attributeNames)
Add one or more attribute nodes to the entity graph.
|
<X> SubgraphImpl<X> |
addKeySubgraph(Attribute<T,X> attribute)
Add a node to the graph that corresponds to a map key
that is a managed type.
|
<X> SubgraphImpl<? extends X> |
addKeySubgraph(Attribute<T,X> attribute,
Class<? extends X> type)
Add a node to the graph that corresponds to a map key
that is a managed type with inheritance.
|
<X> SubgraphImpl<X> |
addKeySubgraph(String attributeName)
Add a node to the graph that corresponds to a map key
that is a managed type.
|
<X> SubgraphImpl<X> |
addKeySubgraph(String attributeName,
Class<X> type)
Add a node to the graph that corresponds to a map key
that is a managed type with inheritance.
|
<X> SubgraphImpl<X> |
addSubgraph(Attribute<T,X> attribute)
Add a node to the graph that corresponds to a managed
type.
|
<X> SubgraphImpl<? extends X> |
addSubgraph(Attribute<T,X> attribute,
Class<? extends X> type)
Add a node to the graph that corresponds to a managed
type with inheritance.
|
<X> SubgraphImpl<X> |
addSubgraph(String attributeName)
Add a node to the graph that corresponds to a managed
type.
|
<X> SubgraphImpl<X> |
addSubgraph(String attributeName,
Class<X> type)
Add a node to the graph that corresponds to a managed
type with inheritance.
|
List<AttributeNode<?>> |
getAttributeNodes()
Return the attribute nodes corresponding to the attributes of
this managed type that are included in the subgraph.
|
Class<T> |
getClassType()
Return the type for which this subgraph was defined.
|
SubgraphImpl<T> |
makeImmutableCopy() |
protected Attribute<T,?> |
resolveAttribute(String attributeName) |
addAttribute, addAttribute, addAttributeNode, attributeImplementorNodes, attributeNodes, buildAttributeNode, containsAttribute, getFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
attributeImplementorNodes, attributeNodes, containsAttribute
public SubgraphImpl(SessionFactoryImplementor entityManagerFactory, ManagedType managedType, Class<T> subclass)
public SubgraphImpl<T> makeImmutableCopy()
public void addAttributeNodes(String... attributeNames)
Subgraph
addAttributeNodes
in interface Subgraph<T>
addAttributeNodes
in class AbstractGraphNode<T>
attributeNames
- name of the attribute@SafeVarargs public final void addAttributeNodes(Attribute<T,?>... attributes)
Subgraph
addAttributeNodes
in interface Subgraph<T>
addAttributeNodes
in class AbstractGraphNode<T>
attributes
- attributepublic <X> SubgraphImpl<X> addSubgraph(Attribute<T,X> attribute)
Subgraph
addSubgraph
in interface Subgraph<T>
addSubgraph
in class AbstractGraphNode<T>
attribute
- attributepublic <X> SubgraphImpl<? extends X> addSubgraph(Attribute<T,X> attribute, Class<? extends X> type)
Subgraph
addSubgraph
in interface Subgraph<T>
addSubgraph
in class AbstractGraphNode<T>
attribute
- attributetype
- entity subclasspublic <X> SubgraphImpl<X> addSubgraph(String attributeName)
Subgraph
addSubgraph
in interface Subgraph<T>
addSubgraph
in class AbstractGraphNode<T>
attributeName
- name of the attributepublic <X> SubgraphImpl<X> addSubgraph(String attributeName, Class<X> type)
Subgraph
addSubgraph
in interface Subgraph<T>
addSubgraph
in class AbstractGraphNode<T>
attributeName
- name of the attributetype
- entity subclasspublic <X> SubgraphImpl<X> addKeySubgraph(Attribute<T,X> attribute)
Subgraph
addKeySubgraph
in interface Subgraph<T>
addKeySubgraph
in class AbstractGraphNode<T>
attribute
- attributepublic <X> SubgraphImpl<? extends X> addKeySubgraph(Attribute<T,X> attribute, Class<? extends X> type)
Subgraph
addKeySubgraph
in interface Subgraph<T>
addKeySubgraph
in class AbstractGraphNode<T>
attribute
- attributetype
- entity subclasspublic <X> SubgraphImpl<X> addKeySubgraph(String attributeName)
Subgraph
addKeySubgraph
in interface Subgraph<T>
addKeySubgraph
in class AbstractGraphNode<T>
attributeName
- name of the attributepublic <X> SubgraphImpl<X> addKeySubgraph(String attributeName, Class<X> type)
Subgraph
addKeySubgraph
in interface Subgraph<T>
addKeySubgraph
in class AbstractGraphNode<T>
attributeName
- name of the attributetype
- entity subclasspublic Class<T> getClassType()
Subgraph
getClassType
in interface Subgraph<T>
public List<AttributeNode<?>> getAttributeNodes()
Subgraph
getAttributeNodes
in interface Subgraph<T>
protected Attribute<T,?> resolveAttribute(String attributeName)
resolveAttribute
in class AbstractGraphNode<T>
Copyright © 2019 JBoss by Red Hat. All rights reserved.