Top Description Inners Fields Constructors Methods
org.hibernate.boot.model.source.internal.hbm

public Class ModelBinder

extends Object
Class Inheritance
Imports
java.util.ArrayList, .HashMap, .Iterator, .List, .Locale, .Map, .Objects, .Properties, org.hibernate.AssertionFailure, .EntityMode, .FetchMode, org.hibernate.boot.MappingException, org.hibernate.boot.jaxb.Origin, org.hibernate.boot.jaxb.hbm.spi.JaxbHbmNamedNativeQueryType, .JaxbHbmNamedQueryType, org.hibernate.boot.model.Caching, .IdentifierGeneratorDefinition, .TruthValue, .TypeDefinition, org.hibernate.boot.model.naming.EntityNaming, .Identifier, .ImplicitBasicColumnNameSource, .ImplicitCollectionTableNameSource, .ImplicitEntityNameSource, .ImplicitIdentifierColumnNameSource, .ImplicitIndexColumnNameSource, .ImplicitJoinColumnNameSource, .ImplicitMapKeyColumnNameSource, .ImplicitNamingStrategy, .ImplicitUniqueKeyNameSource, .ObjectNameNormalizer, org.hibernate.boot.model.relational.Database, .Namespace, org.hibernate.boot.model.source.internal.ImplicitColumnNamingSecondPass, org.hibernate.boot.model.source.spi.AnyMappingSource, .AttributePath, .AttributeRole, .AttributeSource, .CascadeStyleSource, .CollectionIdSource, .ColumnSource, .CompositeIdentifierSource, .EmbeddableSource, .EntitySource, .FilterSource, .HibernateTypeSource, .IdentifiableTypeSource, .IdentifierSourceAggregatedComposite, .IdentifierSourceNonAggregatedComposite, .IdentifierSourceSimple, .InLineViewSource, .LocalMetadataBuildingContext, .NaturalIdMutability, .Orderable, .PluralAttributeElementSourceBasic, .PluralAttributeElementSourceEmbedded, .PluralAttributeElementSourceManyToAny, .PluralAttributeElementSourceManyToMany, .PluralAttributeElementSourceOneToMany, .PluralAttributeKeySource, .PluralAttributeMapKeyManyToAnySource, .PluralAttributeMapKeyManyToManySource, .PluralAttributeMapKeySourceBasic, .PluralAttributeMapKeySourceEmbedded, .PluralAttributeSequentialIndexSource, .PluralAttributeSource, .PluralAttributeSourceArray, .RelationalValueSource, .RelationalValueSourceContainer, .SecondaryTableSource, .SingularAttributeSource, .SingularAttributeSourceAny, .SingularAttributeSourceBasic, .SingularAttributeSourceEmbedded, .SingularAttributeSourceManyToOne, .SingularAttributeSourceOneToOne, .Sortable, .TableSource, .TableSpecificationSource, .VersionAttributeSource, org.hibernate.boot.registry.classloading.spi.ClassLoadingException, org.hibernate.boot.spi.InFlightMetadataCollector, .InFlightMetadataCollector.EntityTableXref, .MetadataBuildingContext, .NaturalIdUniqueKeyBinder, org.hibernate.cfg.AvailableSettings, .FkSecondPass, .SecondPass, org.hibernate.engine.FetchStyle, .FetchTiming, org.hibernate.engine.config.spi.ConfigurationService, org.hibernate.engine.jdbc.env.spi.JdbcEnvironment, org.hibernate.engine.spi.FilterDefinition, org.hibernate.id.PersistentIdentifierGenerator, org.hibernate.internal.CoreLogging, .CoreMessageLogger, org.hibernate.internal.log.DeprecationLogger, org.hibernate.internal.util.StringHelper, org.hibernate.internal.util.collections.CollectionHelper, org.hibernate.internal.util.config.ConfigurationHelper, org.hibernate.loader.PropertyPath, org.hibernate.mapping.Any, .Array, .AttributeContainer, .Backref, .Bag, .Collection, .Column, .Component, .DenormalizedTable, .DependantValue, .IdentifierBag, .IdentifierCollection, .IndexBackref, .IndexedCollection, .Join, .JoinedSubclass, .KeyValue, .ManyToOne, .OneToMany, .OneToOne, .PersistentClass, .PrimitiveArray, .Property, .RootClass, .Selectable, .Set, .SimpleValue, .SingleTableSubclass, .SyntheticProperty, .Table, .UnionSubclass, .UniqueKey, .Value, org.hibernate.tuple.GeneratedValueGeneration, .GenerationTiming, org.hibernate.type.AbstractSingleColumnStandardBasicType, .BasicType, .BlobType, .ClobType, .DiscriminatorType, .ForeignKeyDirection, .NClobType, .TypeResolver

