Class LazyAttributesMetadata

  • All Implemented Interfaces:
    java.io.Serializable

    public class LazyAttributesMetadata
    extends java.lang.Object
    implements java.io.Serializable
    Information about all of the bytecode lazy attributes for an entity
    See Also:
    Serialized Form
    • Constructor Detail

      • LazyAttributesMetadata

        public LazyAttributesMetadata​(java.lang.String entityName)
      • LazyAttributesMetadata

        public LazyAttributesMetadata​(java.lang.String entityName,
                                      java.util.Map<java.lang.String,​LazyAttributeDescriptor> lazyAttributeDescriptorMap,
                                      java.util.Map<java.lang.String,​java.util.Set<java.lang.String>> fetchGroupToAttributeMap)
    • Method Detail

      • from

        public static LazyAttributesMetadata from​(PersistentClass mappedEntity,
                                                  boolean isEnhanced,
                                                  boolean allowEnhancementAsProxy)
        Build a LazyFetchGroupMetadata based on the attributes defined for the PersistentClass
      • getEntityName

        public java.lang.String getEntityName()
      • hasLazyAttributes

        public boolean hasLazyAttributes()
      • lazyAttributeCount

        public int lazyAttributeCount()
      • getLazyAttributeNames

        public java.util.Set<java.lang.String> getLazyAttributeNames()
      • getFetchGroupNames

        public java.util.Set<java.lang.String> getFetchGroupNames()
      • isLazyAttribute

        public boolean isLazyAttribute​(java.lang.String attributeName)
      • getFetchGroupName

        public java.lang.String getFetchGroupName​(java.lang.String attributeName)
      • getAttributesInFetchGroup

        public java.util.Set<java.lang.String> getAttributesInFetchGroup​(java.lang.String fetchGroupName)
      • getFetchGroupAttributeDescriptors

        public java.util.List<LazyAttributeDescriptor> getFetchGroupAttributeDescriptors​(java.lang.String groupName)
      • getAttributesInSameFetchGroup

        public java.util.Set<java.lang.String> getAttributesInSameFetchGroup​(java.lang.String attributeName)