Class EntityBinder
java.lang.Object
org.hibernate.boot.model.internal.EntityBinder
Stateful binder responsible for interpreting information about an
Entity class
and producing a PersistentClass mapping model object.- Author:
- Emmanuel Bernard
-
Constructor Summary
ConstructorsConstructorDescriptionUse as a fake one for Collection of elementsEntityBinder(XClass annotatedClass, PersistentClass persistentClass, MetadataBuildingContext context) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddJoin(JoinTable joinTable, PropertyHolder holder, boolean noDelayInPkColumnCreation) addJoin(SecondaryTable secondaryTable, PropertyHolder holder, boolean noDelayInPkColumnCreation) voidvoidvoidstatic voidbindEntityClass(XClass clazzToProcess, Map<XClass, InheritanceState> inheritanceStates, Map<String, IdentifierGeneratorDefinition> generators, MetadataBuildingContext context) Bind an entity class.voidProcess the filters defined on the given class, as well as all filters defined on the MappedSuperclass(es) in the inheritance hierarchyvoidvoidbindTable(String schema, String catalog, String tableName, UniqueConstraint[] uniqueConstraints, String rowId, String viewQuery, InFlightMetadataCollector.EntityTableXref denormalizedSuperTableXref) voidbindTableForDiscriminatedSubclass(String entityName) voidvoidfinalSecondaryTableBinding(PropertyHolder propertyHolder) voidfinalSecondaryTableFromAnnotationBinding(PropertyHolder propertyHolder) static StringgetExplicitAccessType(XAnnotatedElement element) getPropertyAccessor(XAnnotatedElement element) booleanbooleanDelegates toPersistentClass.isPropertyDefinedInHierarchy(java.lang.String), after verifying that there is aPersistentClassavailable.booleanvoidvoidvoidvoidsetIgnoreIdAnnotations(boolean ignoreIdAnnotations) voidsetPropertyAccessType(AccessType propertyAccessType) voidsetWrapIdsInEmbeddedComponents(boolean wrapIdsInEmbeddedComponents) boolean
-
Constructor Details
-
EntityBinder
public EntityBinder()Use as a fake one for Collection of elements -
EntityBinder
public EntityBinder(XClass annotatedClass, PersistentClass persistentClass, MetadataBuildingContext context)
-
-
Method Details
-
bindEntityClass
public static void bindEntityClass(XClass clazzToProcess, Map<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
Delegates toPersistentClass.isPropertyDefinedInHierarchy(java.lang.String), after verifying that there is aPersistentClassavailable.- Parameters:
name- The name of the property to check- Returns:
trueif a property by that given name does already exist in the super hierarchy.
-
isRootEntity
public boolean isRootEntity() -
bindEntity
public void bindEntity() -
getPersistentClass
-
bindDiscriminatorValue
public void bindDiscriminatorValue() -
bindProxy
public void bindProxy() -
bindConcreteProxy
public void bindConcreteProxy() -
bindWhere
public void bindWhere() -
setWrapIdsInEmbeddedComponents
public void setWrapIdsInEmbeddedComponents(boolean wrapIdsInEmbeddedComponents) -
bindTableForDiscriminatedSubclass
-
bindTable
public void bindTable(String schema, String catalog, String tableName, UniqueConstraint[] uniqueConstraints, String rowId, String viewQuery, InFlightMetadataCollector.EntityTableXref denormalizedSuperTableXref) -
finalSecondaryTableBinding
-
finalSecondaryTableFromAnnotationBinding
-
addJoin
-
addJoin
public Join addJoin(SecondaryTable secondaryTable, PropertyHolder holder, boolean noDelayInPkColumnCreation) -
getSecondaryTables
-
getCacheConcurrencyStrategy
-
addFilter
-
isIgnoreIdAnnotations
public boolean isIgnoreIdAnnotations() -
setIgnoreIdAnnotations
public void setIgnoreIdAnnotations(boolean ignoreIdAnnotations) -
processComplementaryTableDefinitions
-
processComplementaryTableDefinitions
-
processComplementaryTableDefinitions
-
getPropertyAccessType
-
setPropertyAccessType
-
getPropertyAccessor
-
getExplicitAccessType
-
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
-