Responsible for coordinating the binding of all information inside entity tags (<class/>, etc).
Author
Steve Ebersole

Nested and Inner Type Summary

Modifier and TypeClass and Description
private abstract class
public static class
private class
private static class
private static class
private class
private class
private class
private class
private class
private class
private class
private static class

Field Summary

Modifier and TypeField and Description
private final Database
private static final String
private final ImplicitNamingStrategy
private static final CoreMessageLogger
private final MetadataBuildingContext
private final ObjectNameNormalizer
private final RelationalObjectBinder

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private void
applyCaching(MappingDocument mappingDocument, Caching caching, RootClass rootEntityDescriptor)

private void
applyCaching(MappingDocument mappingDocument, Caching caching, Collection collection)

private void
bindAggregatedCompositeEntityIdentifier(MappingDocument mappingDocument, EntityHierarchySourceImpl hierarchySource, RootClass rootEntityDescriptor)

private void
bindAllCompositeAttributes(MappingDocument sourceDocument, EmbeddableSource embeddableSource, Component component)

private void
bindAllEntityAttributes(MappingDocument mappingDocument, EntitySource entitySource, PersistentClass entityDescriptor)

private void
bindAny(MappingDocument sourceDocument, final AnyMappingSource anyMapping, Any anyBinding, final AttributeRole attributeRole, AttributePath attributePath)

private void
bindBasicEntityValues(MappingDocument sourceDocument, AbstractEntitySourceImpl entitySource, PersistentClass entityDescriptor)

private void
private void
bindComponent(MappingDocument sourceDocument, EmbeddableSource embeddableSource, Component component, String containingClassName, String propertyName, String xmlNodeName, boolean isVirtual)

private void
bindComponent(MappingDocument sourceDocument, String role, EmbeddableSource embeddableSource, Component componentBinding, String explicitComponentClassName, String containingClassName, String propertyName, boolean isVirtual, boolean isDynamic, String xmlNodeName)

private static void
bindCustomSql(MappingDocument sourceDocument, EntitySource entitySource, PersistentClass entityDescriptor)

private static void
bindCustomSql(MappingDocument sourceDocument, SecondaryTableSource secondaryTableSource, Join secondaryTable)

private void
private void
private void
bindEntityDiscriminator(MappingDocument sourceDocument, final EntityHierarchySourceImpl hierarchySource, RootClass rootEntityDescriptor)

public void
private void
bindEntityIdentifier(MappingDocument mappingDocument, EntityHierarchySourceImpl hierarchySource, RootClass rootEntityDescriptor)

private Table
bindEntityTableSpecification(final MappingDocument mappingDocument, TableSpecificationSource tableSpecSource, Table denormalizedSuperTable, final EntitySource entitySource, PersistentClass entityDescriptor)

Deprecated as a consequence of Table being deprecated.
private void
bindEntityVersion(MappingDocument sourceDocument, EntityHierarchySourceImpl hierarchySource, RootClass rootEntityDescriptor)

private void
private void
public void
bindListOrArrayIndex(MappingDocument mappingDocument, final IndexedPluralAttributeSource attributeSource, List collectionBinding)

private void
bindManyToOneAttribute(final MappingDocument sourceDocument, final SingularAttributeSourceManyToOne manyToOneSource, ManyToOne manyToOneBinding, String referencedEntityName)

