Class CoreAttributeItem<ATTRIBUTE_GROUP extends CoreAttributeGroup>
- java.lang.Object
-
- org.eclipse.persistence.core.queries.CoreAttributeItem<ATTRIBUTE_GROUP>
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
public class CoreAttributeItem<ATTRIBUTE_GROUP extends CoreAttributeGroup> extends java.lang.Object implements java.io.Serializable, java.lang.Cloneable
INTERNAL Purpose: Generic superclass for AttributeItem.- See Also:
- Serialized Form
- Author:
- matt macivor
- Since:
- EclipseLink 2.5
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
attributeName
protected ATTRIBUTE_GROUP
group
protected ATTRIBUTE_GROUP
keyGroup
protected java.util.Map<java.lang.Object,ATTRIBUTE_GROUP>
keyGroups
protected ATTRIBUTE_GROUP
parent
protected java.util.Map<java.lang.Object,ATTRIBUTE_GROUP>
subGroups
-
Constructor Summary
Constructors Modifier Constructor Description protected
CoreAttributeItem()
CoreAttributeItem(ATTRIBUTE_GROUP parent, java.lang.String attributeName)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addGroups(java.util.Collection<ATTRIBUTE_GROUP> groups)
INTERNAL: Adds the list of groups as to the itemvoid
addKeyGroup(ATTRIBUTE_GROUP keyGroup)
void
addKeyGroups(java.util.Collection<ATTRIBUTE_GROUP> keyGroups)
void
addSubGroup(ATTRIBUTE_GROUP group)
CoreAttributeItem<ATTRIBUTE_GROUP>
clone(java.util.Map<ATTRIBUTE_GROUP,ATTRIBUTE_GROUP> cloneMap, ATTRIBUTE_GROUP parentClone)
void
convertClassNamesToClasses(java.lang.ClassLoader classLoader)
INTERNAL: Convert all the class-name-based settings in this Descriptor to actual class-based settings.boolean
equals(java.lang.Object obj)
java.lang.String
getAttributeName()
ATTRIBUTE_GROUP
getGroup()
ATTRIBUTE_GROUP
getGroup(java.lang.Class type)
java.util.Map<java.lang.Object,ATTRIBUTE_GROUP>
getGroups()
ATTRIBUTE_GROUP
getKeyGroup()
ATTRIBUTE_GROUP
getKeyGroup(java.lang.Class type)
java.util.Map<java.lang.Object,ATTRIBUTE_GROUP>
getKeyGroups()
ATTRIBUTE_GROUP
getParent()
int
hashCode()
protected static boolean
orderInheritance(CoreAttributeGroup group, java.util.Map<java.lang.Object,? extends CoreAttributeGroup> subGroups)
Will order the subGroups based on hierarchy.void
setRootGroup(ATTRIBUTE_GROUP group)
java.lang.String
toString()
java.lang.String
toStringNoClassName()
-
-
-
Field Detail
-
attributeName
protected java.lang.String attributeName
-
parent
protected ATTRIBUTE_GROUP extends CoreAttributeGroup parent
-
group
protected ATTRIBUTE_GROUP extends CoreAttributeGroup group
-
keyGroup
protected ATTRIBUTE_GROUP extends CoreAttributeGroup keyGroup
-
subGroups
protected java.util.Map<java.lang.Object,ATTRIBUTE_GROUP extends CoreAttributeGroup> subGroups
-
keyGroups
protected java.util.Map<java.lang.Object,ATTRIBUTE_GROUP extends CoreAttributeGroup> keyGroups
-
-
Constructor Detail
-
CoreAttributeItem
protected CoreAttributeItem()
-
CoreAttributeItem
public CoreAttributeItem(ATTRIBUTE_GROUP parent, java.lang.String attributeName)
-
-
Method Detail
-
addGroups
public void addGroups(java.util.Collection<ATTRIBUTE_GROUP> groups)
INTERNAL: Adds the list of groups as to the item
-
addKeyGroup
public void addKeyGroup(ATTRIBUTE_GROUP keyGroup)
-
addKeyGroups
public void addKeyGroups(java.util.Collection<ATTRIBUTE_GROUP> keyGroups)
-
addSubGroup
public void addSubGroup(ATTRIBUTE_GROUP group)
-
clone
public CoreAttributeItem<ATTRIBUTE_GROUP> clone(java.util.Map<ATTRIBUTE_GROUP,ATTRIBUTE_GROUP> cloneMap, ATTRIBUTE_GROUP parentClone)
-
convertClassNamesToClasses
public void convertClassNamesToClasses(java.lang.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.- Parameters:
classLoader
-
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
getAttributeName
public java.lang.String getAttributeName()
-
getGroup
public ATTRIBUTE_GROUP getGroup()
-
getGroup
public ATTRIBUTE_GROUP getGroup(java.lang.Class type)
-
getGroups
public java.util.Map<java.lang.Object,ATTRIBUTE_GROUP> getGroups()
-
getKeyGroup
public ATTRIBUTE_GROUP getKeyGroup()
-
getKeyGroup
public ATTRIBUTE_GROUP getKeyGroup(java.lang.Class type)
-
getKeyGroups
public java.util.Map<java.lang.Object,ATTRIBUTE_GROUP> getKeyGroups()
-
getParent
public ATTRIBUTE_GROUP getParent()
-
orderInheritance
protected static boolean orderInheritance(CoreAttributeGroup group, java.util.Map<java.lang.Object,? extends CoreAttributeGroup> subGroups)
Will order the subGroups based on hierarchy. Returns true if the group is the new root.- Parameters:
group
-subGroups
-- Returns:
- true if the group is the new root.
-
setRootGroup
public void setRootGroup(ATTRIBUTE_GROUP group)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
toStringNoClassName
public java.lang.String toStringNoClassName()
-
-