|
EclipseLink 2.5.0, build 'v20130507-3faac2b' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.persistence.core.queries.CoreAttributeGroup<org.eclipse.persistence.internal.queries.AttributeItem>
org.eclipse.persistence.queries.AttributeGroup
org.eclipse.persistence.queries.LoadGroup
public class LoadGroup
Purpose: Used to load specified relationship attributes and nested relationship attributes.
A LoadGroup can be configured for use on a query using
ObjectLevelReadQuery.setLoadGroup(LoadGroup)
or in the case of JPA
users with LOAD_GROUP query hint. Alternatively a FetchGroup
could be
used with FetchGroup.shouldLoad()
set to true and the FetchGroup
configured on a query be executed.
FetchGroup
,
Serialized FormField Summary | |
---|---|
protected java.lang.Boolean |
isConcurrent
|
Fields inherited from class org.eclipse.persistence.core.queries.CoreAttributeGroup |
---|
allsubclasses, isValidated, items, name, subClasses, superClassGroup, type, typeName |
Constructor Summary | |
---|---|
LoadGroup()
|
|
LoadGroup(java.lang.String name)
|
Method Summary | |
---|---|
void |
addAttribute(java.lang.String attributeNameOrPath,
CoreAttributeGroup group)
Add a basic attribute or nested attribute with each String representing an attribute on the path to what needs to be included in the AttributeGroup. |
void |
addAttribute(java.lang.String attributeNameOrPath,
LoadGroup group)
|
LoadGroup |
clone()
|
LoadGroup |
getGroup(java.lang.String attributeNameOrPath)
Returns LoadGroup corresponding to the passed (possibly nested) attribute. |
java.lang.Boolean |
getIsConcurrent()
INTERNAL: Return if the load group should load its relationships concurrently. |
boolean |
isConcurrent()
ADVANCED: Return if the load group should load its relationships concurrently. |
boolean |
isLoadGroup()
|
protected LoadGroup |
newGroup(java.lang.String name,
CoreAttributeGroup parent)
Subclass may create different types. |
void |
setIsConcurrent(java.lang.Boolean isConcurrent)
ADVANCED: Set if the load group should load its relationships concurrently. |
Methods inherited from class org.eclipse.persistence.queries.AttributeGroup |
---|
addAttribute, findGroup, getItem, isCopyGroup, isSupersetOf, newItem, newItem, toCopyGroup, toCopyGroup, toFetchGroup, toFetchGroup, toLoadGroup, toLoadGroup |
Methods inherited from class org.eclipse.persistence.core.queries.CoreAttributeGroup |
---|
addAttribute, addAttribute, addAttributeKey, addAttributes, clone, containsAttribute, containsAttributeInternal, convert, convertClassNamesToClasses, equals, getAllItems, getAttributeNames, getItem, getItems, getName, getSubClassGroups, getType, getTypeName, hasInheritance, hasItems, insertSubClass, isFetchGroup, isSupersetOf, isValidated, removeAttribute, setAllSubclasses, setAttributeNames, setName, toString, toStringAdditionalInfo, toStringItems, toStringPath |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.lang.Boolean isConcurrent
Constructor Detail |
---|
public LoadGroup()
public LoadGroup(java.lang.String name)
Method Detail |
---|
protected LoadGroup newGroup(java.lang.String name, CoreAttributeGroup parent)
AttributeGroup
newGroup
in class AttributeGroup
public boolean isLoadGroup()
isLoadGroup
in class AttributeGroup
public LoadGroup clone()
clone
in class AttributeGroup
public LoadGroup getGroup(java.lang.String attributeNameOrPath)
getGroup
in class AttributeGroup
public void addAttribute(java.lang.String attributeNameOrPath, CoreAttributeGroup group)
CoreAttributeGroup
Example:
group.addAttribute("firstName", group1);
Note that existing group corresponding to attributeNameOrPath
will be overridden with the passed group.
group.addAttribute("manager.address", group2);
addAttribute
in class CoreAttributeGroup<org.eclipse.persistence.internal.queries.AttributeItem>
group
- - an AttributeGroup to be added.public void addAttribute(java.lang.String attributeNameOrPath, LoadGroup group)
public java.lang.Boolean getIsConcurrent()
public boolean isConcurrent()
isConcurrent
in class AttributeGroup
public void setIsConcurrent(java.lang.Boolean isConcurrent)
|
EclipseLink 2.5.0, build 'v20130507-3faac2b' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |