FetchGroup.
LoadGroup
CopyGroup
To reference nested attributes a dot ('.') notation is used to reference related attributes. All attribute names provided are assumed to be correct until processed against the mappings during usage of the group.
FetchGroup, LoadGroup, CopyGroup
| Access | Constructor and Description |
|---|---|
| public | |
| public | AttributeGroup(String name, Class<?> type, boolean isValidated)
INTERNAL: This constructer is to only be used by EclipseLink internally |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addAttribute(String
A simple attribute, array or attributes forming a path attributeNameOrPath, AttributeGroup - an AttributeGroup to be added. 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. |
| public AttributeGroup | clone()
Overrides org. |
| public AttributeGroup | |
| public AttributeGroup | getGroup(String attributeNameOrPath)
Overrides org. |
| public AttributeItem | Returns: item or nullOverrides org. AttributeItemfor the provided attribute name or path.
|
| public boolean | isConcurrent()
Overrides org. |
| public boolean | isCopyGroup()
Overrides org. |
| public boolean | |
| public boolean | isSupersetOf(AttributeGroup anotherGroup)
Return true if this AttributeGroup is a super-set of the passed in AttributeGroup. |
| protected AttributeGroup | newGroup(String name, CoreAttributeGroup<ATTRIBUTE_ITEM extends CoreAttributeItem, DESCRIPTOR extends CoreDescriptor<ATTRIBUTE_GROUP extends CoreAttributeGroup, DESCRIPTOR_EVENT_MANAGER extends CoreDescriptorEventManager, FIELD extends CoreField, INHERITANCE_POLICY extends CoreInheritancePolicy, INSTANTIATION_POLICY extends CoreInstantiationPolicy, LIST extends List<E>, OBJECT_BUILDER extends CoreObjectBuilder>> parent)
Overrides org. |
| protected AttributeItem | |
| protected AttributeItem | newItem(CoreAttributeGroup<ATTRIBUTE_ITEM extends CoreAttributeItem, DESCRIPTOR extends CoreDescriptor<ATTRIBUTE_GROUP extends CoreAttributeGroup, DESCRIPTOR_EVENT_MANAGER extends CoreDescriptorEventManager, FIELD extends CoreField, INHERITANCE_POLICY extends CoreInheritancePolicy, INSTANTIATION_POLICY extends CoreInstantiationPolicy, LIST extends List<E>, OBJECT_BUILDER extends CoreObjectBuilder>> group, String attrName)
Overrides org. |
| public CopyGroup | |
| public CopyGroup | toCopyGroup(Map<AttributeGroup, CopyGroup> cloneMap, Map<K, V> copies)
INTERNAL: This method is used internally when converting to a copy group. |
| public FetchGroup | |
| public FetchGroup | toFetchGroup(Map<AttributeGroup, FetchGroup> cloneMap)
INTERNAL: This method is used internally when converting to a copy group. |
| public LoadGroup | |
| public LoadGroup |
| AttributeGroup | back to summary |
|---|---|
| public AttributeGroup(String name) | |
| AttributeGroup | back to summary |
|---|---|
| public AttributeGroup(String name, Class<?> type, boolean isValidated) INTERNAL: This constructer is to only be used by EclipseLink internally | |
| AttributeGroup | back to summary |
|---|---|
| public AttributeGroup(String name, String type, boolean isValidated) | |
| AttributeGroup | back to summary |
|---|---|
| public AttributeGroup() | |
| addAttribute | back to summary |
|---|---|
| public void addAttribute(String attributeNameOrPath, AttributeGroup 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.
Example:
| |
| clone | back to summary |
|---|---|
| public AttributeGroup clone() Overrides org. Doc from java. Creates and returns a copy of this object. The precise meaning
of "copy" may depend on the class of the object. The general
intent is that, for any object will be true, and that the expression:x.clone() != x will bex.clone().getClass() == x.getClass() true, but these are not absolute requirements.
While it is typically the case that:
will bex.clone().equals(x) true, this is not an absolute requirement.
By convention, the returned object should be obtained by calling
By convention, the object returned by this method should be independent
of this object (which is being cloned). To achieve this independence,
it may be necessary to modify one or more fields of the object returned
by
| |
| findGroup | back to summary |
|---|---|
| public AttributeGroup findGroup(ClassDescriptor type) Overrides org.
| |
| getGroup | back to summary |
|---|---|
| public AttributeGroup getGroup(String attributeNameOrPath) Overrides org. Returns AttributeGroup corresponding to the passed (possibly nested) attribute.
| |
| getItem | back to summary |
|---|---|
| public AttributeItem getItem(String attributeNameOrPath) Overrides org. INTERNAL:
Lookup the
| |
| isConcurrent | back to summary |
|---|---|
| public boolean isConcurrent() Overrides org. INTERNAL: Only LoadGroups allow concurrency.
| |
| isCopyGroup | back to summary |
|---|---|
| public boolean isCopyGroup() Overrides org. INTERNAL: This method is used internally when converting to a copy group.
| |
| isLoadGroup | back to summary |
|---|---|
| public boolean isLoadGroup() Overrides org.
| |
| isSupersetOf | back to summary |
|---|---|
| public boolean isSupersetOf(AttributeGroup anotherGroup) Return true if this AttributeGroup is a super-set of the passed in AttributeGroup. | |
| newGroup | back to summary |
|---|---|
| protected AttributeGroup newGroup(String name, CoreAttributeGroup<ATTRIBUTE_ITEM extends CoreAttributeItem, DESCRIPTOR extends CoreDescriptor<ATTRIBUTE_GROUP extends CoreAttributeGroup, DESCRIPTOR_EVENT_MANAGER extends CoreDescriptorEventManager, FIELD extends CoreField, INHERITANCE_POLICY extends CoreInheritancePolicy, INSTANTIATION_POLICY extends CoreInstantiationPolicy, LIST extends List<E>, OBJECT_BUILDER extends CoreObjectBuilder>> parent) Overrides org. Subclass may create different types.
| |
| newItem | back to summary |
|---|---|
| protected AttributeItem newItem(AttributeGroup group, String attrName) Subclass may create different types. | |
| newItem | back to summary |
|---|---|
| protected AttributeItem newItem(CoreAttributeGroup<ATTRIBUTE_ITEM extends CoreAttributeItem, DESCRIPTOR extends CoreDescriptor<ATTRIBUTE_GROUP extends CoreAttributeGroup, DESCRIPTOR_EVENT_MANAGER extends CoreDescriptorEventManager, FIELD extends CoreField, INHERITANCE_POLICY extends CoreInheritancePolicy, INSTANTIATION_POLICY extends CoreInstantiationPolicy, LIST extends List<E>, OBJECT_BUILDER extends CoreObjectBuilder>> group, String attrName) Overrides org. Subclass may create different types.
| |
| toCopyGroup | back to summary |
|---|---|
| public CopyGroup toCopyGroup() Convert the group to a CopyGroup for usage with the copy() API. | |
| toCopyGroup | back to summary |
|---|---|
| public CopyGroup toCopyGroup(Map<AttributeGroup, CopyGroup> cloneMap, Map<K, V> copies) INTERNAL: This method is used internally when converting to a copy group. | |
| toFetchGroup | back to summary |
|---|---|
| public FetchGroup toFetchGroup() Convert the group to a FetchGroup for usage with queries. | |
| toFetchGroup | back to summary |
|---|---|
| public FetchGroup toFetchGroup(Map<AttributeGroup, FetchGroup> cloneMap) INTERNAL: This method is used internally when converting to a copy group. | |
| toLoadGroup | back to summary |
|---|---|
| public LoadGroup toLoadGroup() Convert the group to a LoadGroup for usage with queries. | |
| toLoadGroup | back to summary |
|---|---|
| public LoadGroup toLoadGroup(Map<AttributeGroup, LoadGroup> cloneMap, boolean loadOnly) | |