public class InFlightMetadataCollectorImpl extends java.lang.Object implements InFlightMetadataCollector
buildMetadataInstance(org.hibernate.boot.spi.MetadataBuildingContext)
is called to generate
the complete (and immutable) Metadata object.InFlightMetadataCollector.DelayedPropertyReferenceHandler, InFlightMetadataCollector.DuplicateSecondaryTableException, InFlightMetadataCollector.EntityTableXref
Constructor and Description |
---|
InFlightMetadataCollectorImpl(MetadataBuildingOptions options,
TypeResolver typeResolver) |
Modifier and Type | Method and Description |
---|---|
void |
addAnyMetaDef(AnyMetaDef defAnn) |
void |
addAttributeConverter(AttributeConverterDefinition definition) |
void |
addAttributeConverter(java.lang.Class<? extends javax.persistence.AttributeConverter> converterClass) |
void |
addAuxiliaryDatabaseObject(AuxiliaryDatabaseObject auxiliaryDatabaseObject)
Add metadata pertaining to an auxiliary database object to this repository.
|
AnnotatedClassType |
addClassType(org.hibernate.annotations.common.reflection.XClass clazz) |
void |
addCollectionBinding(Collection collection)
Add collection mapping metadata to this repository.
|
void |
addColumnNameBinding(Table table,
Identifier logicalName,
Column column) |
void |
addColumnNameBinding(Table table,
java.lang.String logicalName,
Column column) |
void |
addDefaultIdentifierGenerator(IdentifierGeneratorDefinition generator) |
void |
addDefaultNamedNativeQuery(NamedSQLQueryDefinition query) |
void |
addDefaultNamedProcedureCallDefinition(NamedProcedureCallDefinition definition) |
void |
addDefaultQuery(NamedQueryDefinition queryDefinition) |
void |
addDefaultResultSetMapping(ResultSetMappingDefinition definition) |
void |
addDelayedPropertyReferenceHandler(InFlightMetadataCollector.DelayedPropertyReferenceHandler handler) |
Table |
addDenormalizedTable(java.lang.String schemaName,
java.lang.String catalogName,
java.lang.String name,
boolean isAbstract,
java.lang.String subselectFragment,
Table includedTable)
Adds a 'denormalized table' to this repository.
|
void |
addEntityBinding(PersistentClass persistentClass)
Add the PersistentClass for an entity mapping.
|
InFlightMetadataCollector.EntityTableXref |
addEntityTableXref(java.lang.String entityName,
Identifier primaryTableLogicalName,
Table primaryTable,
InFlightMetadataCollector.EntityTableXref superEntityTableXref) |
void |
addFetchProfile(FetchProfile profile) |
void |
addFilterDefinition(FilterDefinition filterDefinition)
Adds a filter definition to this repository.
|
void |
addIdentifierGenerator(IdentifierGeneratorDefinition generator) |
void |
addImport(java.lang.String importName,
java.lang.String entityName)
Adds an import (HQL entity rename).
|
void |
addJpaIndexHolders(Table table,
java.util.List<JPAIndexHolder> holders) |
void |
addMappedBy(java.lang.String entityName,
java.lang.String propertyName,
java.lang.String inversePropertyName) |
void |
addMappedSuperclass(java.lang.Class type,
MappedSuperclass mappedSuperclass) |
void |
addNamedEntityGraph(NamedEntityGraphDefinition definition)
Adds metadata for a named entity graph to this repository
|
void |
addNamedNativeQuery(NamedSQLQueryDefinition def)
Adds metadata for a named SQL query to this repository.
|
void |
addNamedProcedureCallDefinition(NamedProcedureCallDefinition definition)
Adds metadata for a named stored procedure call to this repository.
|
void |
addNamedQuery(NamedQueryDefinition def)
Adds metadata for a named query to this repository.
|
void |
addPropertyAnnotatedWithMapsId(org.hibernate.annotations.common.reflection.XClass entityType,
PropertyData property) |
void |
addPropertyAnnotatedWithMapsIdSpecj(org.hibernate.annotations.common.reflection.XClass entityType,
PropertyData property,
java.lang.String mapsIdValue) |
void |
addPropertyReference(java.lang.String referencedClass,
java.lang.String propertyName) |
void |
addPropertyReferencedAssociation(java.lang.String entityName,
java.lang.String propertyName,
java.lang.String propertyRef) |
void |
addResultSetMapping(ResultSetMappingDefinition resultSetMappingDefinition)
Adds the metadata for a named SQL result set mapping to this repository.
|
void |
addSecondPass(SecondPass secondPass) |
void |
addSecondPass(SecondPass secondPass,
boolean onTopOfTheQueue) |
Table |
addTable(java.lang.String schemaName,
java.lang.String catalogName,
java.lang.String name,
java.lang.String subselectFragment,
boolean isAbstract)
Adds table metadata to this repository returning the created
metadata instance.
|
void |
addTableNameBinding(Identifier logicalName,
Table table) |
void |
addTableNameBinding(java.lang.String schema,
java.lang.String catalog,
java.lang.String logicalName,
java.lang.String realTableName,
Table denormalizedSuperTable) |
void |
addToOneAndIdProperty(org.hibernate.annotations.common.reflection.XClass entityType,
PropertyData property) |
void |
addTypeDefinition(TypeDefinition typeDefinition)
Adds a type definition to this metadata repository.
|
void |
addUniqueConstraintHolders(Table table,
java.util.List<UniqueConstraintHolder> uniqueConstraintHolders) |
void |
addUniqueConstraints(Table table,
java.util.List uniqueConstraints) |
void |
addUniquePropertyReference(java.lang.String referencedClass,
java.lang.String propertyName) |
void |
applyResultSetMapping(ResultSetMappingDefinition resultSetMappingDefinition) |
MetadataImpl |
buildMetadataInstance(MetadataBuildingContext buildingContext)
Builds the complete and immutable Metadata instance from the collected info.
|
NamedQueryRepository |
buildNamedQueryRepository(SessionFactoryImpl sessionFactory) |
SessionFactory |
buildSessionFactory()
Short-hand form of building a
SessionFactory through the builder without any additional
option overrides. |
java.util.Collection<Table> |
collectTableMappings() |
AnyMetaDef |
getAnyMetaDef(java.lang.String name) |
AttributeConverterAutoApplyHandler |
getAttributeConverterAutoApplyHandler() |
ClassmateContext |
getClassmateContext() |
AnnotatedClassType |
getClassType(org.hibernate.annotations.common.reflection.XClass clazz) |
Collection |
getCollectionBinding(java.lang.String role)
Retrieves the collection mapping metadata for the given collection role.
|
java.util.Collection<Collection> |
getCollectionBindings()
Retrieves the Collection metadata representation for known all collections.
|
Database |
getDatabase()
Retrieve the database model.
|
PersistentClass |
getEntityBinding(java.lang.String entityName)
Retrieves the PersistentClass entity mapping metadata representation for
the given entity name.
|
java.util.Map<java.lang.String,PersistentClass> |
getEntityBindingMap()
Needed for SecondPass handling
|
java.util.Collection<PersistentClass> |
getEntityBindings()
Retrieves the PersistentClass entity metadata representation for known all entities.
|
InFlightMetadataCollector.EntityTableXref |
getEntityTableXref(java.lang.String entityName) |
FetchProfile |
getFetchProfile(java.lang.String name) |
java.util.Collection<FetchProfile> |
getFetchProfiles() |
FilterDefinition |
getFilterDefinition(java.lang.String name)
Retrieves a filter definition by name.
|
java.util.Map<java.lang.String,FilterDefinition> |
getFilterDefinitions()
Retrieves the complete map of filter definitions.
|
java.lang.String |
getFromMappedBy(java.lang.String entityName,
java.lang.String propertyName) |
IdentifierGeneratorDefinition |
getIdentifierGenerator(java.lang.String name) |
IdentifierGeneratorFactory |
getIdentifierGeneratorFactory()
Allow access to the id generator factory, though this is only needed/allowed from configuration.
|
java.lang.String |
getIdentifierPropertyName(java.lang.String entityName) |
Type |
getIdentifierType(java.lang.String entityName) |
java.util.Map<java.lang.String,java.lang.String> |
getImports()
Retrieves all defined imports (class renames).
|
java.util.Map<java.lang.String,Join> |
getJoins(java.lang.String entityName) |
java.lang.String |
getLogicalColumnName(Table table,
Identifier physicalName) |
java.lang.String |
getLogicalColumnName(Table table,
java.lang.String physicalName) |
java.lang.String |
getLogicalTableName(Table ownerTable) |
MappedSuperclass |
getMappedSuperclass(java.lang.Class type) |
java.util.Set<MappedSuperclass> |
getMappedSuperclassMappingsCopy() |
MetadataBuildingOptions |
getMetadataBuildingOptions()
Access to the options used to build this Metadata
|
NamedEntityGraphDefinition |
getNamedEntityGraph(java.lang.String name) |
java.util.Map<java.lang.String,NamedEntityGraphDefinition> |
getNamedEntityGraphs() |
NamedSQLQueryDefinition |
getNamedNativeQueryDefinition(java.lang.String name)
Retrieve named SQL query metadata.
|
java.util.Collection<NamedSQLQueryDefinition> |
getNamedNativeQueryDefinitions() |
java.util.Collection<NamedProcedureCallDefinition> |
getNamedProcedureCallDefinitions() |
NamedQueryDefinition |
getNamedQueryDefinition(java.lang.String name)
Retrieve named query metadata by name.
|
java.util.Collection<NamedQueryDefinition> |
getNamedQueryDefinitions() |
java.lang.String |
getPhysicalColumnName(Table table,
Identifier logicalName) |
java.lang.String |
getPhysicalColumnName(Table table,
java.lang.String logicalName) |
java.lang.String |
getPhysicalTableName(Identifier logicalName) |
java.lang.String |
getPhysicalTableName(java.lang.String logicalName) |
PropertyData |
getPropertyAnnotatedWithIdAndToOne(org.hibernate.annotations.common.reflection.XClass entityType,
java.lang.String propertyName) |
PropertyData |
getPropertyAnnotatedWithMapsId(org.hibernate.annotations.common.reflection.XClass entityType,
java.lang.String propertyName) |
java.lang.String |
getPropertyReferencedAssociation(java.lang.String entityName,
java.lang.String propertyName) |
Type |
getReferencedPropertyType(java.lang.String entityName,
java.lang.String propertyName) |
ResultSetMappingDefinition |
getResultSetMapping(java.lang.String name)
Retrieve the metadata for a named SQL result set mapping.
|
java.util.Map<java.lang.String,ResultSetMappingDefinition> |
getResultSetMappingDefinitions() |
SessionFactoryBuilder |
getSessionFactoryBuilder()
Get the builder for
SessionFactory instances based on this metamodel, |
java.util.Map<java.lang.String,SQLFunction> |
getSqlFunctionMap() |
TypeDefinition |
getTypeDefinition(java.lang.String registrationKey)
Retrieve a type definition by name.
|
TypeResolver |
getTypeResolver() |
java.util.UUID |
getUUID()
Gets the
UUID for this metamodel. |
boolean |
isInSecondPass() |
NaturalIdUniqueKeyBinder |
locateNaturalIdUniqueKeyBinder(java.lang.String entityName) |
void |
processSecondPasses(MetadataBuildingContext buildingContext)
Ugh! But we need this done before we ask Envers to produce its entities.
|
void |
registerNaturalIdUniqueKeyBinder(java.lang.String entityName,
NaturalIdUniqueKeyBinder ukBinder) |
protected void |
secondPassCompileForeignKeys(Table table,
java.util.Set<ForeignKey> done,
MetadataBuildingContext buildingContext) |
void |
validate() |
public InFlightMetadataCollectorImpl(MetadataBuildingOptions options, TypeResolver typeResolver)
public java.util.UUID getUUID()
Metadata
UUID
for this metamodel.public MetadataBuildingOptions getMetadataBuildingOptions()
MetadataImplementor
getMetadataBuildingOptions
in interface MetadataImplementor
public TypeResolver getTypeResolver()
getTypeResolver
in interface InFlightMetadataCollector
getTypeResolver
in interface MetadataImplementor
public Database getDatabase()
Metadata
getDatabase
in interface Metadata
getDatabase
in interface InFlightMetadataCollector
public NamedQueryRepository buildNamedQueryRepository(SessionFactoryImpl sessionFactory)
buildNamedQueryRepository
in interface MetadataImplementor
public java.util.Map<java.lang.String,SQLFunction> getSqlFunctionMap()
getSqlFunctionMap
in interface Metadata
public void validate() throws MappingException
validate
in interface MetadataImplementor
MappingException
public java.util.Set<MappedSuperclass> getMappedSuperclassMappingsCopy()
getMappedSuperclassMappingsCopy
in interface MetadataImplementor
public IdentifierGeneratorFactory getIdentifierGeneratorFactory()
Mapping
getIdentifierGeneratorFactory
in interface Mapping
public SessionFactoryBuilder getSessionFactoryBuilder()
Metadata
SessionFactory
instances based on this metamodel,getSessionFactoryBuilder
in interface Metadata
SessionFactory
instances.public SessionFactory buildSessionFactory()
Metadata
SessionFactory
through the builder without any additional
option overrides.buildSessionFactory
in interface Metadata
public java.util.Collection<PersistentClass> getEntityBindings()
Metadata
getEntityBindings
in interface Metadata
public java.util.Map<java.lang.String,PersistentClass> getEntityBindingMap()
InFlightMetadataCollector
getEntityBindingMap
in interface InFlightMetadataCollector
public PersistentClass getEntityBinding(java.lang.String entityName)
Metadata
getEntityBinding
in interface Metadata
entityName
- The entity name for which to retrieve the metadata.null
if no matching entity found.public void addEntityBinding(PersistentClass persistentClass) throws DuplicateMappingException
InFlightMetadataCollector
addEntityBinding
in interface InFlightMetadataCollector
persistentClass
- The entity metadataDuplicateMappingException
- Indicates there was already an entry
corresponding to the given entity name.public java.util.Collection<Collection> getCollectionBindings()
Metadata
getCollectionBindings
in interface Metadata
public Collection getCollectionBinding(java.lang.String role)
Metadata
getCollectionBinding
in interface Metadata
role
- The collection role for which to retrieve the metadata.null
if no matching collection found.public void addCollectionBinding(Collection collection) throws DuplicateMappingException
InFlightMetadataCollector
addCollectionBinding
in interface InFlightMetadataCollector
collection
- The collection metadataDuplicateMappingException
- Indicates there was already an entry
corresponding to the given collection rolepublic TypeDefinition getTypeDefinition(java.lang.String registrationKey)
Metadata
getTypeDefinition
in interface Metadata
registrationKey
- The name of the type definition to retrieve.null
public void addTypeDefinition(TypeDefinition typeDefinition)
InFlightMetadataCollector
addTypeDefinition
in interface InFlightMetadataCollector
typeDefinition
- The named type definition to add.public ClassmateContext getClassmateContext()
getClassmateContext
in interface InFlightMetadataCollector
public void addAttributeConverter(AttributeConverterDefinition definition)
addAttributeConverter
in interface InFlightMetadataCollector
public void addAttributeConverter(java.lang.Class<? extends javax.persistence.AttributeConverter> converterClass)
addAttributeConverter
in interface InFlightMetadataCollector
public AttributeConverterAutoApplyHandler getAttributeConverterAutoApplyHandler()
getAttributeConverterAutoApplyHandler
in interface InFlightMetadataCollector
public java.util.Map<java.lang.String,FilterDefinition> getFilterDefinitions()
Metadata
getFilterDefinitions
in interface Metadata
public FilterDefinition getFilterDefinition(java.lang.String name)
Metadata
getFilterDefinition
in interface Metadata
name
- The name of the filter definition to retrieve
.null
.public void addFilterDefinition(FilterDefinition filterDefinition)
InFlightMetadataCollector
addFilterDefinition
in interface InFlightMetadataCollector
filterDefinition
- The filter definition to add.public java.util.Collection<FetchProfile> getFetchProfiles()
getFetchProfiles
in interface Metadata
public FetchProfile getFetchProfile(java.lang.String name)
getFetchProfile
in interface Metadata
public void addFetchProfile(FetchProfile profile)
addFetchProfile
in interface InFlightMetadataCollector
public IdentifierGeneratorDefinition getIdentifierGenerator(java.lang.String name)
getIdentifierGenerator
in interface Metadata
public java.util.Collection<Table> collectTableMappings()
collectTableMappings
in interface Metadata
public void addIdentifierGenerator(IdentifierGeneratorDefinition generator)
addIdentifierGenerator
in interface InFlightMetadataCollector
public void addDefaultIdentifierGenerator(IdentifierGeneratorDefinition generator)
addDefaultIdentifierGenerator
in interface InFlightMetadataCollector
public NamedEntityGraphDefinition getNamedEntityGraph(java.lang.String name)
getNamedEntityGraph
in interface Metadata
public java.util.Map<java.lang.String,NamedEntityGraphDefinition> getNamedEntityGraphs()
getNamedEntityGraphs
in interface Metadata
public void addNamedEntityGraph(NamedEntityGraphDefinition definition)
InFlightMetadataCollector
addNamedEntityGraph
in interface InFlightMetadataCollector
definition
- The procedure call informationpublic NamedQueryDefinition getNamedQueryDefinition(java.lang.String name)
Metadata
getNamedQueryDefinition
in interface Metadata
name
- The query namenull
.public java.util.Collection<NamedQueryDefinition> getNamedQueryDefinitions()
getNamedQueryDefinitions
in interface Metadata
public void addNamedQuery(NamedQueryDefinition def)
InFlightMetadataCollector
addNamedQuery
in interface InFlightMetadataCollector
def
- The metadatapublic void addDefaultQuery(NamedQueryDefinition queryDefinition)
addDefaultQuery
in interface InFlightMetadataCollector
public NamedSQLQueryDefinition getNamedNativeQueryDefinition(java.lang.String name)
Metadata
getNamedNativeQueryDefinition
in interface Metadata
name
- The SQL query name.null
public java.util.Collection<NamedSQLQueryDefinition> getNamedNativeQueryDefinitions()
getNamedNativeQueryDefinitions
in interface Metadata
public void addNamedNativeQuery(NamedSQLQueryDefinition def)
InFlightMetadataCollector
addNamedNativeQuery
in interface InFlightMetadataCollector
def
- The metadatapublic void addDefaultNamedNativeQuery(NamedSQLQueryDefinition query)
addDefaultNamedNativeQuery
in interface InFlightMetadataCollector
public java.util.Collection<NamedProcedureCallDefinition> getNamedProcedureCallDefinitions()
getNamedProcedureCallDefinitions
in interface Metadata
public void addNamedProcedureCallDefinition(NamedProcedureCallDefinition definition)
InFlightMetadataCollector
addNamedProcedureCallDefinition
in interface InFlightMetadataCollector
definition
- The procedure call informationpublic void addDefaultNamedProcedureCallDefinition(NamedProcedureCallDefinition definition)
addDefaultNamedProcedureCallDefinition
in interface InFlightMetadataCollector
public java.util.Map<java.lang.String,ResultSetMappingDefinition> getResultSetMappingDefinitions()
getResultSetMappingDefinitions
in interface Metadata
public ResultSetMappingDefinition getResultSetMapping(java.lang.String name)
Metadata
getResultSetMapping
in interface Metadata
name
- The mapping name.null
if none found.public void addResultSetMapping(ResultSetMappingDefinition resultSetMappingDefinition)
InFlightMetadataCollector
addResultSetMapping
in interface InFlightMetadataCollector
resultSetMappingDefinition
- The metadatapublic void applyResultSetMapping(ResultSetMappingDefinition resultSetMappingDefinition)
public void addDefaultResultSetMapping(ResultSetMappingDefinition definition)
addDefaultResultSetMapping
in interface InFlightMetadataCollector
public java.util.Map<java.lang.String,java.lang.String> getImports()
Metadata
getImports
in interface Metadata
public void addImport(java.lang.String importName, java.lang.String entityName)
InFlightMetadataCollector
addImport
in interface InFlightMetadataCollector
importName
- The entity name being renamed.entityName
- The renamepublic Table addTable(java.lang.String schemaName, java.lang.String catalogName, java.lang.String name, java.lang.String subselectFragment, boolean isAbstract)
InFlightMetadataCollector
addTable
in interface InFlightMetadataCollector
schemaName
- The named schema in which the table belongs (or null).catalogName
- The named catalog in which the table belongs (or null).name
- The table namesubselectFragment
- A select statement which defines a logical table, much
like a DB view.isAbstract
- Is the table abstract (i.e. not really existing in the DB)?public Table addDenormalizedTable(java.lang.String schemaName, java.lang.String catalogName, java.lang.String name, boolean isAbstract, java.lang.String subselectFragment, Table includedTable) throws DuplicateMappingException
InFlightMetadataCollector
addDenormalizedTable
in interface InFlightMetadataCollector
schemaName
- The named schema in which the table belongs (or null).catalogName
- The named catalog in which the table belongs (or null).name
- The table nameisAbstract
- Is the table abstract (i.e. not really existing in the DB)?subselectFragment
- A select statement which defines a logical table, much
like a DB view.includedTable
- ???DuplicateMappingException
- If such a table mapping already exists.public Type getIdentifierType(java.lang.String entityName) throws MappingException
getIdentifierType
in interface Mapping
MappingException
public java.lang.String getIdentifierPropertyName(java.lang.String entityName) throws MappingException
getIdentifierPropertyName
in interface Mapping
MappingException
public Type getReferencedPropertyType(java.lang.String entityName, java.lang.String propertyName) throws MappingException
getReferencedPropertyType
in interface Mapping
MappingException
public void addTableNameBinding(Identifier logicalName, Table table)
addTableNameBinding
in interface InFlightMetadataCollector
public void addTableNameBinding(java.lang.String schema, java.lang.String catalog, java.lang.String logicalName, java.lang.String realTableName, Table denormalizedSuperTable)
addTableNameBinding
in interface InFlightMetadataCollector
public java.lang.String getLogicalTableName(Table ownerTable)
getLogicalTableName
in interface InFlightMetadataCollector
public java.lang.String getPhysicalTableName(Identifier logicalName)
getPhysicalTableName
in interface InFlightMetadataCollector
public java.lang.String getPhysicalTableName(java.lang.String logicalName)
getPhysicalTableName
in interface InFlightMetadataCollector
public void addColumnNameBinding(Table table, java.lang.String logicalName, Column column) throws DuplicateMappingException
addColumnNameBinding
in interface InFlightMetadataCollector
DuplicateMappingException
public void addColumnNameBinding(Table table, Identifier logicalName, Column column) throws DuplicateMappingException
addColumnNameBinding
in interface InFlightMetadataCollector
DuplicateMappingException
public java.lang.String getPhysicalColumnName(Table table, java.lang.String logicalName) throws MappingException
getPhysicalColumnName
in interface InFlightMetadataCollector
MappingException
public java.lang.String getPhysicalColumnName(Table table, Identifier logicalName) throws MappingException
getPhysicalColumnName
in interface InFlightMetadataCollector
MappingException
public java.lang.String getLogicalColumnName(Table table, java.lang.String physicalName) throws MappingException
getLogicalColumnName
in interface InFlightMetadataCollector
MappingException
public java.lang.String getLogicalColumnName(Table table, Identifier physicalName) throws MappingException
getLogicalColumnName
in interface InFlightMetadataCollector
MappingException
public void addAuxiliaryDatabaseObject(AuxiliaryDatabaseObject auxiliaryDatabaseObject)
InFlightMetadataCollector
addAuxiliaryDatabaseObject
in interface InFlightMetadataCollector
auxiliaryDatabaseObject
- The metadata.public AnnotatedClassType getClassType(org.hibernate.annotations.common.reflection.XClass clazz)
getClassType
in interface InFlightMetadataCollector
public AnnotatedClassType addClassType(org.hibernate.annotations.common.reflection.XClass clazz)
addClassType
in interface InFlightMetadataCollector
public void addAnyMetaDef(AnyMetaDef defAnn)
addAnyMetaDef
in interface InFlightMetadataCollector
public AnyMetaDef getAnyMetaDef(java.lang.String name)
getAnyMetaDef
in interface InFlightMetadataCollector
public void addMappedSuperclass(java.lang.Class type, MappedSuperclass mappedSuperclass)
addMappedSuperclass
in interface InFlightMetadataCollector
public MappedSuperclass getMappedSuperclass(java.lang.Class type)
getMappedSuperclass
in interface InFlightMetadataCollector
public PropertyData getPropertyAnnotatedWithMapsId(org.hibernate.annotations.common.reflection.XClass entityType, java.lang.String propertyName)
getPropertyAnnotatedWithMapsId
in interface InFlightMetadataCollector
public void addPropertyAnnotatedWithMapsId(org.hibernate.annotations.common.reflection.XClass entityType, PropertyData property)
addPropertyAnnotatedWithMapsId
in interface InFlightMetadataCollector
public void addPropertyAnnotatedWithMapsIdSpecj(org.hibernate.annotations.common.reflection.XClass entityType, PropertyData property, java.lang.String mapsIdValue)
addPropertyAnnotatedWithMapsIdSpecj
in interface InFlightMetadataCollector
public PropertyData getPropertyAnnotatedWithIdAndToOne(org.hibernate.annotations.common.reflection.XClass entityType, java.lang.String propertyName)
getPropertyAnnotatedWithIdAndToOne
in interface InFlightMetadataCollector
public void addToOneAndIdProperty(org.hibernate.annotations.common.reflection.XClass entityType, PropertyData property)
addToOneAndIdProperty
in interface InFlightMetadataCollector
public void addMappedBy(java.lang.String entityName, java.lang.String propertyName, java.lang.String inversePropertyName)
addMappedBy
in interface InFlightMetadataCollector
public java.lang.String getFromMappedBy(java.lang.String entityName, java.lang.String propertyName)
getFromMappedBy
in interface InFlightMetadataCollector
public void addPropertyReferencedAssociation(java.lang.String entityName, java.lang.String propertyName, java.lang.String propertyRef)
addPropertyReferencedAssociation
in interface InFlightMetadataCollector
public java.lang.String getPropertyReferencedAssociation(java.lang.String entityName, java.lang.String propertyName)
getPropertyReferencedAssociation
in interface InFlightMetadataCollector
public void addPropertyReference(java.lang.String referencedClass, java.lang.String propertyName)
addPropertyReference
in interface InFlightMetadataCollector
public void addDelayedPropertyReferenceHandler(InFlightMetadataCollector.DelayedPropertyReferenceHandler handler)
addDelayedPropertyReferenceHandler
in interface InFlightMetadataCollector
public void addUniquePropertyReference(java.lang.String referencedClass, java.lang.String propertyName)
addUniquePropertyReference
in interface InFlightMetadataCollector
public void addUniqueConstraints(Table table, java.util.List uniqueConstraints)
addUniqueConstraints
in interface InFlightMetadataCollector
public void addUniqueConstraintHolders(Table table, java.util.List<UniqueConstraintHolder> uniqueConstraintHolders)
addUniqueConstraintHolders
in interface InFlightMetadataCollector
public void addJpaIndexHolders(Table table, java.util.List<JPAIndexHolder> holders)
addJpaIndexHolders
in interface InFlightMetadataCollector
public InFlightMetadataCollector.EntityTableXref getEntityTableXref(java.lang.String entityName)
getEntityTableXref
in interface InFlightMetadataCollector
public InFlightMetadataCollector.EntityTableXref addEntityTableXref(java.lang.String entityName, Identifier primaryTableLogicalName, Table primaryTable, InFlightMetadataCollector.EntityTableXref superEntityTableXref)
addEntityTableXref
in interface InFlightMetadataCollector
public java.util.Map<java.lang.String,Join> getJoins(java.lang.String entityName)
getJoins
in interface InFlightMetadataCollector
public void addSecondPass(SecondPass secondPass)
addSecondPass
in interface InFlightMetadataCollector
public void addSecondPass(SecondPass secondPass, boolean onTopOfTheQueue)
addSecondPass
in interface InFlightMetadataCollector
public void processSecondPasses(MetadataBuildingContext buildingContext)
protected void secondPassCompileForeignKeys(Table table, java.util.Set<ForeignKey> done, MetadataBuildingContext buildingContext) throws MappingException
MappingException
public NaturalIdUniqueKeyBinder locateNaturalIdUniqueKeyBinder(java.lang.String entityName)
locateNaturalIdUniqueKeyBinder
in interface InFlightMetadataCollector
public void registerNaturalIdUniqueKeyBinder(java.lang.String entityName, NaturalIdUniqueKeyBinder ukBinder)
registerNaturalIdUniqueKeyBinder
in interface InFlightMetadataCollector
public boolean isInSecondPass()
isInSecondPass
in interface InFlightMetadataCollector
public MetadataImpl buildMetadataInstance(MetadataBuildingContext buildingContext)
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.