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.-
Constructor Summary
ConstructorsConstructorDescriptionEntityBinder
(MetadataBuildingContext context) Use as a fake one for Collection of elementsEntityBinder
(org.hibernate.models.spi.ClassDetails annotatedClass, PersistentClass persistentClass, MetadataBuildingContext context) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addJoinTable
(JoinTable joinTable, PropertyHolder holder, boolean noDelayInPkColumnCreation) addSecondaryTable
(SecondaryTable secondaryTable, PropertyHolder holder, boolean noDelayInPkColumnCreation) void
void
void
static void
bindEntityClass
(org.hibernate.models.spi.ClassDetails clazzToProcess, Map<org.hibernate.models.spi.ClassDetails, InheritanceState> inheritanceStates, MetadataBuildingContext context) Bind an entity class.void
Process the filters defined on the given class, as well as all filters defined on the MappedSuperclass(es) in the inheritance hierarchyvoid
void
bindTable
(String schema, String catalog, String tableName, UniqueConstraint[] uniqueConstraints, String rowId, String viewQuery, InFlightMetadataCollector.EntityTableXref denormalizedSuperTableXref) void
bindTableForDiscriminatedSubclass
(String entityName) void
void
finalSecondaryTableBinding
(PropertyHolder propertyHolder) void
finalSecondaryTableFromAnnotationBinding
(PropertyHolder propertyHolder) static String
getExplicitAccessType
(org.hibernate.models.spi.AnnotationTarget element) getPropertyAccessor
(org.hibernate.models.spi.AnnotationTarget element) boolean
boolean
Delegates toPersistentClass.isPropertyDefinedInHierarchy(java.lang.String)
, after verifying that there is aPersistentClass
available.boolean
void
setIgnoreIdAnnotations
(boolean ignoreIdAnnotations) void
setPropertyAccessType
(AccessType propertyAccessType) void
setWrapIdsInEmbeddedComponents
(boolean wrapIdsInEmbeddedComponents) boolean
-
Constructor Details
-
EntityBinder
Use as a fake one for Collection of elements -
EntityBinder
public EntityBinder(org.hibernate.models.spi.ClassDetails annotatedClass, PersistentClass persistentClass, MetadataBuildingContext context)
-
-
Method Details
-
bindEntityClass
public static void bindEntityClass(org.hibernate.models.spi.ClassDetails clazzToProcess, Map<org.hibernate.models.spi.ClassDetails, InheritanceState> inheritanceStates, 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 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
-
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
-
addJoinTable
public Join addJoinTable(JoinTable joinTable, PropertyHolder holder, boolean noDelayInPkColumnCreation) -
addSecondaryTable
public Join addSecondaryTable(SecondaryTable secondaryTable, PropertyHolder holder, boolean noDelayInPkColumnCreation) -
getSecondaryTables
-
getCacheConcurrencyStrategy
-
addFilter
-
isIgnoreIdAnnotations
public boolean isIgnoreIdAnnotations() -
setIgnoreIdAnnotations
public void setIgnoreIdAnnotations(boolean ignoreIdAnnotations) -
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
-