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

    Fields
    Modifier and Type
    Field
    Description
    protected static ThreadLocal<Boolean>
     
    protected EntityStates
     
    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

    Constructors
    Constructor
    Description
    JmixEntityFetchGroup(Collection<String> attributeNames, EntityStates entityStates)
     
    JmixEntityFetchGroup(org.eclipse.persistence.queries.FetchGroup fetchGroup, EntityStates entityStates)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    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
     
    protected boolean
    cannotAccessUnfetched(org.eclipse.persistence.queries.FetchGroupTracker entity)
     
    org.eclipse.persistence.queries.FetchGroup
     
    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
     
    void
     
    boolean
     
    org.eclipse.persistence.queries.AttributeGroup
    findGroup(org.eclipse.persistence.descriptors.ClassDescriptor type)
     
    Map<String,org.eclipse.persistence.internal.queries.AttributeItem>
     
     
     
    org.eclipse.persistence.internal.queries.EntityFetchGroup
    getEntityFetchGroup(org.eclipse.persistence.descriptors.FetchGroupManager fetchGroupManager)
     
    org.eclipse.persistence.queries.FetchGroup
    getGroup(String attributeNameOrPath)
     
    org.eclipse.persistence.internal.queries.AttributeItem
    getItem(String attributeNameOrPath)
     
    Map<String,org.eclipse.persistence.internal.queries.AttributeItem>
     
     
    org.eclipse.persistence.queries.FetchGroupTracker
     
    Map<Object,org.eclipse.persistence.core.queries.CoreAttributeGroup>
     
     
     
    int
     
    boolean
     
    boolean
     
    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
     
     

    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

    Methods inherited from class java.lang.Object

    finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • wrappedFetchGroup

      protected org.eclipse.persistence.queries.FetchGroup wrappedFetchGroup
    • entityStates

      protected transient EntityStates entityStates
    • accessLocalUnfetched

      protected static ThreadLocal<Boolean> accessLocalUnfetched
  • Constructor Details

    • JmixEntityFetchGroup

      public JmixEntityFetchGroup(org.eclipse.persistence.queries.FetchGroup fetchGroup, EntityStates entityStates)
    • JmixEntityFetchGroup

      public JmixEntityFetchGroup(Collection<String> attributeNames, EntityStates entityStates)
  • 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 class org.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 class org.eclipse.persistence.internal.queries.EntityFetchGroup
    • removeAttribute

      public void removeAttribute(String attributeNameOrPath)
      Overrides:
      removeAttribute in class org.eclipse.persistence.internal.queries.EntityFetchGroup
    • isEntityFetchGroup

      public boolean isEntityFetchGroup()
      Overrides:
      isEntityFetchGroup in class org.eclipse.persistence.internal.queries.EntityFetchGroup
    • isSupersetOf

      public boolean isSupersetOf(org.eclipse.persistence.core.queries.CoreAttributeGroup anotherGroup)
      Overrides:
      isSupersetOf in class org.eclipse.persistence.internal.queries.EntityFetchGroup
    • getAttributes

      public Set<String> getAttributes()
      Overrides:
      getAttributes in class org.eclipse.persistence.queries.FetchGroup
    • getRootEntity

      public org.eclipse.persistence.queries.FetchGroupTracker getRootEntity()
      Overrides:
      getRootEntity in class org.eclipse.persistence.queries.FetchGroup
    • setRootEntity

      public void setRootEntity(org.eclipse.persistence.queries.FetchGroupTracker rootEntity)
      Overrides:
      setRootEntity in class org.eclipse.persistence.queries.FetchGroup
    • setShouldLoad

      public void setShouldLoad(boolean shouldLoad)
      Overrides:
      setShouldLoad in class org.eclipse.persistence.queries.FetchGroup
    • setShouldLoadAll

      public void setShouldLoadAll(boolean shouldLoad)
      Overrides:
      setShouldLoadAll in class org.eclipse.persistence.queries.FetchGroup
    • shouldLoad

      public boolean shouldLoad()
      Overrides:
      shouldLoad in class org.eclipse.persistence.queries.FetchGroup
    • isFetchGroup

      public boolean isFetchGroup()
      Overrides:
      isFetchGroup in class org.eclipse.persistence.queries.FetchGroup
    • toLoadGroupLoadOnly

      public org.eclipse.persistence.queries.LoadGroup toLoadGroupLoadOnly()
      Overrides:
      toLoadGroupLoadOnly in class org.eclipse.persistence.queries.FetchGroup
    • clone

      public org.eclipse.persistence.queries.FetchGroup clone()
      Overrides:
      clone in class org.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 class org.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 class org.eclipse.persistence.queries.FetchGroup
    • getEntityFetchGroup

      public org.eclipse.persistence.internal.queries.EntityFetchGroup getEntityFetchGroup(org.eclipse.persistence.descriptors.FetchGroupManager fetchGroupManager)
      Overrides:
      getEntityFetchGroup in class org.eclipse.persistence.queries.FetchGroup
    • getGroup

      public org.eclipse.persistence.queries.FetchGroup getGroup(String attributeNameOrPath)
      Overrides:
      getGroup in class org.eclipse.persistence.queries.FetchGroup
    • addAttribute

      public void addAttribute(String attributeNameOrPath, Collection<? extends org.eclipse.persistence.core.queries.CoreAttributeGroup> groups)
      Overrides:
      addAttribute in class org.eclipse.persistence.queries.FetchGroup
    • addAttributeKey

      public void addAttributeKey(String attributeNameOrPath, org.eclipse.persistence.core.queries.CoreAttributeGroup group)
      Overrides:
      addAttributeKey in class org.eclipse.persistence.queries.FetchGroup
    • addAttribute

      public void addAttribute(String attributeNameOrPath, org.eclipse.persistence.queries.AttributeGroup group)
      Overrides:
      addAttribute in class org.eclipse.persistence.queries.AttributeGroup
    • isSupersetOf

      public boolean isSupersetOf(org.eclipse.persistence.queries.AttributeGroup anotherGroup)
      Overrides:
      isSupersetOf in class org.eclipse.persistence.queries.AttributeGroup
    • getItem

      public org.eclipse.persistence.internal.queries.AttributeItem getItem(String attributeNameOrPath)
      Overrides:
      getItem in class org.eclipse.persistence.queries.AttributeGroup
    • findGroup

      public org.eclipse.persistence.queries.AttributeGroup findGroup(org.eclipse.persistence.descriptors.ClassDescriptor type)
      Overrides:
      findGroup in class org.eclipse.persistence.queries.AttributeGroup
    • toFetchGroup

      public org.eclipse.persistence.queries.FetchGroup toFetchGroup()
      Overrides:
      toFetchGroup in class org.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 class org.eclipse.persistence.queries.AttributeGroup
    • isCopyGroup

      public boolean isCopyGroup()
      Overrides:
      isCopyGroup in class org.eclipse.persistence.queries.AttributeGroup
    • toCopyGroup

      public org.eclipse.persistence.sessions.CopyGroup toCopyGroup()
      Overrides:
      toCopyGroup in class org.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 class org.eclipse.persistence.queries.AttributeGroup
    • isLoadGroup

      public boolean isLoadGroup()
      Overrides:
      isLoadGroup in class org.eclipse.persistence.queries.AttributeGroup
    • toLoadGroup

      public org.eclipse.persistence.queries.LoadGroup toLoadGroup()
      Overrides:
      toLoadGroup in class org.eclipse.persistence.queries.AttributeGroup
    • isConcurrent

      public boolean isConcurrent()
      Overrides:
      isConcurrent in class org.eclipse.persistence.queries.AttributeGroup
    • addAttribute

      public void addAttribute(String attributeNameOrPath)
      Overrides:
      addAttribute in class org.eclipse.persistence.core.queries.CoreAttributeGroup<org.eclipse.persistence.internal.queries.AttributeItem,org.eclipse.persistence.descriptors.ClassDescriptor>
    • addAttributes

      public void addAttributes(Collection<String> attrOrPaths)
      Overrides:
      addAttributes in class org.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 class org.eclipse.persistence.core.queries.CoreAttributeGroup<org.eclipse.persistence.internal.queries.AttributeItem,org.eclipse.persistence.descriptors.ClassDescriptor>
    • containsAttribute

      public boolean containsAttribute(String attributeNameOrPath)
      Overrides:
      containsAttribute in class org.eclipse.persistence.core.queries.CoreAttributeGroup<org.eclipse.persistence.internal.queries.AttributeItem,org.eclipse.persistence.descriptors.ClassDescriptor>
    • containsAttributeInternal

      public boolean containsAttributeInternal(String attributeName)
      Overrides:
      containsAttributeInternal in class org.eclipse.persistence.core.queries.CoreAttributeGroup<org.eclipse.persistence.internal.queries.AttributeItem,org.eclipse.persistence.descriptors.ClassDescriptor>
    • convertClassNamesToClasses

      public void convertClassNamesToClasses(ClassLoader classLoader)
      Overrides:
      convertClassNamesToClasses in class org.eclipse.persistence.core.queries.CoreAttributeGroup<org.eclipse.persistence.internal.queries.AttributeItem,org.eclipse.persistence.descriptors.ClassDescriptor>
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class org.eclipse.persistence.core.queries.CoreAttributeGroup<org.eclipse.persistence.internal.queries.AttributeItem,org.eclipse.persistence.descriptors.ClassDescriptor>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class org.eclipse.persistence.core.queries.CoreAttributeGroup<org.eclipse.persistence.internal.queries.AttributeItem,org.eclipse.persistence.descriptors.ClassDescriptor>
    • getAllItems

      public Map<String,org.eclipse.persistence.internal.queries.AttributeItem> getAllItems()
      Overrides:
      getAllItems in class org.eclipse.persistence.core.queries.CoreAttributeGroup<org.eclipse.persistence.internal.queries.AttributeItem,org.eclipse.persistence.descriptors.ClassDescriptor>
    • getAttributeNames

      public Set<String> getAttributeNames()
      Overrides:
      getAttributeNames in class org.eclipse.persistence.core.queries.CoreAttributeGroup<org.eclipse.persistence.internal.queries.AttributeItem,org.eclipse.persistence.descriptors.ClassDescriptor>
    • getItems

      public Map<String,org.eclipse.persistence.internal.queries.AttributeItem> getItems()
      Overrides:
      getItems in class org.eclipse.persistence.core.queries.CoreAttributeGroup<org.eclipse.persistence.internal.queries.AttributeItem,org.eclipse.persistence.descriptors.ClassDescriptor>
    • getName

      public String getName()
      Overrides:
      getName in class org.eclipse.persistence.core.queries.CoreAttributeGroup<org.eclipse.persistence.internal.queries.AttributeItem,org.eclipse.persistence.descriptors.ClassDescriptor>
    • getSubClassGroups

      public Map<Object,org.eclipse.persistence.core.queries.CoreAttributeGroup> getSubClassGroups()
      Overrides:
      getSubClassGroups in class org.eclipse.persistence.core.queries.CoreAttributeGroup<org.eclipse.persistence.internal.queries.AttributeItem,org.eclipse.persistence.descriptors.ClassDescriptor>
    • getType

      public Class getType()
      Overrides:
      getType in class org.eclipse.persistence.core.queries.CoreAttributeGroup<org.eclipse.persistence.internal.queries.AttributeItem,org.eclipse.persistence.descriptors.ClassDescriptor>
    • getTypeName

      public String getTypeName()
      Overrides:
      getTypeName in class org.eclipse.persistence.core.queries.CoreAttributeGroup<org.eclipse.persistence.internal.queries.AttributeItem,org.eclipse.persistence.descriptors.ClassDescriptor>
    • hasInheritance

      public boolean hasInheritance()
      Overrides:
      hasInheritance in class org.eclipse.persistence.core.queries.CoreAttributeGroup<org.eclipse.persistence.internal.queries.AttributeItem,org.eclipse.persistence.descriptors.ClassDescriptor>
    • hasItems

      public boolean hasItems()
      Overrides:
      hasItems in class org.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 class org.eclipse.persistence.core.queries.CoreAttributeGroup<org.eclipse.persistence.internal.queries.AttributeItem,org.eclipse.persistence.descriptors.ClassDescriptor>
    • isValidated

      public boolean isValidated()
      Overrides:
      isValidated in class org.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 class org.eclipse.persistence.core.queries.CoreAttributeGroup<org.eclipse.persistence.internal.queries.AttributeItem,org.eclipse.persistence.descriptors.ClassDescriptor>
    • setAttributeNames

      public void setAttributeNames(Set attributeNames)
      Overrides:
      setAttributeNames in class org.eclipse.persistence.core.queries.CoreAttributeGroup<org.eclipse.persistence.internal.queries.AttributeItem,org.eclipse.persistence.descriptors.ClassDescriptor>
    • setName

      public void setName(String name)
      Overrides:
      setName in class org.eclipse.persistence.core.queries.CoreAttributeGroup<org.eclipse.persistence.internal.queries.AttributeItem,org.eclipse.persistence.descriptors.ClassDescriptor>
    • toString

      public String toString()
      Overrides:
      toString in class org.eclipse.persistence.core.queries.CoreAttributeGroup<org.eclipse.persistence.internal.queries.AttributeItem,org.eclipse.persistence.descriptors.ClassDescriptor>