public class LazyAttributesMetadata extends Object implements Serializable
Constructor and Description |
---|
LazyAttributesMetadata(String entityName) |
LazyAttributesMetadata(String entityName,
Map<String,LazyAttributeDescriptor> lazyAttributeDescriptorMap,
Map<String,Set<String>> fetchGroupToAttributeMap) |
Modifier and Type | Method and Description |
---|---|
static LazyAttributesMetadata |
from(PersistentClass mappedEntity)
Build a LazyFetchGroupMetadata based on the attributes defined for the
PersistentClass
|
Set<String> |
getAttributesInFetchGroup(String fetchGroupName) |
Set<String> |
getAttributesInSameFetchGroup(String attributeName) |
String |
getEntityName() |
List<LazyAttributeDescriptor> |
getFetchGroupAttributeDescriptors(String groupName) |
String |
getFetchGroupName(String attributeName) |
Set<String> |
getFetchGroupNames() |
Set<String> |
getLazyAttributeNames() |
boolean |
hasLazyAttributes() |
boolean |
isLazyAttribute(String attributeName) |
int |
lazyAttributeCount() |
static LazyAttributesMetadata |
nonEnhanced(String entityName) |
public LazyAttributesMetadata(String entityName)
public static LazyAttributesMetadata from(PersistentClass mappedEntity)
mappedEntity
- The entity definitionpublic static LazyAttributesMetadata nonEnhanced(String entityName)
public String getEntityName()
public boolean hasLazyAttributes()
public int lazyAttributeCount()
public boolean isLazyAttribute(String attributeName)
public List<LazyAttributeDescriptor> getFetchGroupAttributeDescriptors(String groupName)
Copyright © 2017 JBoss by Red Hat. All rights reserved.