Class CoreAttributeItem<ATTRIBUTE_GROUP extends CoreAttributeGroup>
- java.lang.Object
-
- org.eclipse.persistence.core.queries.CoreAttributeItem<ATTRIBUTE_GROUP>
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class CoreAttributeItem<ATTRIBUTE_GROUP extends CoreAttributeGroup> extends Object implements Serializable, 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 String
attributeName
protected ATTRIBUTE_GROUP
group
protected ATTRIBUTE_GROUP
keyGroup
protected Map<Object,ATTRIBUTE_GROUP>
keyGroups
protected ATTRIBUTE_GROUP
parent
protected Map<Object,ATTRIBUTE_GROUP>
subGroups
-
Constructor Summary
Constructors Modifier Constructor Description protected
CoreAttributeItem()
CoreAttributeItem(ATTRIBUTE_GROUP parent, String attributeName)
-
Method Summary
-
-
-
Field Detail
-
attributeName
protected 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 Map<Object,ATTRIBUTE_GROUP extends CoreAttributeGroup> subGroups
-
keyGroups
protected Map<Object,ATTRIBUTE_GROUP extends CoreAttributeGroup> keyGroups
-
-
Constructor Detail
-
CoreAttributeItem
protected CoreAttributeItem()
-
CoreAttributeItem
public CoreAttributeItem(ATTRIBUTE_GROUP parent, String attributeName)
-
-
Method Detail
-
addGroups
public void addGroups(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(Collection<ATTRIBUTE_GROUP> keyGroups)
-
addSubGroup
public void addSubGroup(ATTRIBUTE_GROUP group)
-
clone
public CoreAttributeItem<ATTRIBUTE_GROUP> clone(Map<ATTRIBUTE_GROUP,ATTRIBUTE_GROUP> cloneMap, ATTRIBUTE_GROUP parentClone)
-
convertClassNamesToClasses
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.- Parameters:
classLoader
-
-
getAttributeName
public String getAttributeName()
-
getGroup
public ATTRIBUTE_GROUP getGroup()
-
getGroup
public ATTRIBUTE_GROUP getGroup(Class type)
-
getGroups
public Map<Object,ATTRIBUTE_GROUP> getGroups()
-
getKeyGroup
public ATTRIBUTE_GROUP getKeyGroup()
-
getKeyGroup
public ATTRIBUTE_GROUP getKeyGroup(Class type)
-
getKeyGroups
public Map<Object,ATTRIBUTE_GROUP> getKeyGroups()
-
getParent
public ATTRIBUTE_GROUP getParent()
-
orderInheritance
protected static boolean orderInheritance(CoreAttributeGroup group, Map<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)
-
toStringNoClassName
public String toStringNoClassName()
-
-