Class LazyAttributesMetadata
- java.lang.Object
-
- org.hibernate.bytecode.enhance.spi.interceptor.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 Summary
Constructors Constructor Description LazyAttributesMetadata(java.lang.String entityName)
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 Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LazyAttributesMetadata
from(PersistentClass mappedEntity, boolean isEnhanced, boolean allowEnhancementAsProxy)
Build a LazyFetchGroupMetadata based on the attributes defined for the PersistentClassjava.util.Set<java.lang.String>
getAttributesInFetchGroup(java.lang.String fetchGroupName)
java.util.Set<java.lang.String>
getAttributesInSameFetchGroup(java.lang.String attributeName)
java.lang.String
getEntityName()
java.util.List<LazyAttributeDescriptor>
getFetchGroupAttributeDescriptors(java.lang.String groupName)
java.lang.String
getFetchGroupName(java.lang.String attributeName)
java.util.Set<java.lang.String>
getFetchGroupNames()
java.util.Set<java.lang.String>
getLazyAttributeNames()
boolean
hasLazyAttributes()
boolean
isLazyAttribute(java.lang.String attributeName)
int
lazyAttributeCount()
static LazyAttributesMetadata
nonEnhanced(java.lang.String entityName)
-
-
-
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
-
nonEnhanced
public static LazyAttributesMetadata nonEnhanced(java.lang.String entityName)
-
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)
-
-