public class SubgraphImpl<T> extends AbstractGraphNode<T> implements Subgraph<T>, GraphNodeImplementor
| Constructor and Description |
|---|
SubgraphImpl(EntityManagerFactoryImpl 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 of for which this subgraph was defined.
|
SubgraphImpl<T> |
makeImmutableCopy() |
protected Attribute<T,?> |
resolveAttribute(String attributeName) |
addAttribute, addAttribute, addAttributeNode, attributeImplementorNodes, attributeNodes, buildAttributeNode, containsAttribute, getFactoryclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitattributeImplementorNodes, attributeNodes, containsAttributepublic SubgraphImpl(EntityManagerFactoryImpl entityManagerFactory, ManagedType managedType, Class<T> subclass)
public SubgraphImpl<T> makeImmutableCopy()
public void addAttributeNodes(String... attributeNames)
SubgraphaddAttributeNodes in interface Subgraph<T>addAttributeNodes in class AbstractGraphNode<T>attributeNames - name of the attributepublic void addAttributeNodes(Attribute<T,?>... attributes)
SubgraphaddAttributeNodes in interface Subgraph<T>addAttributeNodes in class AbstractGraphNode<T>attributes - attributepublic <X> SubgraphImpl<X> addSubgraph(Attribute<T,X> attribute)
SubgraphaddSubgraph in interface Subgraph<T>addSubgraph in class AbstractGraphNode<T>attribute - attributepublic <X> SubgraphImpl<? extends X> addSubgraph(Attribute<T,X> attribute, Class<? extends X> type)
SubgraphaddSubgraph in interface Subgraph<T>addSubgraph in class AbstractGraphNode<T>attribute - attributetype - entity subclasspublic <X> SubgraphImpl<X> addSubgraph(String attributeName)
SubgraphaddSubgraph in interface Subgraph<T>addSubgraph in class AbstractGraphNode<T>attributeName - name of the attributepublic <X> SubgraphImpl<X> addSubgraph(String attributeName, Class<X> type)
SubgraphaddSubgraph in interface Subgraph<T>addSubgraph in class AbstractGraphNode<T>attributeName - name of the attributetype - entity subclasspublic <X> SubgraphImpl<X> addKeySubgraph(Attribute<T,X> attribute)
SubgraphaddKeySubgraph in interface Subgraph<T>addKeySubgraph in class AbstractGraphNode<T>attribute - attributepublic <X> SubgraphImpl<? extends X> addKeySubgraph(Attribute<T,X> attribute, Class<? extends X> type)
SubgraphaddKeySubgraph in interface Subgraph<T>addKeySubgraph in class AbstractGraphNode<T>attribute - attributetype - entity subclasspublic <X> SubgraphImpl<X> addKeySubgraph(String attributeName)
SubgraphaddKeySubgraph in interface Subgraph<T>addKeySubgraph in class AbstractGraphNode<T>attributeName - name of the attributepublic <X> SubgraphImpl<X> addKeySubgraph(String attributeName, Class<X> type)
SubgraphaddKeySubgraph in interface Subgraph<T>addKeySubgraph in class AbstractGraphNode<T>attributeName - name of the attributetype - entity subclasspublic Class<T> getClassType()
SubgraphgetClassType in interface Subgraph<T>public List<AttributeNode<?>> getAttributeNodes()
SubgraphgetAttributeNodes in interface Subgraph<T>protected Attribute<T,?> resolveAttribute(String attributeName)
resolveAttribute in class AbstractGraphNode<T>Copyright © 2018 JBoss by Red Hat. All rights reserved.