Top Description Fields Constructors Methods
org.hibernate.bytecode.enhance.spi.interceptor

public Class LazyAttributesMetadata

extends Object
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable
Imports
java.io.Serializable, java.util.ArrayList, .Collections, .HashMap, .Iterator, .LinkedHashMap, .LinkedHashSet, .List, .Map, .Set, org.hibernate.boot.spi.MetadataImplementor, org.hibernate.mapping.PersistentClass, .Property, org.hibernate.persister.spi.PersisterCreationContext

Information about all of the bytecode lazy attributes for an entity
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private final String
private final Set<String>
private final Map<String, Set<String>>
private final Map<String, LazyAttributeDescriptor>
private final Set<String>

Constructor Summary

AccessConstructor and Description
public
public
LazyAttributesMetadata(String entityName, Map<String, LazyAttributeDescriptor> lazyAttributeDescriptorMap, Map<String, Set<String>> fetchGroupToAttributeMap)

Method Summary

Modifier and TypeMethod and Description
public static LazyAttributesMetadata
from(PersistentClass mappedEntity, boolean isEnhanced, boolean collectionsInDefaultFetchGroupEnabled, PersisterCreationContext creationContext)

Build a LazyFetchGroupMetadata based on the attributes defined for the PersistentClass

public Set<String>
public Set<String>
getAttributesInSameFetchGroup(String attributeName)

Deprecated This method is not being used and as such will be removed
public String
public List<LazyAttributeDescriptor>
public String
getFetchGroupName(String attributeName)

public Set<String>

Returns:

an immutable set
getFetchGroupNames
()

public Set<String>
public boolean
public boolean
isLazyAttribute(String attributeName)

public int
public static LazyAttributesMetadata
nonEnhanced(String entityName)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

entityNameback to summary
private final String entityName
fetchGroupNamesback to summary
private final Set<String> fetchGroupNames
fetchGroupToAttributeMapback to summary
private final Map<String, Set<String>> fetchGroupToAttributeMap
lazyAttributeDescriptorMapback to summary
private final Map<String, LazyAttributeDescriptor> lazyAttributeDescriptorMap
lazyAttributeNamesback to summary
private final Set<String> lazyAttributeNames

Constructor Detail

LazyAttributesMetadataback to summary
public LazyAttributesMetadata(String entityName)
LazyAttributesMetadataback to summary
public LazyAttributesMetadata(String entityName, Map<String, LazyAttributeDescriptor> lazyAttributeDescriptorMap, Map<String, Set<String>> fetchGroupToAttributeMap)

Method Detail

fromback to summary
public static LazyAttributesMetadata from(PersistentClass mappedEntity, boolean isEnhanced, boolean collectionsInDefaultFetchGroupEnabled, PersisterCreationContext creationContext)

Build a LazyFetchGroupMetadata based on the attributes defined for the PersistentClass

getAttributesInFetchGroupback to summary
public Set<String> getAttributesInFetchGroup(String fetchGroupName)
getAttributesInSameFetchGroupback to summary
public Set<String> getAttributesInSameFetchGroup(String attributeName)

Deprecated

This method is not being used and as such will be removed

Annotations
@Deprecated
getEntityNameback to summary
public String getEntityName()
getFetchGroupAttributeDescriptorsback to summary
public List<LazyAttributeDescriptor> getFetchGroupAttributeDescriptors(String groupName)
getFetchGroupNameback to summary
public String getFetchGroupName(String attributeName)
getFetchGroupNamesback to summary
public Set<String> getFetchGroupNames()
Returns:Set<String>

an immutable set

getLazyAttributeNamesback to summary
public Set<String> getLazyAttributeNames()
hasLazyAttributesback to summary
public boolean hasLazyAttributes()
isLazyAttributeback to summary
public boolean isLazyAttribute(String attributeName)
lazyAttributeCountback to summary
public int lazyAttributeCount()
nonEnhancedback to summary
public static LazyAttributesMetadata nonEnhanced(String entityName)