类 EntityBinder
- java.lang.Object
-
- org.hibernate.cfg.annotations.EntityBinder
-
public class EntityBinder extends Object
Stateful holder and processor for binding Entity information- 作者:
- Emmanuel Bernard
-
-
构造器概要
构造器 构造器 说明 EntityBinder()Use as a fake one for Collection of elementsEntityBinder(javax.persistence.Entity ejb3Ann, Entity hibAnn, org.hibernate.annotations.common.reflection.XClass annotatedClass, PersistentClass persistentClass, MetadataBuildingContext context)
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 voidaddFilter(Filter filter)JoinaddJoin(javax.persistence.JoinTable joinTable, PropertyHolder holder, boolean noDelayInPkColumnCreation)voidapplyCaching(org.hibernate.annotations.common.reflection.XClass clazzToProcess, javax.persistence.SharedCacheMode sharedCacheMode, MetadataBuildingContext context)voidbindDiscriminatorValue()voidbindEntity()voidbindTable(String schema, String catalog, String tableName, List<UniqueConstraintHolder> uniqueConstraints, String constraints, InFlightMetadataCollector.EntityTableXref denormalizedSuperTableXref)voidbindTableForDiscriminatedSubclass(InFlightMetadataCollector.EntityTableXref superTableXref)voidfinalSecondaryTableBinding(PropertyHolder propertyHolder)voidfirstLevelSecondaryTablesBinding(javax.persistence.SecondaryTable secTable, javax.persistence.SecondaryTables secTables)static StringgetCacheConcurrencyStrategy(CacheConcurrencyStrategy strategy)AccessTypegetExplicitAccessType(org.hibernate.annotations.common.reflection.XAnnotatedElement element)AccessTypegetPropertyAccessor(org.hibernate.annotations.common.reflection.XAnnotatedElement element)AccessTypegetPropertyAccessType()Map<String,Join>getSecondaryTables()booleanisIgnoreIdAnnotations()booleanisPropertyDefinedInSuperHierarchy(String name)For the most part, this is a simple delegation toPersistentClass.isPropertyDefinedInHierarchy(java.lang.String), after verifying that PersistentClass is indeed set here.booleanisRootEntity()voidprocessComplementaryTableDefinitions(javax.persistence.Table table)voidprocessComplementaryTableDefinitions(Table table)voidprocessComplementaryTableDefinitions(Tables tables)voidsetBatchSize(BatchSize sizeAnn)voidsetDiscriminatorValue(String discriminatorValue)voidsetForceDiscriminator(boolean forceDiscriminator)voidsetIgnoreIdAnnotations(boolean ignoreIdAnnotations)voidsetInheritanceState(InheritanceState inheritanceState)voidsetInsertableDiscriminator(boolean insertableDiscriminator)voidsetPropertyAccessType(AccessType propertyAccessor)voidsetProxy(Proxy proxy)voidsetWhere(Where whereAnn)voidsetWrapIdsInEmbeddedComponents(boolean wrapIdsInEmbeddedComponents)booleanwrapIdsInEmbeddedComponents()
-
-
-
构造器详细资料
-
EntityBinder
public EntityBinder()
Use as a fake one for Collection of elements
-
EntityBinder
public EntityBinder(javax.persistence.Entity ejb3Ann, Entity hibAnn, org.hibernate.annotations.common.reflection.XClass annotatedClass, PersistentClass persistentClass, MetadataBuildingContext context)
-
-
方法详细资料
-
wrapIdsInEmbeddedComponents
public boolean wrapIdsInEmbeddedComponents()
-
isPropertyDefinedInSuperHierarchy
public boolean isPropertyDefinedInSuperHierarchy(String name)
For the most part, this is a simple delegation toPersistentClass.isPropertyDefinedInHierarchy(java.lang.String), after verifying that PersistentClass is indeed set here.- 参数:
name- The name of the property to check- 返回:
trueif a property by that given name does already exist in the super hierarchy.
-
isRootEntity
public boolean isRootEntity()
-
setDiscriminatorValue
public void setDiscriminatorValue(String discriminatorValue)
-
setForceDiscriminator
public void setForceDiscriminator(boolean forceDiscriminator)
-
setInsertableDiscriminator
public void setInsertableDiscriminator(boolean insertableDiscriminator)
-
bindEntity
public void bindEntity()
-
bindDiscriminatorValue
public void bindDiscriminatorValue()
-
setBatchSize
public void setBatchSize(BatchSize sizeAnn)
-
setProxy
public void setProxy(Proxy proxy)
-
setWhere
public void setWhere(Where whereAnn)
-
setWrapIdsInEmbeddedComponents
public void setWrapIdsInEmbeddedComponents(boolean wrapIdsInEmbeddedComponents)
-
applyCaching
public void applyCaching(org.hibernate.annotations.common.reflection.XClass clazzToProcess, javax.persistence.SharedCacheMode sharedCacheMode, MetadataBuildingContext context)
-
bindTableForDiscriminatedSubclass
public void bindTableForDiscriminatedSubclass(InFlightMetadataCollector.EntityTableXref superTableXref)
-
bindTable
public void bindTable(String schema, String catalog, String tableName, List<UniqueConstraintHolder> uniqueConstraints, String constraints, InFlightMetadataCollector.EntityTableXref denormalizedSuperTableXref)
-
finalSecondaryTableBinding
public void finalSecondaryTableBinding(PropertyHolder propertyHolder)
-
firstLevelSecondaryTablesBinding
public void firstLevelSecondaryTablesBinding(javax.persistence.SecondaryTable secTable, javax.persistence.SecondaryTables secTables)
-
addJoin
public Join addJoin(javax.persistence.JoinTable joinTable, PropertyHolder holder, boolean noDelayInPkColumnCreation)
-
getCacheConcurrencyStrategy
public static String getCacheConcurrencyStrategy(CacheConcurrencyStrategy strategy)
-
addFilter
public void addFilter(Filter filter)
-
setInheritanceState
public void setInheritanceState(InheritanceState inheritanceState)
-
isIgnoreIdAnnotations
public boolean isIgnoreIdAnnotations()
-
setIgnoreIdAnnotations
public void setIgnoreIdAnnotations(boolean ignoreIdAnnotations)
-
processComplementaryTableDefinitions
public void processComplementaryTableDefinitions(javax.persistence.Table table)
-
processComplementaryTableDefinitions
public void processComplementaryTableDefinitions(Table table)
-
processComplementaryTableDefinitions
public void processComplementaryTableDefinitions(Tables tables)
-
getPropertyAccessType
public AccessType getPropertyAccessType()
-
setPropertyAccessType
public void setPropertyAccessType(AccessType propertyAccessor)
-
getPropertyAccessor
public AccessType getPropertyAccessor(org.hibernate.annotations.common.reflection.XAnnotatedElement element)
-
getExplicitAccessType
public AccessType getExplicitAccessType(org.hibernate.annotations.common.reflection.XAnnotatedElement element)
-
-