org.eclipse.persistence.queries.AttributeGroup
| Modifier and Type | Field and Description |
|---|---|
| protected Map | allsubclasses
This attribute is used to store all of the classes in this hierarchy keyed by type. |
| private static final String | FIELD_SEP
Name parts separator. |
| protected boolean | isValidated
Marks this AttributeGroup as having been validated by the builder and does not require further validation |
| protected Map | items
Specified attributes in the group mapped to their AttributeItems |
| protected String | name
Name of the group. |
| protected transient Set | subClasses
This attribute references the immediate subclass groups for this attributeGroup. |
| protected CoreAttributeGroup | superClassGroup
To add inheritance support the two following attrbutes are used to create a model of the inheritance tree This attribute points to the parent AttributeGroup of this attribute group. |
| private int | |
| protected Class | type
The class represented by this AttrbuteGroup. |
| protected String | typeName
The name of the class represented by this AttrbuteGroup. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | CoreAttributeGroup(String name, Class<?> type, boolean isValidated)
INTERNAL: This constructer is to only be used by EclipseLink internally |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addAttribute(String
A simple attribute, array or attributes forming a path attributeNameOrPath)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 void | addAttribute(String
A simple attribute, array or attributes forming a path attributeNameOrPath, Collection<? extends 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>>> - a collection of AttributeGroups to be added. groups)Add an attribute and the corresponding list of AttributeGroups. |
| public void | addAttribute(String
A simple attribute, array or attributes forming a path attributeNameOrPath, 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>> - 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 void | addAttributeKey(String
A simple attribute, array or attributes forming a path to a
Map key attributeNameOrPath, 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>> - an AttributeGroup to be added. group)Add a basic attribute or nested attribute with each String representing the key of an attribute of type Map on the path to what needs to be included in the AttributeGroup. |
| public void | |
| public CoreAttributeGroup | |
| public CoreAttributeGroup | clone(Map<CoreAttributeGroup<ATTRIBUTE_ITEM, DESCRIPTOR>, CoreAttributeGroup<ATTRIBUTE_ITEM, DESCRIPTOR>> cloneMap)
INTERNAL: This method is used internally in the clone processing. |
| public boolean | |
| public boolean | containsAttributeInternal(String attributeName)
INTERNAL: Return if the attribute is defined in the group. |
| protected String[] | |
| public void | convertClassNamesToClasses(ClassLoader classLoader)
INTERNAL: Convert all the class-name-based settings in this Descriptor to actual class-based settings. |
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. |
| public CoreAttributeGroup | |
| public Map | |
| public Set | |
| public CoreAttributeGroup | |
| public ATTRIBUTE_ITEM | Returns: item or nullINTERNAL:
Lookup the |
| protected ATTRIBUTE_ITEM | getItem(String[] attributePath, boolean
indicates if intermediate AttributeGroup required within the
specified path should be created as needed. When checking the
state of the map callers should set this to false to avoid
changing the state unexpectedly create)Locate the AttributeGroup where the leaf attribute in the path should be applied to. |
| public Map | |
| public String | |
| public Map | |
| public Class | |
| public String | |
| public int | |
| public boolean | |
| public boolean | |
| public void | insertSubClass(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)
INTERNAL: This method will insert the group into the entity hierarchy just below this AttributeGroup. |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | isSupersetOf(CoreAttributeGroup<ATTRIBUTE_ITEM, DESCRIPTOR> anotherGroup)
Return true if this AttributeGroup is a super-set of the passed in AttributeGroup. |
| public boolean | |
| protected CoreAttributeGroup | 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)
Subclass may create different types. |
| protected CoreAttributeItem | 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)
Subclass may create different types. |
| public void | |
| public void | setAllSubclasses(Map<Object, 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>>> subclasses)
INTERNAL: |
| public void | |
| public void | |
| public String | |
| protected String | |
| protected String | |
| protected static String |
| allsubclasses | back to summary |
|---|---|
| protected Map<Object, 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>>> allsubclasses This attribute is used to store all of the classes in this hierarchy keyed by type. It is used to find the correct graph for polymorphic groups. | |
| FIELD_SEP | back to summary |
|---|---|
| private static final String FIELD_SEP Name parts separator. Used in | |
| isValidated | back to summary |
|---|---|
| protected boolean isValidated Marks this AttributeGroup as having been validated by the builder and does not require further validation | |
| items | back to summary |
|---|---|
| protected Map<String, ATTRIBUTE_ITEM> items Specified attributes in the group mapped to their AttributeItems | |
| name | back to summary |
|---|---|
| protected String name Name of the group. This is used in subclasses where the groups are stored and can be used within a query by name as with FetchGroup. For dynamic groups the name has no functional value. | |
| subClasses | back to summary |
|---|---|
| protected transient Set<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>>> subClasses This attribute references the immediate subclass groups for this attributeGroup. This is not required but acts as a means to support adding inheritance branches into the an established tree. | |
| superClassGroup | back to summary |
|---|---|
| protected 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>> superClassGroup To add inheritance support the two following attrbutes are used to create a model of the inheritance tree This attribute points to the parent AttributeGroup of this attribute group. | |
| toStringLoopCount | back to summary |
|---|---|
| private int toStringLoopCount | |
| type | back to summary |
|---|---|
| protected Class<?> type The class represented by this AttrbuteGroup. Used to specify overriding groups for subclasses. | |
| typeName | back to summary |
|---|---|
| protected String typeName The name of the class represented by this AttrbuteGroup. Used to specify overriding groups for subclasses. | |
| CoreAttributeGroup | back to summary |
|---|---|
| public CoreAttributeGroup(String name) | |
| CoreAttributeGroup | back to summary |
|---|---|
| public CoreAttributeGroup(String name, String type, boolean isValidated) | |
| CoreAttributeGroup | back to summary |
|---|---|
| public CoreAttributeGroup(String name, Class<?> type, boolean isValidated) INTERNAL: This constructer is to only be used by EclipseLink internally | |
| CoreAttributeGroup | back to summary |
|---|---|
| public CoreAttributeGroup() | |
| addAttribute | back to summary |
|---|---|
| public void addAttribute(String attributeNameOrPath) 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:
| |
| addAttribute | back to summary |
|---|---|
| public void addAttribute(String attributeNameOrPath, Collection<? extends 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>>> groups) Add an attribute and the corresponding list of AttributeGroups. Multiple groups are added in the case of inheritance
| |
| addAttribute | back to summary |
|---|---|
| public void addAttribute(String attributeNameOrPath, 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) 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:
| |
| addAttributeKey | back to summary |
|---|---|
| public void addAttributeKey(String attributeNameOrPath, 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) Add a basic attribute or nested attribute with each String representing the key of an attribute of type Map on the path to what needs to be included in the AttributeGroup.
Example:
| |
| addAttributes | back to summary |
|---|---|
| public void addAttributes(Collection<String> attrOrPaths) Add a set of attributes to the group. | |
| clone | back to summary |
|---|---|
| public CoreAttributeGroup Overrides java. 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
| |
| clone | back to summary |
|---|---|
| public CoreAttributeGroup INTERNAL: This method is used internally in the clone processing. | |
| containsAttribute | back to summary |
|---|---|
| public boolean containsAttribute(String attributeNameOrPath) Return if the attribute is defined in the group. | |
| containsAttributeInternal | back to summary |
|---|---|
| public boolean containsAttributeInternal(String attributeName) INTERNAL: Return if the attribute is defined in the group. Only local attribute names are checked. | |
| convert | back to summary |
|---|---|
| protected String[] convert(String... nameOrPath) Convert a provided name or path which could be a single attributeName, a single string with dot separated attribute names, or an array of attribute names defining the path.
| |
| convertClassNamesToClasses | back to summary |
|---|---|
| public void convertClassNamesToClasses(ClassLoader classLoader) INTERNAL: Convert all the class-name-based settings in this Descriptor to actual class-based settings. This method is used when converting a project that has been built with class names to a project with classes. | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| findGroup | back to summary |
|---|---|
| public CoreAttributeGroup | |
| getAllItems | back to summary |
|---|---|
| public Map INTERNAL: | |
| getAttributeNames | back to summary |
|---|---|
| public Set | |
| getGroup | back to summary |
|---|---|
| public CoreAttributeGroup Returns AttributeGroup corresponding to the passed (possibly nested) attribute. | |
| getItem | back to summary |
|---|---|
| public ATTRIBUTE_ITEM getItem(String attributeNameOrPath) INTERNAL:
Lookup the
| |
| getItem | back to summary |
|---|---|
| protected ATTRIBUTE_ITEM getItem(String[] attributePath, boolean create) Locate the AttributeGroup where the leaf attribute in the path should be applied to.
| |
| getItems | back to summary |
|---|---|
| public Map INTERNAL: | |
| getName | back to summary |
|---|---|
| public String getName() | |
| getSubClassGroups | back to summary |
|---|---|
| public Map INTERNAL: | |
| getType | back to summary |
|---|---|
| public Class | |
| getTypeName | back to summary |
|---|---|
| public String getTypeName() INTERNAL: Returns the name of the type this group represents | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| hasInheritance | back to summary |
|---|---|
| public boolean hasInheritance() Indicates whether this group is part of an inheritance hierarchy | |
| hasItems | back to summary |
|---|---|
| public boolean hasItems() Indicates whether the group has at least one attribute. | |
| insertSubClass | back to summary |
|---|---|
| public void insertSubClass(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) INTERNAL: This method will insert the group into the entity hierarchy just below this AttributeGroup. | |
| isConcurrent | back to summary |
|---|---|
| public boolean isConcurrent() INTERNAL: Only LoadGroups allow concurrency. | |
| isCopyGroup | back to summary |
|---|---|
| public boolean isCopyGroup() INTERNAL: This method is used internally when converting to a copy group. | |
| isFetchGroup | back to summary |
|---|---|
| public boolean isFetchGroup() | |
| isLoadGroup | back to summary |
|---|---|
| public boolean isLoadGroup() | |
| isSupersetOf | back to summary |
|---|---|
| public boolean isSupersetOf(CoreAttributeGroup<ATTRIBUTE_ITEM, DESCRIPTOR> anotherGroup) Return true if this AttributeGroup is a super-set of the passed in AttributeGroup. | |
| isValidated | back to summary |
|---|---|
| public boolean isValidated() INTERNAL:
| |
| newGroup | back to summary |
|---|---|
| protected CoreAttributeGroup Subclass may create different types. | |
| newItem | back to summary |
|---|---|
| protected CoreAttributeItem Subclass may create different types. | |
| removeAttribute | back to summary |
|---|---|
| public void removeAttribute(String attributeNameOrPath) Remove an attribute from the group. | |
| setAllSubclasses | back to summary |
|---|---|
| public void setAllSubclasses(Map<Object, 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>>> subclasses) INTERNAL: | |
| setAttributeNames | back to summary |
|---|---|
| public void setAttributeNames(Set<E> attributeNames) | |
| setName | back to summary |
|---|---|
| public void setName(String name) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| toStringAdditionalInfo | back to summary |
|---|---|
| protected String toStringAdditionalInfo() Used by toString to print additional info for derived classes. | |
| toStringItems | back to summary |
|---|---|
| protected String toStringItems() Used by toString to print attribute items. | |
| toStringPath | back to summary |
|---|---|
| protected static String toStringPath(String[] attributePath, int position) | |