org.eclipse.persistence.queries
Class LoadGroup
java.lang.Object
   org.eclipse.persistence.queries.AttributeGroup
org.eclipse.persistence.queries.AttributeGroup
       org.eclipse.persistence.queries.LoadGroup
org.eclipse.persistence.queries.LoadGroup
- All Implemented Interfaces: 
- java.io.Serializable, java.lang.Cloneable
- public class LoadGroup 
- extends AttributeGroup
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.
- See Also:
- FetchGroup, 
Serialized Form
- Author:
- ailitchev
- Since:
- Eclipselink 2.1
 
 
 
 
| Methods inherited from class org.eclipse.persistence.queries.AttributeGroup | 
| addAttribute, addAttribute, addAttributeKey, addAttributes, clone, containsAttribute, containsAttributeInternal, convert, convertClassNamesToClasses, equals, findGroup, getAllItems, getAttributeNames, getItem, getItem, getItems, getName, getSubClassGroups, getType, getTypeName, hasInheritance, hasItems, insertSubClass, isConcurrent, isCopyGroup, isFetchGroup, isSupersetOf, newItem, removeAttribute, setAllSubclasses, setAttributeNames, setName, toCopyGroup, toCopyGroup, toFetchGroup, toFetchGroup, toLoadGroup, toLoadGroup, toString, toStringAdditionalInfo, toStringItems, toStringPath | 
 
| Methods inherited from class java.lang.Object | 
| finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
 
LoadGroup
public LoadGroup()
LoadGroup
public LoadGroup(java.lang.String name)
newGroup
protected LoadGroup newGroup(java.lang.String name,
                             AttributeGroup parent)
- Description copied from class: AttributeGroup
- Subclass may create different types.
 
- 
- Overrides:
- newGroupin class- AttributeGroup
 
- 
 
isLoadGroup
public boolean isLoadGroup()
- 
- Overrides:
- isLoadGroupin class- AttributeGroup
 
- 
 
clone
public LoadGroup clone()
- 
- Overrides:
- clonein class- AttributeGroup
 
- 
 
getGroup
public LoadGroup getGroup(java.lang.String attributeNameOrPath)
- Returns LoadGroup corresponding to the passed (possibly nested) attribute.
 
- 
- Overrides:
- getGroupin class- AttributeGroup
 
- 
 
addAttribute
public void addAttribute(java.lang.String attributeNameOrPath,
                         AttributeGroup group)
- Description copied from class: AttributeGroup
- 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.
 
 Example: 
    group.addAttribute("firstName", group1);
 group.addAttribute("manager.address", group2);
Note that existing group corresponding to attributeNameOrPath
 will be overridden with the passed group.
 
 
- 
- Overrides:
- addAttributein class- AttributeGroup
 
- 
- group- - an AttributeGroup to be added.
 
addAttribute
public void addAttribute(java.lang.String attributeNameOrPath,
                         LoadGroup group)
-