Package io.jmix.eclipselink.impl
Class JmixEntityFetchGroup
java.lang.Object
org.eclipse.persistence.core.queries.CoreAttributeGroup<org.eclipse.persistence.internal.queries.AttributeItem,org.eclipse.persistence.descriptors.ClassDescriptor>
org.eclipse.persistence.queries.AttributeGroup
org.eclipse.persistence.queries.FetchGroup
org.eclipse.persistence.internal.queries.EntityFetchGroup
io.jmix.eclipselink.impl.JmixEntityFetchGroup
- All Implemented Interfaces:
Serializable
,Cloneable
public final class JmixEntityFetchGroup
extends org.eclipse.persistence.internal.queries.EntityFetchGroup
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected static ThreadLocal<Boolean>
protected EntityStates
protected static ThreadLocal<Boolean>
protected org.eclipse.persistence.queries.FetchGroup
Fields inherited from class org.eclipse.persistence.queries.FetchGroup
entityFetchGroup, rootEntity
Fields inherited from class org.eclipse.persistence.core.queries.CoreAttributeGroup
allsubclasses, isValidated, items, name, subClasses, superClassGroup, type, typeName
-
Constructor Summary
ConstructorDescriptionJmixEntityFetchGroup
(Collection<String> attributeNames, EntityStates entityStates) JmixEntityFetchGroup
(org.eclipse.persistence.queries.FetchGroup fetchGroup, EntityStates entityStates) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAttribute
(String attributeNameOrPath) void
addAttribute
(String attributeNameOrPath, Collection<? extends org.eclipse.persistence.core.queries.CoreAttributeGroup> groups) void
addAttribute
(String attributeNameOrPath, org.eclipse.persistence.core.queries.CoreAttributeGroup group) void
addAttribute
(String attributeNameOrPath, org.eclipse.persistence.queries.AttributeGroup group) void
addAttributeKey
(String attributeNameOrPath, org.eclipse.persistence.core.queries.CoreAttributeGroup group) void
addAttributes
(Collection<String> attrOrPaths) protected boolean
cannotAccessUnfetched
(org.eclipse.persistence.queries.FetchGroupTracker entity) org.eclipse.persistence.queries.FetchGroup
clone()
org.eclipse.persistence.core.queries.CoreAttributeGroup
clone
(Map<org.eclipse.persistence.core.queries.CoreAttributeGroup<org.eclipse.persistence.internal.queries.AttributeItem, org.eclipse.persistence.descriptors.ClassDescriptor>, org.eclipse.persistence.core.queries.CoreAttributeGroup<org.eclipse.persistence.internal.queries.AttributeItem, org.eclipse.persistence.descriptors.ClassDescriptor>> cloneMap) org.eclipse.persistence.core.queries.CoreAttributeGroup
cloneWithSameAttributes
(Map<org.eclipse.persistence.core.queries.CoreAttributeGroup<org.eclipse.persistence.internal.queries.AttributeItem, org.eclipse.persistence.descriptors.ClassDescriptor>, org.eclipse.persistence.core.queries.CoreAttributeGroup<org.eclipse.persistence.internal.queries.AttributeItem, org.eclipse.persistence.descriptors.ClassDescriptor>> cloneMap) boolean
containsAttribute
(String attributeNameOrPath) boolean
containsAttributeInternal
(String attributeName) void
convertClassNamesToClasses
(ClassLoader classLoader) boolean
org.eclipse.persistence.queries.AttributeGroup
findGroup
(org.eclipse.persistence.descriptors.ClassDescriptor type) org.eclipse.persistence.internal.queries.EntityFetchGroup
getEntityFetchGroup
(org.eclipse.persistence.descriptors.FetchGroupManager fetchGroupManager) org.eclipse.persistence.queries.FetchGroup
org.eclipse.persistence.internal.queries.AttributeItem
getItems()
getName()
org.eclipse.persistence.queries.FetchGroupTracker
getType()
int
hashCode()
boolean
boolean
hasItems()
void
insertSubClass
(org.eclipse.persistence.core.queries.CoreAttributeGroup group) boolean
boolean
boolean
boolean
boolean
boolean
isSupersetOf
(org.eclipse.persistence.core.queries.CoreAttributeGroup anotherGroup) boolean
isSupersetOf
(org.eclipse.persistence.queries.AttributeGroup anotherGroup) boolean
onUnfetchedAttribute
(org.eclipse.persistence.queries.FetchGroupTracker entity, String attributeName) void
removeAttribute
(String attributeNameOrPath) static void
setAccessLocalUnfetched
(boolean value) void
setAllSubclasses
(Map<Object, org.eclipse.persistence.core.queries.CoreAttributeGroup> subclasses) void
setAttributeNames
(Set attributeNames) void
void
setRootEntity
(org.eclipse.persistence.queries.FetchGroupTracker rootEntity) void
setShouldLoad
(boolean shouldLoad) void
setShouldLoadAll
(boolean shouldLoad) boolean
org.eclipse.persistence.sessions.CopyGroup
org.eclipse.persistence.sessions.CopyGroup
toCopyGroup
(Map<org.eclipse.persistence.queries.AttributeGroup, org.eclipse.persistence.sessions.CopyGroup> cloneMap, Map copies) org.eclipse.persistence.queries.FetchGroup
org.eclipse.persistence.queries.FetchGroup
toFetchGroup
(Map<org.eclipse.persistence.queries.AttributeGroup, org.eclipse.persistence.queries.FetchGroup> cloneMap) org.eclipse.persistence.queries.LoadGroup
org.eclipse.persistence.queries.LoadGroup
toLoadGroup
(Map<org.eclipse.persistence.queries.AttributeGroup, org.eclipse.persistence.queries.LoadGroup> cloneMap, boolean loadOnly) org.eclipse.persistence.queries.LoadGroup
toString()
Methods inherited from class org.eclipse.persistence.internal.queries.EntityFetchGroup
onUnfetchedAttributeForSet, setOnEntity
Methods inherited from class org.eclipse.persistence.queries.FetchGroup
cloneWithSameAttributes, newGroup, onUnfetchedAttribute, setSubclassShouldLoad
Methods inherited from class org.eclipse.persistence.queries.AttributeGroup
newItem, newItem
Methods inherited from class org.eclipse.persistence.core.queries.CoreAttributeGroup
convert, getItem, toStringAdditionalInfo, toStringItems, toStringPath
-
Field Details
-
wrappedFetchGroup
protected org.eclipse.persistence.queries.FetchGroup wrappedFetchGroup -
entityStates
-
accessLocalUnfetched
-
unfetchedExceptionAlreadyOccurred
-
-
Constructor Details
-
JmixEntityFetchGroup
public JmixEntityFetchGroup(org.eclipse.persistence.queries.FetchGroup fetchGroup, EntityStates entityStates) -
JmixEntityFetchGroup
-
-
Method Details
-
setAccessLocalUnfetched
public static void setAccessLocalUnfetched(boolean value) -
onUnfetchedAttribute
@Nullable public String onUnfetchedAttribute(org.eclipse.persistence.queries.FetchGroupTracker entity, String attributeName) - Overrides:
onUnfetchedAttribute
in classorg.eclipse.persistence.internal.queries.EntityFetchGroup
-
cannotAccessUnfetched
protected boolean cannotAccessUnfetched(org.eclipse.persistence.queries.FetchGroupTracker entity) -
addAttribute
public void addAttribute(String attributeNameOrPath, org.eclipse.persistence.core.queries.CoreAttributeGroup group) - Overrides:
addAttribute
in classorg.eclipse.persistence.internal.queries.EntityFetchGroup
-
removeAttribute
- Overrides:
removeAttribute
in classorg.eclipse.persistence.internal.queries.EntityFetchGroup
-
isEntityFetchGroup
public boolean isEntityFetchGroup()- Overrides:
isEntityFetchGroup
in classorg.eclipse.persistence.internal.queries.EntityFetchGroup
-
isSupersetOf
public boolean isSupersetOf(org.eclipse.persistence.core.queries.CoreAttributeGroup anotherGroup) - Overrides:
isSupersetOf
in classorg.eclipse.persistence.internal.queries.EntityFetchGroup
-
getAttributes
- Overrides:
getAttributes
in classorg.eclipse.persistence.queries.FetchGroup
-
getRootEntity
public org.eclipse.persistence.queries.FetchGroupTracker getRootEntity()- Overrides:
getRootEntity
in classorg.eclipse.persistence.queries.FetchGroup
-
setRootEntity
public void setRootEntity(org.eclipse.persistence.queries.FetchGroupTracker rootEntity) - Overrides:
setRootEntity
in classorg.eclipse.persistence.queries.FetchGroup
-
setShouldLoad
public void setShouldLoad(boolean shouldLoad) - Overrides:
setShouldLoad
in classorg.eclipse.persistence.queries.FetchGroup
-
setShouldLoadAll
public void setShouldLoadAll(boolean shouldLoad) - Overrides:
setShouldLoadAll
in classorg.eclipse.persistence.queries.FetchGroup
-
shouldLoad
public boolean shouldLoad()- Overrides:
shouldLoad
in classorg.eclipse.persistence.queries.FetchGroup
-
isFetchGroup
public boolean isFetchGroup()- Overrides:
isFetchGroup
in classorg.eclipse.persistence.queries.FetchGroup
-
toLoadGroupLoadOnly
public org.eclipse.persistence.queries.LoadGroup toLoadGroupLoadOnly()- Overrides:
toLoadGroupLoadOnly
in classorg.eclipse.persistence.queries.FetchGroup
-
clone
public org.eclipse.persistence.queries.FetchGroup clone()- Overrides:
clone
in classorg.eclipse.persistence.queries.FetchGroup
-
cloneWithSameAttributes
public org.eclipse.persistence.core.queries.CoreAttributeGroup cloneWithSameAttributes(Map<org.eclipse.persistence.core.queries.CoreAttributeGroup<org.eclipse.persistence.internal.queries.AttributeItem, org.eclipse.persistence.descriptors.ClassDescriptor>, org.eclipse.persistence.core.queries.CoreAttributeGroup<org.eclipse.persistence.internal.queries.AttributeItem, org.eclipse.persistence.descriptors.ClassDescriptor>> cloneMap) - Overrides:
cloneWithSameAttributes
in classorg.eclipse.persistence.core.queries.CoreAttributeGroup<org.eclipse.persistence.internal.queries.AttributeItem,
org.eclipse.persistence.descriptors.ClassDescriptor>
-
toLoadGroup
public org.eclipse.persistence.queries.LoadGroup toLoadGroup(Map<org.eclipse.persistence.queries.AttributeGroup, org.eclipse.persistence.queries.LoadGroup> cloneMap, boolean loadOnly) - Overrides:
toLoadGroup
in classorg.eclipse.persistence.queries.FetchGroup
-
getEntityFetchGroup
public org.eclipse.persistence.internal.queries.EntityFetchGroup getEntityFetchGroup(org.eclipse.persistence.descriptors.FetchGroupManager fetchGroupManager) - Overrides:
getEntityFetchGroup
in classorg.eclipse.persistence.queries.FetchGroup
-
getGroup
- Overrides:
getGroup
in classorg.eclipse.persistence.queries.FetchGroup
-
addAttribute
public void addAttribute(String attributeNameOrPath, Collection<? extends org.eclipse.persistence.core.queries.CoreAttributeGroup> groups) - Overrides:
addAttribute
in classorg.eclipse.persistence.queries.FetchGroup
-
addAttributeKey
public void addAttributeKey(String attributeNameOrPath, org.eclipse.persistence.core.queries.CoreAttributeGroup group) - Overrides:
addAttributeKey
in classorg.eclipse.persistence.queries.FetchGroup
-
addAttribute
public void addAttribute(String attributeNameOrPath, org.eclipse.persistence.queries.AttributeGroup group) - Overrides:
addAttribute
in classorg.eclipse.persistence.queries.AttributeGroup
-
isSupersetOf
public boolean isSupersetOf(org.eclipse.persistence.queries.AttributeGroup anotherGroup) - Overrides:
isSupersetOf
in classorg.eclipse.persistence.queries.AttributeGroup
-
getItem
- Overrides:
getItem
in classorg.eclipse.persistence.queries.AttributeGroup
-
findGroup
public org.eclipse.persistence.queries.AttributeGroup findGroup(org.eclipse.persistence.descriptors.ClassDescriptor type) - Overrides:
findGroup
in classorg.eclipse.persistence.queries.AttributeGroup
-
toFetchGroup
public org.eclipse.persistence.queries.FetchGroup toFetchGroup()- Overrides:
toFetchGroup
in classorg.eclipse.persistence.queries.AttributeGroup
-
toFetchGroup
public org.eclipse.persistence.queries.FetchGroup toFetchGroup(Map<org.eclipse.persistence.queries.AttributeGroup, org.eclipse.persistence.queries.FetchGroup> cloneMap) - Overrides:
toFetchGroup
in classorg.eclipse.persistence.queries.AttributeGroup
-
isCopyGroup
public boolean isCopyGroup()- Overrides:
isCopyGroup
in classorg.eclipse.persistence.queries.AttributeGroup
-
toCopyGroup
public org.eclipse.persistence.sessions.CopyGroup toCopyGroup()- Overrides:
toCopyGroup
in classorg.eclipse.persistence.queries.AttributeGroup
-
toCopyGroup
public org.eclipse.persistence.sessions.CopyGroup toCopyGroup(Map<org.eclipse.persistence.queries.AttributeGroup, org.eclipse.persistence.sessions.CopyGroup> cloneMap, Map copies) - Overrides:
toCopyGroup
in classorg.eclipse.persistence.queries.AttributeGroup
-
isLoadGroup
public boolean isLoadGroup()- Overrides:
isLoadGroup
in classorg.eclipse.persistence.queries.AttributeGroup
-
toLoadGroup
public org.eclipse.persistence.queries.LoadGroup toLoadGroup()- Overrides:
toLoadGroup
in classorg.eclipse.persistence.queries.AttributeGroup
-
isConcurrent
public boolean isConcurrent()- Overrides:
isConcurrent
in classorg.eclipse.persistence.queries.AttributeGroup
-
addAttribute
- Overrides:
addAttribute
in classorg.eclipse.persistence.core.queries.CoreAttributeGroup<org.eclipse.persistence.internal.queries.AttributeItem,
org.eclipse.persistence.descriptors.ClassDescriptor>
-
addAttributes
- Overrides:
addAttributes
in classorg.eclipse.persistence.core.queries.CoreAttributeGroup<org.eclipse.persistence.internal.queries.AttributeItem,
org.eclipse.persistence.descriptors.ClassDescriptor>
-
clone
public org.eclipse.persistence.core.queries.CoreAttributeGroup clone(Map<org.eclipse.persistence.core.queries.CoreAttributeGroup<org.eclipse.persistence.internal.queries.AttributeItem, org.eclipse.persistence.descriptors.ClassDescriptor>, org.eclipse.persistence.core.queries.CoreAttributeGroup<org.eclipse.persistence.internal.queries.AttributeItem, org.eclipse.persistence.descriptors.ClassDescriptor>> cloneMap) - Overrides:
clone
in classorg.eclipse.persistence.core.queries.CoreAttributeGroup<org.eclipse.persistence.internal.queries.AttributeItem,
org.eclipse.persistence.descriptors.ClassDescriptor>
-
containsAttribute
- Overrides:
containsAttribute
in classorg.eclipse.persistence.core.queries.CoreAttributeGroup<org.eclipse.persistence.internal.queries.AttributeItem,
org.eclipse.persistence.descriptors.ClassDescriptor>
-
containsAttributeInternal
- Overrides:
containsAttributeInternal
in classorg.eclipse.persistence.core.queries.CoreAttributeGroup<org.eclipse.persistence.internal.queries.AttributeItem,
org.eclipse.persistence.descriptors.ClassDescriptor>
-
convertClassNamesToClasses
- Overrides:
convertClassNamesToClasses
in classorg.eclipse.persistence.core.queries.CoreAttributeGroup<org.eclipse.persistence.internal.queries.AttributeItem,
org.eclipse.persistence.descriptors.ClassDescriptor>
-
equals
- Overrides:
equals
in classorg.eclipse.persistence.core.queries.CoreAttributeGroup<org.eclipse.persistence.internal.queries.AttributeItem,
org.eclipse.persistence.descriptors.ClassDescriptor>
-
hashCode
public int hashCode()- Overrides:
hashCode
in classorg.eclipse.persistence.core.queries.CoreAttributeGroup<org.eclipse.persistence.internal.queries.AttributeItem,
org.eclipse.persistence.descriptors.ClassDescriptor>
-
getAllItems
- Overrides:
getAllItems
in classorg.eclipse.persistence.core.queries.CoreAttributeGroup<org.eclipse.persistence.internal.queries.AttributeItem,
org.eclipse.persistence.descriptors.ClassDescriptor>
-
getAttributeNames
- Overrides:
getAttributeNames
in classorg.eclipse.persistence.core.queries.CoreAttributeGroup<org.eclipse.persistence.internal.queries.AttributeItem,
org.eclipse.persistence.descriptors.ClassDescriptor>
-
getItems
- Overrides:
getItems
in classorg.eclipse.persistence.core.queries.CoreAttributeGroup<org.eclipse.persistence.internal.queries.AttributeItem,
org.eclipse.persistence.descriptors.ClassDescriptor>
-
getName
- Overrides:
getName
in classorg.eclipse.persistence.core.queries.CoreAttributeGroup<org.eclipse.persistence.internal.queries.AttributeItem,
org.eclipse.persistence.descriptors.ClassDescriptor>
-
getSubClassGroups
- Overrides:
getSubClassGroups
in classorg.eclipse.persistence.core.queries.CoreAttributeGroup<org.eclipse.persistence.internal.queries.AttributeItem,
org.eclipse.persistence.descriptors.ClassDescriptor>
-
getType
- Overrides:
getType
in classorg.eclipse.persistence.core.queries.CoreAttributeGroup<org.eclipse.persistence.internal.queries.AttributeItem,
org.eclipse.persistence.descriptors.ClassDescriptor>
-
getTypeName
- Overrides:
getTypeName
in classorg.eclipse.persistence.core.queries.CoreAttributeGroup<org.eclipse.persistence.internal.queries.AttributeItem,
org.eclipse.persistence.descriptors.ClassDescriptor>
-
hasInheritance
public boolean hasInheritance()- Overrides:
hasInheritance
in classorg.eclipse.persistence.core.queries.CoreAttributeGroup<org.eclipse.persistence.internal.queries.AttributeItem,
org.eclipse.persistence.descriptors.ClassDescriptor>
-
hasItems
public boolean hasItems()- Overrides:
hasItems
in classorg.eclipse.persistence.core.queries.CoreAttributeGroup<org.eclipse.persistence.internal.queries.AttributeItem,
org.eclipse.persistence.descriptors.ClassDescriptor>
-
insertSubClass
public void insertSubClass(org.eclipse.persistence.core.queries.CoreAttributeGroup group) - Overrides:
insertSubClass
in classorg.eclipse.persistence.core.queries.CoreAttributeGroup<org.eclipse.persistence.internal.queries.AttributeItem,
org.eclipse.persistence.descriptors.ClassDescriptor>
-
isValidated
public boolean isValidated()- Overrides:
isValidated
in classorg.eclipse.persistence.core.queries.CoreAttributeGroup<org.eclipse.persistence.internal.queries.AttributeItem,
org.eclipse.persistence.descriptors.ClassDescriptor>
-
setAllSubclasses
public void setAllSubclasses(Map<Object, org.eclipse.persistence.core.queries.CoreAttributeGroup> subclasses) - Overrides:
setAllSubclasses
in classorg.eclipse.persistence.core.queries.CoreAttributeGroup<org.eclipse.persistence.internal.queries.AttributeItem,
org.eclipse.persistence.descriptors.ClassDescriptor>
-
setAttributeNames
- Overrides:
setAttributeNames
in classorg.eclipse.persistence.core.queries.CoreAttributeGroup<org.eclipse.persistence.internal.queries.AttributeItem,
org.eclipse.persistence.descriptors.ClassDescriptor>
-
setName
- Overrides:
setName
in classorg.eclipse.persistence.core.queries.CoreAttributeGroup<org.eclipse.persistence.internal.queries.AttributeItem,
org.eclipse.persistence.descriptors.ClassDescriptor>
-
toString
- Overrides:
toString
in classorg.eclipse.persistence.core.queries.CoreAttributeGroup<org.eclipse.persistence.internal.queries.AttributeItem,
org.eclipse.persistence.descriptors.ClassDescriptor>
-