| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| <!-- NewPage --> |
| <html lang="en"> |
| <head> |
| <title>Subgraph</title> |
| <link rel="stylesheet" type="text/css" href="../../stylesheet.css" title="Style"> |
| <script type="text/javascript" src="../../script.js"></script> |
| </head> |
| <body> |
| <script type="text/javascript"><!-- |
| try { |
| if (location.href.indexOf('is-external=true') == -1) { |
| parent.document.title="Subgraph"; |
| } |
| } |
| catch(err) { |
| } |
| //--> |
| var methods = {"i0":6,"i1":6,"i2":6,"i3":6,"i4":6,"i5":6,"i6":6,"i7":6,"i8":6,"i9":6,"i10":6,"i11":6}; |
| var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],4:["t3","Abstract Methods"]}; |
| var altColor = "altColor"; |
| var rowColor = "rowColor"; |
| var tableTab = "tableTab"; |
| var activeTableTab = "activeTableTab"; |
| </script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| <!-- ========= START OF TOP NAVBAR ======= --> |
| <div class="topNav"><a name="navbar.top"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> |
| <a name="navbar.top.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../overview-summary.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../index-all.html">Index</a></li> |
| <li><a href="../../help-doc.html">Help</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li><a href="../../jakarta/persistence/StoredProcedureQuery.html" title="interface in jakarta.persistence"><span class="typeNameLink">Prev Class</span></a></li> |
| <li><a href="../../jakarta/persistence/SynchronizationType.html" title="enum in jakarta.persistence"><span class="typeNameLink">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../index.html?jakarta/persistence/Subgraph.html" target="_top">Frames</a></li> |
| <li><a href="Subgraph.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_top"> |
| <li><a href="../../allclasses-noframe.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_top"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li>Field | </li> |
| <li>Constr | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li>Field | </li> |
| <li>Constr | </li> |
| <li><a href="#method.detail">Method</a></li> |
| </ul> |
| </div> |
| <a name="skip.navbar.top"> |
| <!-- --> |
| </a></div> |
| <!-- ========= END OF TOP NAVBAR ========= --> |
| <!-- ======== START OF CLASS DATA ======== --> |
| <div class="header"> |
| <div class="subTitle">jakarta.persistence</div> |
| <h2 title="Interface Subgraph" class="title">Interface Subgraph<T></h2> |
| </div> |
| <div class="contentContainer"> |
| <div class="description"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <dl> |
| <dt><span class="paramLabel">Type Parameters:</span></dt> |
| <dd><code>T</code> - The type of the attribute.</dd> |
| </dl> |
| <hr> |
| <br> |
| <pre>public interface <span class="typeNameLabel">Subgraph<T></span></pre> |
| <div class="block">This type represents a subgraph for an attribute node that |
| corresponds to a Managed Type. Using this class, an entity subgraph |
| can be embedded within an EntityGraph.</div> |
| <dl> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>2.1</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../jakarta/persistence/EntityGraph.html" title="interface in jakarta.persistence"><code>EntityGraph</code></a>, |
| <a href="../../jakarta/persistence/AttributeNode.html" title="interface in jakarta.persistence"><code>AttributeNode</code></a>, |
| <a href="../../jakarta/persistence/NamedSubgraph.html" title="annotation in jakarta.persistence"><code>NamedSubgraph</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| </div> |
| <div class="summary"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ========== METHOD SUMMARY =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method.summary"> |
| <!-- --> |
| </a> |
| <h3>Method Summary</h3> |
| <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> |
| <caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t3" class="tableTab"><span><a href="javascript:show(4);">Abstract Methods</a></span><span class="tabEnd"> </span></span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colLast" scope="col">Method and Description</th> |
| </tr> |
| <tr id="i0" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../jakarta/persistence/Subgraph.html#addAttributeNodes-jakarta.persistence.metamodel.Attribute...-">addAttributeNodes</a></span>(<a href="../../jakarta/persistence/metamodel/Attribute.html" title="interface in jakarta.persistence.metamodel">Attribute</a><<a href="../../jakarta/persistence/Subgraph.html" title="type parameter in Subgraph">T</a>,?>... attribute)</code> |
| <div class="block">Add one or more attribute nodes to the entity graph.</div> |
| </td> |
| </tr> |
| <tr id="i1" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../jakarta/persistence/Subgraph.html#addAttributeNodes-java.lang.String...-">addAttributeNodes</a></span>(java.lang.String... attributeName)</code> |
| <div class="block">Add one or more attribute nodes to the entity graph.</div> |
| </td> |
| </tr> |
| <tr id="i2" class="altColor"> |
| <td class="colFirst"><code><X> <a href="../../jakarta/persistence/Subgraph.html" title="interface in jakarta.persistence">Subgraph</a><X></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../jakarta/persistence/Subgraph.html#addKeySubgraph-jakarta.persistence.metamodel.Attribute-">addKeySubgraph</a></span>(<a href="../../jakarta/persistence/metamodel/Attribute.html" title="interface in jakarta.persistence.metamodel">Attribute</a><<a href="../../jakarta/persistence/Subgraph.html" title="type parameter in Subgraph">T</a>,X> attribute)</code> |
| <div class="block">Add a node to the graph that corresponds to a map key |
| that is a managed type.</div> |
| </td> |
| </tr> |
| <tr id="i3" class="rowColor"> |
| <td class="colFirst"><code><X> <a href="../../jakarta/persistence/Subgraph.html" title="interface in jakarta.persistence">Subgraph</a><? extends X></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../jakarta/persistence/Subgraph.html#addKeySubgraph-jakarta.persistence.metamodel.Attribute-java.lang.Class-">addKeySubgraph</a></span>(<a href="../../jakarta/persistence/metamodel/Attribute.html" title="interface in jakarta.persistence.metamodel">Attribute</a><<a href="../../jakarta/persistence/Subgraph.html" title="type parameter in Subgraph">T</a>,X> attribute, |
| java.lang.Class<? extends X> type)</code> |
| <div class="block">Add a node to the graph that corresponds to a map key |
| that is a managed type with inheritance.</div> |
| </td> |
| </tr> |
| <tr id="i4" class="altColor"> |
| <td class="colFirst"><code><X> <a href="../../jakarta/persistence/Subgraph.html" title="interface in jakarta.persistence">Subgraph</a><X></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../jakarta/persistence/Subgraph.html#addKeySubgraph-java.lang.String-">addKeySubgraph</a></span>(java.lang.String attributeName)</code> |
| <div class="block">Add a node to the graph that corresponds to a map key |
| that is a managed type.</div> |
| </td> |
| </tr> |
| <tr id="i5" class="rowColor"> |
| <td class="colFirst"><code><X> <a href="../../jakarta/persistence/Subgraph.html" title="interface in jakarta.persistence">Subgraph</a><X></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../jakarta/persistence/Subgraph.html#addKeySubgraph-java.lang.String-java.lang.Class-">addKeySubgraph</a></span>(java.lang.String attributeName, |
| java.lang.Class<X> type)</code> |
| <div class="block">Add a node to the graph that corresponds to a map key |
| that is a managed type with inheritance.</div> |
| </td> |
| </tr> |
| <tr id="i6" class="altColor"> |
| <td class="colFirst"><code><X> <a href="../../jakarta/persistence/Subgraph.html" title="interface in jakarta.persistence">Subgraph</a><X></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../jakarta/persistence/Subgraph.html#addSubgraph-jakarta.persistence.metamodel.Attribute-">addSubgraph</a></span>(<a href="../../jakarta/persistence/metamodel/Attribute.html" title="interface in jakarta.persistence.metamodel">Attribute</a><<a href="../../jakarta/persistence/Subgraph.html" title="type parameter in Subgraph">T</a>,X> attribute)</code> |
| <div class="block">Add a node to the graph that corresponds to a managed |
| type.</div> |
| </td> |
| </tr> |
| <tr id="i7" class="rowColor"> |
| <td class="colFirst"><code><X> <a href="../../jakarta/persistence/Subgraph.html" title="interface in jakarta.persistence">Subgraph</a><? extends X></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../jakarta/persistence/Subgraph.html#addSubgraph-jakarta.persistence.metamodel.Attribute-java.lang.Class-">addSubgraph</a></span>(<a href="../../jakarta/persistence/metamodel/Attribute.html" title="interface in jakarta.persistence.metamodel">Attribute</a><<a href="../../jakarta/persistence/Subgraph.html" title="type parameter in Subgraph">T</a>,X> attribute, |
| java.lang.Class<? extends X> type)</code> |
| <div class="block">Add a node to the graph that corresponds to a managed |
| type with inheritance.</div> |
| </td> |
| </tr> |
| <tr id="i8" class="altColor"> |
| <td class="colFirst"><code><X> <a href="../../jakarta/persistence/Subgraph.html" title="interface in jakarta.persistence">Subgraph</a><X></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../jakarta/persistence/Subgraph.html#addSubgraph-java.lang.String-">addSubgraph</a></span>(java.lang.String attributeName)</code> |
| <div class="block">Add a node to the graph that corresponds to a managed |
| type.</div> |
| </td> |
| </tr> |
| <tr id="i9" class="rowColor"> |
| <td class="colFirst"><code><X> <a href="../../jakarta/persistence/Subgraph.html" title="interface in jakarta.persistence">Subgraph</a><X></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../jakarta/persistence/Subgraph.html#addSubgraph-java.lang.String-java.lang.Class-">addSubgraph</a></span>(java.lang.String attributeName, |
| java.lang.Class<X> type)</code> |
| <div class="block">Add a node to the graph that corresponds to a managed |
| type with inheritance.</div> |
| </td> |
| </tr> |
| <tr id="i10" class="altColor"> |
| <td class="colFirst"><code>java.util.List<<a href="../../jakarta/persistence/AttributeNode.html" title="interface in jakarta.persistence">AttributeNode</a><?>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../jakarta/persistence/Subgraph.html#getAttributeNodes--">getAttributeNodes</a></span>()</code> |
| <div class="block">Return the attribute nodes corresponding to the attributes of |
| this managed type that are included in the subgraph.</div> |
| </td> |
| </tr> |
| <tr id="i11" class="rowColor"> |
| <td class="colFirst"><code>java.lang.Class<<a href="../../jakarta/persistence/Subgraph.html" title="type parameter in Subgraph">T</a>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../jakarta/persistence/Subgraph.html#getClassType--">getClassType</a></span>()</code> |
| <div class="block">Return the type for which this subgraph was defined.</div> |
| </td> |
| </tr> |
| </table> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| <div class="details"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ============ METHOD DETAIL ========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method.detail"> |
| <!-- --> |
| </a> |
| <h3>Method Detail</h3> |
| <a name="addAttributeNodes-java.lang.String...-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>addAttributeNodes</h4> |
| <pre>void addAttributeNodes(java.lang.String... attributeName)</pre> |
| <div class="block">Add one or more attribute nodes to the entity graph.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>attributeName</code> - name of the attribute</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.IllegalArgumentException</code> - if the attribute is not an |
| attribute of this managed type.</dd> |
| <dd><code>java.lang.IllegalStateException</code> - if the EntityGraph has been |
| statically defined</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="addAttributeNodes-jakarta.persistence.metamodel.Attribute...-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>addAttributeNodes</h4> |
| <pre>void addAttributeNodes(<a href="../../jakarta/persistence/metamodel/Attribute.html" title="interface in jakarta.persistence.metamodel">Attribute</a><<a href="../../jakarta/persistence/Subgraph.html" title="type parameter in Subgraph">T</a>,?>... attribute)</pre> |
| <div class="block">Add one or more attribute nodes to the entity graph.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>attribute</code> - attribute</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.IllegalStateException</code> - if this EntityGraph has been |
| statically defined</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="addSubgraph-jakarta.persistence.metamodel.Attribute-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>addSubgraph</h4> |
| <pre><X> <a href="../../jakarta/persistence/Subgraph.html" title="interface in jakarta.persistence">Subgraph</a><X> addSubgraph(<a href="../../jakarta/persistence/metamodel/Attribute.html" title="interface in jakarta.persistence.metamodel">Attribute</a><<a href="../../jakarta/persistence/Subgraph.html" title="type parameter in Subgraph">T</a>,X> attribute)</pre> |
| <div class="block">Add a node to the graph that corresponds to a managed |
| type. This allows for construction of multi-node entity graphs |
| that include related managed types.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>attribute</code> - attribute</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>subgraph for the attribute</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.IllegalArgumentException</code> - if the attribute's target |
| type is not a managed type</dd> |
| <dd><code>java.lang.IllegalStateException</code> - if the EntityGraph has been |
| statically defined</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="addSubgraph-jakarta.persistence.metamodel.Attribute-java.lang.Class-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>addSubgraph</h4> |
| <pre><X> <a href="../../jakarta/persistence/Subgraph.html" title="interface in jakarta.persistence">Subgraph</a><? extends X> addSubgraph(<a href="../../jakarta/persistence/metamodel/Attribute.html" title="interface in jakarta.persistence.metamodel">Attribute</a><<a href="../../jakarta/persistence/Subgraph.html" title="type parameter in Subgraph">T</a>,X> attribute, |
| java.lang.Class<? extends X> type)</pre> |
| <div class="block">Add a node to the graph that corresponds to a managed |
| type with inheritance. This allows for multiple subclass |
| subgraphs to be defined for this node of the entity |
| graph. Subclass subgraphs will automatically include the specified |
| attributes of superclass subgraphs</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>attribute</code> - attribute</dd> |
| <dd><code>type</code> - entity subclass</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>subgraph for the attribute</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.IllegalArgumentException</code> - if the attribute's target |
| type is not a managed type</dd> |
| <dd><code>java.lang.IllegalStateException</code> - if this EntityGraph has been |
| statically defined</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="addSubgraph-java.lang.String-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>addSubgraph</h4> |
| <pre><X> <a href="../../jakarta/persistence/Subgraph.html" title="interface in jakarta.persistence">Subgraph</a><X> addSubgraph(java.lang.String attributeName)</pre> |
| <div class="block">Add a node to the graph that corresponds to a managed |
| type. This allows for construction of multi-node entity graphs |
| that include related managed types.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>attributeName</code> - name of the attribute</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>subgraph for the attribute</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.IllegalArgumentException</code> - if the attribute is not an |
| attribute of this managed type.</dd> |
| <dd><code>java.lang.IllegalArgumentException</code> - if the attribute's target |
| type is not a managed type</dd> |
| <dd><code>java.lang.IllegalStateException</code> - if this EntityGraph has been |
| statically defined</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="addSubgraph-java.lang.String-java.lang.Class-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>addSubgraph</h4> |
| <pre><X> <a href="../../jakarta/persistence/Subgraph.html" title="interface in jakarta.persistence">Subgraph</a><X> addSubgraph(java.lang.String attributeName, |
| java.lang.Class<X> type)</pre> |
| <div class="block">Add a node to the graph that corresponds to a managed |
| type with inheritance. This allows for multiple subclass |
| subgraphs to be defined for this node of the entity |
| graph. Subclass subgraphs will automatically include the |
| specified attributes of superclass subgraphs</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>attributeName</code> - name of the attribute</dd> |
| <dd><code>type</code> - entity subclass</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>subgraph for the attribute</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.IllegalArgumentException</code> - if the attribute is not |
| an attribute of this managed type.</dd> |
| <dd><code>java.lang.IllegalArgumentException</code> - if the attribute's target |
| type is not a managed type</dd> |
| <dd><code>java.lang.IllegalStateException</code> - if this EntityGraph has been |
| statically defined</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="addKeySubgraph-jakarta.persistence.metamodel.Attribute-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>addKeySubgraph</h4> |
| <pre><X> <a href="../../jakarta/persistence/Subgraph.html" title="interface in jakarta.persistence">Subgraph</a><X> addKeySubgraph(<a href="../../jakarta/persistence/metamodel/Attribute.html" title="interface in jakarta.persistence.metamodel">Attribute</a><<a href="../../jakarta/persistence/Subgraph.html" title="type parameter in Subgraph">T</a>,X> attribute)</pre> |
| <div class="block">Add a node to the graph that corresponds to a map key |
| that is a managed type. This allows for construction of |
| multinode entity graphs that include related managed types.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>attribute</code> - attribute</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>subgraph for the key attribute</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.IllegalArgumentException</code> - if the attribute's target |
| type is not a managed type entity</dd> |
| <dd><code>java.lang.IllegalStateException</code> - if this EntityGraph has been |
| statically defined</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="addKeySubgraph-jakarta.persistence.metamodel.Attribute-java.lang.Class-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>addKeySubgraph</h4> |
| <pre><X> <a href="../../jakarta/persistence/Subgraph.html" title="interface in jakarta.persistence">Subgraph</a><? extends X> addKeySubgraph(<a href="../../jakarta/persistence/metamodel/Attribute.html" title="interface in jakarta.persistence.metamodel">Attribute</a><<a href="../../jakarta/persistence/Subgraph.html" title="type parameter in Subgraph">T</a>,X> attribute, |
| java.lang.Class<? extends X> type)</pre> |
| <div class="block">Add a node to the graph that corresponds to a map key |
| that is a managed type with inheritance. This allows for |
| construction of multi-node entity graphs that include related |
| managed types. Subclass subgraphs will automatically include |
| the specified attributes of superclass subgraphs</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>attribute</code> - attribute</dd> |
| <dd><code>type</code> - entity subclass</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>subgraph for the attribute</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.IllegalArgumentException</code> - if the attribute's target |
| type is not a managed type entity</dd> |
| <dd><code>java.lang.IllegalStateException</code> - if this EntityGraph has been |
| statically defined</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="addKeySubgraph-java.lang.String-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>addKeySubgraph</h4> |
| <pre><X> <a href="../../jakarta/persistence/Subgraph.html" title="interface in jakarta.persistence">Subgraph</a><X> addKeySubgraph(java.lang.String attributeName)</pre> |
| <div class="block">Add a node to the graph that corresponds to a map key |
| that is a managed type. This allows for construction of |
| multi-node entity graphs that include related managed types.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>attributeName</code> - name of the attribute</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>subgraph for the key attribute</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.IllegalArgumentException</code> - if the attribute is not an |
| attribute of this entity.</dd> |
| <dd><code>java.lang.IllegalArgumentException</code> - if the attribute's target |
| type is not a managed type</dd> |
| <dd><code>java.lang.IllegalStateException</code> - if this EntityGraph has been |
| statically defined</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="addKeySubgraph-java.lang.String-java.lang.Class-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>addKeySubgraph</h4> |
| <pre><X> <a href="../../jakarta/persistence/Subgraph.html" title="interface in jakarta.persistence">Subgraph</a><X> addKeySubgraph(java.lang.String attributeName, |
| java.lang.Class<X> type)</pre> |
| <div class="block">Add a node to the graph that corresponds to a map key |
| that is a managed type with inheritance. This allows for |
| construction of multi-node entity graphs that include related |
| managed types. Subclass subgraphs will include the specified |
| attributes of superclass subgraphs</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>attributeName</code> - name of the attribute</dd> |
| <dd><code>type</code> - entity subclass</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>subgraph for the attribute</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>java.lang.IllegalArgumentException</code> - if the attribute is not an |
| attribute of this entity.</dd> |
| <dd><code>java.lang.IllegalArgumentException</code> - if the attribute's target |
| type is not a managed type</dd> |
| <dd><code>java.lang.IllegalStateException</code> - if this EntityGraph has been |
| statically defined</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getAttributeNodes--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getAttributeNodes</h4> |
| <pre>java.util.List<<a href="../../jakarta/persistence/AttributeNode.html" title="interface in jakarta.persistence">AttributeNode</a><?>> getAttributeNodes()</pre> |
| <div class="block">Return the attribute nodes corresponding to the attributes of |
| this managed type that are included in the subgraph.</div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>list of attribute nodes included in the subgraph or |
| empty List if none have been defined</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getClassType--"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>getClassType</h4> |
| <pre>java.lang.Class<<a href="../../jakarta/persistence/Subgraph.html" title="type parameter in Subgraph">T</a>> getClassType()</pre> |
| <div class="block">Return the type for which this subgraph was defined.</div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>managed type referenced by the subgraph</dd> |
| </dl> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| </div> |
| <!-- ========= END OF CLASS DATA ========= --> |
| <!-- ======= START OF BOTTOM NAVBAR ====== --> |
| <div class="bottomNav"><a name="navbar.bottom"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> |
| <a name="navbar.bottom.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../overview-summary.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../index-all.html">Index</a></li> |
| <li><a href="../../help-doc.html">Help</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li><a href="../../jakarta/persistence/StoredProcedureQuery.html" title="interface in jakarta.persistence"><span class="typeNameLink">Prev Class</span></a></li> |
| <li><a href="../../jakarta/persistence/SynchronizationType.html" title="enum in jakarta.persistence"><span class="typeNameLink">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../index.html?jakarta/persistence/Subgraph.html" target="_top">Frames</a></li> |
| <li><a href="Subgraph.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_bottom"> |
| <li><a href="../../allclasses-noframe.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_bottom"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li>Field | </li> |
| <li>Constr | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li>Field | </li> |
| <li>Constr | </li> |
| <li><a href="#method.detail">Method</a></li> |
| </ul> |
| </div> |
| <a name="skip.navbar.bottom"> |
| <!-- --> |
| </a></div> |
| <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| </body> |
| </html> |