public class EntityBinding extends Object implements AttributeBindingContainer
Constructor and Description |
---|
EntityBinding(EntityBinding superEntityBinding)
Used to instantiate the EntityBinding for an entity that is a subclass (sub-entity) in an inheritance hierarchy
|
EntityBinding(InheritanceType inheritanceType,
EntityMode entityMode)
Used to instantiate the EntityBinding for an entity that is the root of an inheritance hierarchy
|
public EntityBinding(InheritanceType inheritanceType, EntityMode entityMode)
inheritanceType
- The inheritance type for the hierarchyentityMode
- The entity mode used in this hierarchy.public EntityBinding(EntityBinding superEntityBinding)
superEntityBinding
- The entity binding of this binding's superpublic HierarchyDetails getHierarchyDetails()
public EntityBinding getSuperEntityBinding()
public boolean isRoot()
public boolean isPolymorphic()
public boolean hasSubEntityBindings()
public int getSubEntityBindingClosureSpan()
public Iterable<EntityBinding> getDirectSubEntityBindings()
public Iterable<EntityBinding> getPostOrderSubEntityBindingClosure()
public Iterable<EntityBinding> getPreOrderSubEntityBindingClosure()
public Entity getEntity()
public void setEntity(Entity entity)
public TableSpecification getPrimaryTable()
public void setPrimaryTable(TableSpecification primaryTable)
public TableSpecification locateTable(String tableName)
public String getPrimaryTableName()
public void setPrimaryTableName(String primaryTableName)
public void addSecondaryTable(String tableName, TableSpecification table)
public boolean isVersioned()
public boolean isDiscriminatorMatchValueNull()
public boolean isDiscriminatorMatchValueNotNull()
public String getDiscriminatorMatchValue()
public void setDiscriminatorMatchValue(String discriminatorMatchValue)
public Iterable<FilterDefinition> getFilterDefinitions()
public void addFilterDefinition(FilterDefinition filterDefinition)
public Iterable<SingularAssociationAttributeBinding> getEntityReferencingAttributeBindings()
public EntityBinding seekEntityBinding()
AttributeBindingContainer
seekEntityBinding
in interface AttributeBindingContainer
public String getPathBase()
AttributeBindingContainer
getPathBase
in interface AttributeBindingContainer
public Class<?> getClassReference()
AttributeBindingContainer
Class
reference for this attribute container. Generally this is used to perform reflection
on the attributes.getClassReference
in interface AttributeBindingContainer
Class
referencepublic AttributeContainer getAttributeContainer()
AttributeBindingContainer
getAttributeContainer
in interface AttributeBindingContainer
protected void registerAttributeBinding(String name, AttributeBinding attributeBinding)
public MetaAttributeContext getMetaAttributeContext()
AttributeBindingContainer
getMetaAttributeContext
in interface AttributeBindingContainer
public void setMetaAttributeContext(MetaAttributeContext metaAttributeContext)
public boolean isMutable()
public void setMutable(boolean mutable)
public boolean isLazy()
public void setLazy(boolean lazy)
public ValueHolder<Class<?>> getProxyInterfaceType()
public void setProxyInterfaceType(ValueHolder<Class<?>> proxyInterfaceType)
public String getWhereFilter()
public void setWhereFilter(String whereFilter)
public String getRowId()
public void setRowId(String rowId)
public boolean isDynamicUpdate()
public void setDynamicUpdate(boolean dynamicUpdate)
public boolean isDynamicInsert()
public void setDynamicInsert(boolean dynamicInsert)
public int getBatchSize()
public void setBatchSize(int batchSize)
public boolean isSelectBeforeUpdate()
public void setSelectBeforeUpdate(boolean selectBeforeUpdate)
public boolean hasSubselectLoadableCollections()
public Class<? extends EntityPersister> getCustomEntityPersisterClass()
public void setCustomEntityPersisterClass(Class<? extends EntityPersister> customEntityPersisterClass)
public Class<? extends EntityTuplizer> getCustomEntityTuplizerClass()
public void setCustomEntityTuplizerClass(Class<? extends EntityTuplizer> customEntityTuplizerClass)
public Boolean isAbstract()
public void setAbstract(Boolean isAbstract)
public void addSynchronizedTableNames(Collection<String> synchronizedTableNames)
public String getJpaEntityName()
public void setJpaEntityName(String jpaEntityName)
public String getCustomLoaderName()
public void setCustomLoaderName(String customLoaderName)
public CustomSQL getCustomInsert()
public void setCustomInsert(CustomSQL customInsert)
public CustomSQL getCustomUpdate()
public void setCustomUpdate(CustomSQL customUpdate)
public CustomSQL getCustomDelete()
public void setCustomDelete(CustomSQL customDelete)
public BasicAttributeBinding makeBasicAttributeBinding(SingularAttribute attribute)
AttributeBindingContainer
makeBasicAttributeBinding
in interface AttributeBindingContainer
attribute
- The attribute for which to make a binding.public ComponentAttributeBinding makeComponentAttributeBinding(SingularAttribute attribute)
AttributeBindingContainer
makeComponentAttributeBinding
in interface AttributeBindingContainer
attribute
- The attribute for which to make a binding.public ManyToOneAttributeBinding makeManyToOneAttributeBinding(SingularAttribute attribute)
AttributeBindingContainer
makeManyToOneAttributeBinding
in interface AttributeBindingContainer
attribute
- The attribute for which to make a binding.public BagBinding makeBagAttributeBinding(PluralAttribute attribute, CollectionElementNature nature)
AttributeBindingContainer
makeBagAttributeBinding
in interface AttributeBindingContainer
attribute
- The attribute for which to make a binding.nature
- The nature of the collection elements.public SetBinding makeSetAttributeBinding(PluralAttribute attribute, CollectionElementNature nature)
AttributeBindingContainer
makeSetAttributeBinding
in interface AttributeBindingContainer
attribute
- The attribute for which to make a binding.nature
- The nature of the collection elements.public AttributeBinding locateAttributeBinding(String name)
AttributeBindingContainer
locateAttributeBinding
in interface AttributeBindingContainer
name
- The name of the attribute, local to this container.public Iterable<AttributeBinding> attributeBindings()
AttributeBindingContainer
attributeBindings
in interface AttributeBindingContainer
public int getAttributeBindingClosureSpan()
public Iterable<AttributeBinding> getAttributeBindingClosure()
public Iterable<AttributeBinding> getSubEntityAttributeBindingClosure()
public void setJpaCallbackClasses(List<JpaCallbackClass> jpaCallbackClasses)
public Iterable<JpaCallbackClass> getJpaCallbackClasses()
Copyright © 2018 JBoss by Red Hat. All rights reserved.