Class EntityBinder
- java.lang.Object
-
- org.hibernate.boot.model.internal.EntityBinder
-
public class EntityBinder extends Object
Stateful binder responsible for interpreting information about anEntity
class and producing aPersistentClass
mapping model object.
-
-
Constructor Summary
Constructors Constructor Description EntityBinder()
Use as a fake one for Collection of elementsEntityBinder(org.hibernate.annotations.common.reflection.XClass annotatedClass, PersistentClass persistentClass, MetadataBuildingContext context)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addFilter(Filter filter)
Join
addJoin(JoinTable joinTable, PropertyHolder holder, boolean noDelayInPkColumnCreation)
Join
addJoin(SecondaryTable secondaryTable, PropertyHolder holder, boolean noDelayInPkColumnCreation)
void
bindBatchSize()
void
bindDiscriminatorValue()
void
bindEntity()
static void
bindEntityClass(org.hibernate.annotations.common.reflection.XClass clazzToProcess, Map<org.hibernate.annotations.common.reflection.XClass,InheritanceState> inheritanceStates, Map<String,IdentifierGeneratorDefinition> generators, MetadataBuildingContext context)
Bind an entity class.void
bindFiltersInHierarchy()
Process the filters defined on the given class, as well as all filters defined on the MappedSuperclass(es) in the inheritance hierarchyvoid
bindProxy()
void
bindTable(String schema, String catalog, String tableName, List<UniqueConstraintHolder> uniqueConstraints, String rowId, InFlightMetadataCollector.EntityTableXref denormalizedSuperTableXref)
void
bindTableForDiscriminatedSubclass(InFlightMetadataCollector.EntityTableXref superTableXref)
void
bindWhere()
void
finalSecondaryTableBinding(PropertyHolder propertyHolder)
void
finalSecondaryTableFromAnnotationBinding(PropertyHolder propertyHolder)
static String
getCacheConcurrencyStrategy(CacheConcurrencyStrategy strategy)
AccessType
getExplicitAccessType(org.hibernate.annotations.common.reflection.XAnnotatedElement element)
PersistentClass
getPersistentClass()
AccessType
getPropertyAccessor(org.hibernate.annotations.common.reflection.XAnnotatedElement element)
AccessType
getPropertyAccessType()
Map<String,Join>
getSecondaryTables()
boolean
isIgnoreIdAnnotations()
boolean
isPropertyDefinedInSuperHierarchy(String name)
Delegates toPersistentClass.isPropertyDefinedInHierarchy(java.lang.String)
, after verifying that there is aPersistentClass
available.boolean
isRootEntity()
void
processComplementaryTableDefinitions(Table table)
void
processComplementaryTableDefinitions(Table table)
void
processComplementaryTableDefinitions(Tables tables)
void
setIgnoreIdAnnotations(boolean ignoreIdAnnotations)
void
setPropertyAccessType(AccessType propertyAccessType)
void
setWrapIdsInEmbeddedComponents(boolean wrapIdsInEmbeddedComponents)
boolean
wrapIdsInEmbeddedComponents()
-
-
-
Constructor Detail
-
EntityBinder
public EntityBinder()
Use as a fake one for Collection of elements
-
EntityBinder
public EntityBinder(org.hibernate.annotations.common.reflection.XClass annotatedClass, PersistentClass persistentClass, MetadataBuildingContext context)
-
-
Method Detail
-
bindEntityClass
public static void bindEntityClass(org.hibernate.annotations.common.reflection.XClass clazzToProcess, Map<org.hibernate.annotations.common.reflection.XClass,InheritanceState> inheritanceStates, Map<String,IdentifierGeneratorDefinition> generators, MetadataBuildingContext context)
Bind an entity class. This can be done in a single pass.
-
wrapIdsInEmbeddedComponents
public boolean wrapIdsInEmbeddedComponents()
-
isPropertyDefinedInSuperHierarchy
public boolean isPropertyDefinedInSuperHierarchy(String name)
Delegates toPersistentClass.isPropertyDefinedInHierarchy(java.lang.String)
, after verifying that there is aPersistentClass
available.- Parameters:
name
- The name of the property to check- Returns:
true
if a property by that given name does already exist in the super hierarchy.
-
isRootEntity
public boolean isRootEntity()
-
bindEntity
public void bindEntity()
-
getPersistentClass
public PersistentClass getPersistentClass()
-
bindDiscriminatorValue
public void bindDiscriminatorValue()
-
bindBatchSize
public void bindBatchSize()
-
bindProxy
public void bindProxy()
-
bindWhere
public void bindWhere()
-
setWrapIdsInEmbeddedComponents
public void setWrapIdsInEmbeddedComponents(boolean wrapIdsInEmbeddedComponents)
-
bindTableForDiscriminatedSubclass
public void bindTableForDiscriminatedSubclass(InFlightMetadataCollector.EntityTableXref superTableXref)
-
bindTable
public void bindTable(String schema, String catalog, String tableName, List<UniqueConstraintHolder> uniqueConstraints, String rowId, InFlightMetadataCollector.EntityTableXref denormalizedSuperTableXref)
-
finalSecondaryTableBinding
public void finalSecondaryTableBinding(PropertyHolder propertyHolder)
-
finalSecondaryTableFromAnnotationBinding
public void finalSecondaryTableFromAnnotationBinding(PropertyHolder propertyHolder)
-
addJoin
public Join addJoin(JoinTable joinTable, PropertyHolder holder, boolean noDelayInPkColumnCreation)
-
addJoin
public Join addJoin(SecondaryTable secondaryTable, PropertyHolder holder, boolean noDelayInPkColumnCreation)
-
getCacheConcurrencyStrategy
public static String getCacheConcurrencyStrategy(CacheConcurrencyStrategy strategy)
-
addFilter
public void addFilter(Filter filter)
-
isIgnoreIdAnnotations
public boolean isIgnoreIdAnnotations()
-
setIgnoreIdAnnotations
public void setIgnoreIdAnnotations(boolean ignoreIdAnnotations)
-
processComplementaryTableDefinitions
public void processComplementaryTableDefinitions(Table table)
-
processComplementaryTableDefinitions
public void processComplementaryTableDefinitions(Table table)
-
processComplementaryTableDefinitions
public void processComplementaryTableDefinitions(Tables tables)
-
getPropertyAccessType
public AccessType getPropertyAccessType()
-
setPropertyAccessType
public void setPropertyAccessType(AccessType propertyAccessType)
-
getPropertyAccessor
public AccessType getPropertyAccessor(org.hibernate.annotations.common.reflection.XAnnotatedElement element)
-
getExplicitAccessType
public AccessType getExplicitAccessType(org.hibernate.annotations.common.reflection.XAnnotatedElement element)
-
bindFiltersInHierarchy
public void bindFiltersInHierarchy()
Process the filters defined on the given class, as well as all filters defined on the MappedSuperclass(es) in the inheritance hierarchy
-
-