private void
bindMapKey(final MappingDocument mappingDocument, final IndexedPluralAttributeSource pluralAttributeSource, final Map collectionBinding)

private void
public void
bindOneToOne(final MappingDocument sourceDocument, final SingularAttributeSourceOneToOne oneToOneSource, final OneToOne oneToOneBinding)

private void
bindProperty(MappingDocument mappingDocument, AttributeSource propertySource, Property property)

private void
bindRootEntity(EntityHierarchySourceImpl hierarchySource, RootClass rootEntityDescriptor)

private void
bindSecondaryTable(MappingDocument mappingDocument, SecondaryTableSource secondaryTableSource, Join secondaryTableJoin, final InFlightMetadataCollector.EntityTableXref entityTableXref)

private void
bindSimpleEntityIdentifier(MappingDocument sourceDocument, final EntityHierarchySourceImpl hierarchySource, RootClass rootEntityDescriptor)

private static void
bindSimpleValueType(MappingDocument mappingDocument, HibernateTypeSource typeSource, SimpleValue simpleValue)

private void
bindUnionSubclassEntities(EntitySource entitySource, PersistentClass superEntityDescriptor)

private void
private Property
createAnyAssociationAttribute(MappingDocument sourceDocument, SingularAttributeSourceAny anyMapping, Any anyBinding, String entityName)

private Property
createBasicAttribute(MappingDocument sourceDocument, final SingularAttributeSourceBasic attributeSource, SimpleValue value, String containingClassName)

private Property
createEmbeddedAttribute(MappingDocument sourceDocument, SingularAttributeSourceEmbedded embeddedSource, Component componentBinding, String containingClassName)

private void
createIndexBackRef(MappingDocument mappingDocument, IndexedPluralAttributeSource pluralAttributeSource, IndexedCollection collectionBinding)

private Property
createManyToOneAttribute(MappingDocument sourceDocument, SingularAttributeSourceManyToOne manyToOneSource, ManyToOne manyToOneBinding, String containingClassName)

private Property
createOneToOneAttribute(MappingDocument sourceDocument, SingularAttributeSourceOneToOne oneToOneSource, OneToOne oneToOneBinding, String containingClassName)

private Property
createPluralAttribute(MappingDocument sourceDocument, PluralAttributeSource attributeSource, PersistentClass entityDescriptor)

private Identifier
private Identifier
private Identifier
determineTable(MappingDocument sourceDocument, String attributeName, RelationalValueSourceContainer relationalValueSourceContainer)

private Identifier
determineTable(MappingDocument mappingDocument, SingularAttributeSourceEmbedded embeddedAttributeSource)

private Identifier
determineTable(MappingDocument mappingDocument, String attributeName, List<RelationalValueSource> relationalValueSources)

private String
private String
private String
private void
finishBindingCompositeIdentifier(MappingDocument sourceDocument, RootClass rootEntityDescriptor, CompositeIdentifierSource identifierSource, Component cid, String propertyName)

public void
private void
handleNaturalIdBinding(MappingDocument mappingDocument, PersistentClass entityBinding, Property attributeBinding, NaturalIdMutability naturalIdMutability)

private void
handlePropertyReference(MappingDocument mappingDocument, String referencedEntityName, String referencedPropertyName, boolean isUnique, String sourceElementSynopsis)

private static boolean
isLob(Integer sqlType, String sqlTypeName)

private void
makeIdentifier(final MappingDocument sourceDocument, IdentifierGeneratorDefinition generator, String unsavedValue, SimpleValue identifierValue)

public static ModelBinder
private void
prepareComponentType(MappingDocument sourceDocument, String fullRole, Component componentBinding, String explicitComponentClassName, String containingClassName, String propertyName, boolean isVirtual, boolean isDynamic)

private void
prepareValueTypeViaReflection(MappingDocument sourceDocument, Value value, String containingClassName, String propertyName, AttributeRole attributeRole)

private void
private void
private void
resolveLob(final SingularAttributeSourceBasic attributeSource, SimpleValue value)

private static ModelBinder.TypeResolution
resolveType(MappingDocument sourceDocument, HibernateTypeSource typeSource)

private boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait