类 InFlightMetadataCollectorImpl
- java.lang.Object
-
- org.hibernate.boot.internal.InFlightMetadataCollectorImpl
-
- 所有已实现的接口:
Metadata,InFlightMetadataCollector,MetadataImplementor,Mapping
public class InFlightMetadataCollectorImpl extends Object implements InFlightMetadataCollector
The implementation of the in-flight Metadata collector contract. The usage expectation is that this class is used until all Metadata info is collected and thenbuildMetadataInstance(org.hibernate.boot.spi.MetadataBuildingContext)is called to generate the complete (and immutable) Metadata object.- 作者:
- Steve Ebersole
-
-
构造器概要
构造器 构造器 说明 InFlightMetadataCollectorImpl(BootstrapContext bootstrapContext, MetadataBuildingOptions options)
-
方法概要
所有方法 实例方法 具体方法 已过时的方法 修饰符和类型 方法 说明 voidaddAnyMetaDef(AnyMetaDef defAnn)voidaddAttributeConverter(Class<? extends javax.persistence.AttributeConverter> converterClass)voidaddAttributeConverter(ConverterDescriptor descriptor)voidaddAuxiliaryDatabaseObject(AuxiliaryDatabaseObject auxiliaryDatabaseObject)Add metadata pertaining to an auxiliary database object to this repository.AnnotatedClassTypeaddClassType(org.hibernate.annotations.common.reflection.XClass clazz)voidaddCollectionBinding(Collection collection)Add collection mapping metadata to this repository.voidaddColumnNameBinding(Table table, String logicalName, Column column)voidaddColumnNameBinding(Table table, Identifier logicalName, Column column)voidaddDefaultIdentifierGenerator(IdentifierGeneratorDefinition generator)voidaddDefaultNamedNativeQuery(NamedSQLQueryDefinition query)voidaddDefaultNamedProcedureCallDefinition(NamedProcedureCallDefinition definition)voidaddDefaultQuery(NamedQueryDefinition queryDefinition)voidaddDefaultResultSetMapping(ResultSetMappingDefinition definition)voidaddDelayedPropertyReferenceHandler(InFlightMetadataCollector.DelayedPropertyReferenceHandler handler)TableaddDenormalizedTable(String schemaName, String catalogName, String name, boolean isAbstract, String subselectFragment, Table includedTable)Adds a 'denormalized table' to this repository.voidaddEntityBinding(PersistentClass persistentClass)Add the PersistentClass for an entity mapping.InFlightMetadataCollector.EntityTableXrefaddEntityTableXref(String entityName, Identifier primaryTableLogicalName, Table primaryTable, InFlightMetadataCollector.EntityTableXref superEntityTableXref)voidaddFetchProfile(FetchProfile profile)voidaddFilterDefinition(FilterDefinition filterDefinition)Adds a filter definition to this repository.voidaddIdentifierGenerator(IdentifierGeneratorDefinition generator)voidaddImport(String importName, String entityName)Adds an import (HQL entity rename).voidaddJpaIndexHolders(Table table, List<JPAIndexHolder> holders)voidaddMappedBy(String entityName, String propertyName, String inversePropertyName)voidaddMappedSuperclass(Class type, MappedSuperclass mappedSuperclass)voidaddNamedEntityGraph(NamedEntityGraphDefinition definition)Adds metadata for a named entity graph to this repositoryvoidaddNamedNativeQuery(NamedSQLQueryDefinition def)Adds metadata for a named SQL query to this repository.voidaddNamedProcedureCallDefinition(NamedProcedureCallDefinition definition)Adds metadata for a named stored procedure call to this repository.voidaddNamedQuery(NamedQueryDefinition def)Adds metadata for a named query to this repository.voidaddPropertyAnnotatedWithMapsId(org.hibernate.annotations.common.reflection.XClass entityType, PropertyData property)voidaddPropertyAnnotatedWithMapsIdSpecj(org.hibernate.annotations.common.reflection.XClass entityType, PropertyData property, String mapsIdValue)voidaddPropertyReference(String referencedClass, String propertyName)voidaddPropertyReferencedAssociation(String entityName, String propertyName, String propertyRef)voidaddResultSetMapping(ResultSetMappingDefinition resultSetMappingDefinition)Adds the metadata for a named SQL result set mapping to this repository.voidaddSecondPass(SecondPass secondPass)voidaddSecondPass(SecondPass secondPass, boolean onTopOfTheQueue)TableaddTable(String schemaName, String catalogName, String name, String subselectFragment, boolean isAbstract)Adds table metadata to this repository returning the created metadata instance.voidaddTableNameBinding(String schema, String catalog, String logicalName, String realTableName, Table denormalizedSuperTable)voidaddTableNameBinding(Identifier logicalName, Table table)voidaddToOneAndIdProperty(org.hibernate.annotations.common.reflection.XClass entityType, PropertyData property)voidaddTypeDefinition(TypeDefinition typeDefinition)Adds a type definition to this metadata repository.voidaddUniqueConstraintHolders(Table table, List<UniqueConstraintHolder> uniqueConstraintHolders)voidaddUniqueConstraints(Table table, List uniqueConstraints)voidaddUniquePropertyReference(String referencedClass, String propertyName)voidapplyResultSetMapping(ResultSetMappingDefinition resultSetMappingDefinition)MetadataImplbuildMetadataInstance(MetadataBuildingContext buildingContext)Builds the complete and immutable Metadata instance from the collected info.NamedQueryRepositorybuildNamedQueryRepository(SessionFactoryImpl sessionFactory)SessionFactorybuildSessionFactory()Short-hand form of building aSessionFactorythrough the builder without any additional option overrides.Collection<Table>collectTableMappings()AnyMetaDefgetAnyMetaDef(String name)ConverterAutoApplyHandlergetAttributeConverterAutoApplyHandler()BootstrapContextgetBootstrapContext()ClassmateContextgetClassmateContext()Access to the shared Classmate objects used throughout Hibernate's bootstrap process.AnnotatedClassTypegetClassType(org.hibernate.annotations.common.reflection.XClass clazz)CollectiongetCollectionBinding(String role)Retrieves the collection mapping metadata for the given collection role.Collection<Collection>getCollectionBindings()Retrieves the Collection metadata representation for all known collections.DatabasegetDatabase()Retrieve the database model.PersistentClassgetEntityBinding(String entityName)Retrieves the PersistentClass entity mapping metadata representation for the given entity name.Map<String,PersistentClass>getEntityBindingMap()Needed for SecondPass handlingCollection<PersistentClass>getEntityBindings()Retrieves the PersistentClass entity metadata representation for all known entities.InFlightMetadataCollector.EntityTableXrefgetEntityTableXref(String entityName)FetchProfilegetFetchProfile(String name)Collection<FetchProfile>getFetchProfiles()FilterDefinitiongetFilterDefinition(String name)Retrieves a filter definition by name.Map<String,FilterDefinition>getFilterDefinitions()Retrieves the complete map of filter definitions.StringgetFromMappedBy(String entityName, String propertyName)IdentifierGeneratorDefinitiongetIdentifierGenerator(String name)IdentifierGeneratorFactorygetIdentifierGeneratorFactory()Allow access to the id generator factory, though this is only needed/allowed from configuration.StringgetIdentifierPropertyName(String entityName)TypegetIdentifierType(String entityName)Map<String,String>getImports()Retrieves all defined imports (class renames).Map<String,Join>getJoins(String entityName)StringgetLogicalColumnName(Table table, String physicalName)StringgetLogicalColumnName(Table table, Identifier physicalName)StringgetLogicalTableName(Table ownerTable)MappedSuperclassgetMappedSuperclass(Class type)Set<MappedSuperclass>getMappedSuperclassMappingsCopy()MetadataBuildingOptionsgetMetadataBuildingOptions()Access to the options used to build this MetadataNamedEntityGraphDefinitiongetNamedEntityGraph(String name)Map<String,NamedEntityGraphDefinition>getNamedEntityGraphs()NamedSQLQueryDefinitiongetNamedNativeQueryDefinition(String name)Retrieve named SQL query metadata.Collection<NamedSQLQueryDefinition>getNamedNativeQueryDefinitions()Collection<NamedProcedureCallDefinition>getNamedProcedureCallDefinitions()NamedQueryDefinitiongetNamedQueryDefinition(String name)Retrieve named query metadata by name.Collection<NamedQueryDefinition>getNamedQueryDefinitions()StringgetPhysicalColumnName(Table table, String logicalName)StringgetPhysicalColumnName(Table table, Identifier logicalName)StringgetPhysicalTableName(String logicalName)StringgetPhysicalTableName(Identifier logicalName)PropertyDatagetPropertyAnnotatedWithIdAndToOne(org.hibernate.annotations.common.reflection.XClass entityType, String propertyName)PropertyDatagetPropertyAnnotatedWithMapsId(org.hibernate.annotations.common.reflection.XClass entityType, String propertyName)StringgetPropertyReferencedAssociation(String entityName, String propertyName)TypegetReferencedPropertyType(String entityName, String propertyName)ResultSetMappingDefinitiongetResultSetMapping(String name)Retrieve the metadata for a named SQL result set mapping.Map<String,ResultSetMappingDefinition>getResultSetMappingDefinitions()SessionFactoryBuildergetSessionFactoryBuilder()Get the builder forSessionFactoryinstances based on this metamodel.Map<String,SQLFunction>getSqlFunctionMap()TypeConfigurationgetTypeConfiguration()Access to the TypeConfigurationTypeDefinitiongetTypeDefinition(String registrationKey)Retrieve a type definition by name.TypeResolvergetTypeResolver()已过时。(since 5.3) No replacement, access to and handling of Types will be much different in 6.0UUIDgetUUID()Gets theUUIDfor this metamodel.voidinitSessionFactory(SessionFactoryImplementor sessionFactory)booleanisInSecondPass()NaturalIdUniqueKeyBinderlocateNaturalIdUniqueKeyBinder(String entityName)voidprocessSecondPasses(MetadataBuildingContext buildingContext)Ugh!voidregisterNaturalIdUniqueKeyBinder(String entityName, NaturalIdUniqueKeyBinder ukBinder)protected voidsecondPassCompileForeignKeys(Table table, Set<ForeignKey> done, MetadataBuildingContext buildingContext)voidvalidate()-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 org.hibernate.boot.spi.InFlightMetadataCollector
addAttributeConverter
-
-
-
-
构造器详细资料
-
InFlightMetadataCollectorImpl
public InFlightMetadataCollectorImpl(BootstrapContext bootstrapContext, MetadataBuildingOptions options)
-
-
方法详细资料
-
getMetadataBuildingOptions
public MetadataBuildingOptions getMetadataBuildingOptions()
从接口复制的说明:MetadataImplementorAccess to the options used to build this Metadata- 指定者:
getMetadataBuildingOptions在接口中MetadataImplementor- 返回:
- Access to the MetadataBuildingOptions
-
getBootstrapContext
public BootstrapContext getBootstrapContext()
- 指定者:
getBootstrapContext在接口中InFlightMetadataCollector
-
getTypeConfiguration
public TypeConfiguration getTypeConfiguration()
从接口复制的说明:MetadataImplementorAccess to the TypeConfiguration- 指定者:
getTypeConfiguration在接口中MetadataImplementor- 返回:
- Access to the TypeConfiguration
-
getTypeResolver
@Deprecated public TypeResolver getTypeResolver()
已过时。(since 5.3) No replacement, access to and handling of Types will be much different in 6.0Retrieve theTyperesolver associated with this factory.- 指定者:
getTypeResolver在接口中MetadataImplementor- 返回:
- The type resolver
-
getDatabase
public Database getDatabase()
从接口复制的说明:MetadataRetrieve the database model.- 指定者:
getDatabase在接口中Metadata- 返回:
- The database model.
-
buildNamedQueryRepository
public NamedQueryRepository buildNamedQueryRepository(SessionFactoryImpl sessionFactory)
- 指定者:
buildNamedQueryRepository在接口中MetadataImplementor
-
getSqlFunctionMap
public Map<String,SQLFunction> getSqlFunctionMap()
- 指定者:
getSqlFunctionMap在接口中Metadata
-
validate
public void validate() throws MappingException- 指定者:
validate在接口中MetadataImplementor- 抛出:
MappingException
-
getMappedSuperclassMappingsCopy
public Set<MappedSuperclass> getMappedSuperclassMappingsCopy()
-
initSessionFactory
public void initSessionFactory(SessionFactoryImplementor sessionFactory)
- 指定者:
initSessionFactory在接口中MetadataImplementor
-
getIdentifierGeneratorFactory
public IdentifierGeneratorFactory getIdentifierGeneratorFactory()
从接口复制的说明:MappingAllow access to the id generator factory, though this is only needed/allowed from configuration.- 指定者:
getIdentifierGeneratorFactory在接口中Mapping- 返回:
- Access to the identifier generator factory
-
getSessionFactoryBuilder
public SessionFactoryBuilder getSessionFactoryBuilder()
从接口复制的说明:MetadataGet the builder forSessionFactoryinstances based on this metamodel.- 指定者:
getSessionFactoryBuilder在接口中Metadata- 返回:
- The builder for
SessionFactoryinstances.
-
buildSessionFactory
public SessionFactory buildSessionFactory()
从接口复制的说明:MetadataShort-hand form of building aSessionFactorythrough the builder without any additional option overrides.- 指定者:
buildSessionFactory在接口中Metadata- 返回:
- THe built SessionFactory.
-
getEntityBindings
public Collection<PersistentClass> getEntityBindings()
从接口复制的说明:MetadataRetrieves the PersistentClass entity metadata representation for all known entities. Returned collection is immutable- 指定者:
getEntityBindings在接口中Metadata- 返回:
- All PersistentClass representations.
-
getEntityBindingMap
public Map<String,PersistentClass> getEntityBindingMap()
从接口复制的说明:InFlightMetadataCollectorNeeded for SecondPass handling- 指定者:
getEntityBindingMap在接口中InFlightMetadataCollector
-
getEntityBinding
public PersistentClass getEntityBinding(String entityName)
从接口复制的说明:MetadataRetrieves the PersistentClass entity mapping metadata representation for the given entity name.- 指定者:
getEntityBinding在接口中Metadata- 参数:
entityName- The entity name for which to retrieve the metadata.- 返回:
- The entity mapping metadata, or
nullif no matching entity found.
-
addEntityBinding
public void addEntityBinding(PersistentClass persistentClass) throws DuplicateMappingException
从接口复制的说明:InFlightMetadataCollectorAdd the PersistentClass for an entity mapping.- 指定者:
addEntityBinding在接口中InFlightMetadataCollector- 参数:
persistentClass- The entity metadata- 抛出:
DuplicateMappingException- Indicates there was already an entry corresponding to the given entity name.
-
getCollectionBindings
public Collection<Collection> getCollectionBindings()
从接口复制的说明:MetadataRetrieves the Collection metadata representation for all known collections. Returned collection is immutable- 指定者:
getCollectionBindings在接口中Metadata- 返回:
- All Collection representations.
-
getCollectionBinding
public Collection getCollectionBinding(String role)
从接口复制的说明:MetadataRetrieves the collection mapping metadata for the given collection role.- 指定者:
getCollectionBinding在接口中Metadata- 参数:
role- The collection role for which to retrieve the metadata.- 返回:
- The collection mapping metadata, or
nullif no matching collection found.
-
addCollectionBinding
public void addCollectionBinding(Collection collection) throws DuplicateMappingException
从接口复制的说明:InFlightMetadataCollectorAdd collection mapping metadata to this repository.- 指定者:
addCollectionBinding在接口中InFlightMetadataCollector- 参数:
collection- The collection metadata- 抛出:
DuplicateMappingException- Indicates there was already an entry corresponding to the given collection role
-
getTypeDefinition
public TypeDefinition getTypeDefinition(String registrationKey)
从接口复制的说明:MetadataRetrieve a type definition by name.- 指定者:
getTypeDefinition在接口中Metadata- 参数:
registrationKey- The name of the type definition to retrieve.- 返回:
- The named type definition, or
null
-
addTypeDefinition
public void addTypeDefinition(TypeDefinition typeDefinition)
从接口复制的说明:InFlightMetadataCollectorAdds a type definition to this metadata repository.- 指定者:
addTypeDefinition在接口中InFlightMetadataCollector- 参数:
typeDefinition- The named type definition to add.
-
getClassmateContext
public ClassmateContext getClassmateContext()
从接口复制的说明:InFlightMetadataCollectorAccess to the shared Classmate objects used throughout Hibernate's bootstrap process.- 指定者:
getClassmateContext在接口中InFlightMetadataCollector- 返回:
- Access to the shared Classmate delegates.
-
addAttributeConverter
public void addAttributeConverter(Class<? extends javax.persistence.AttributeConverter> converterClass)
-
addAttributeConverter
public void addAttributeConverter(ConverterDescriptor descriptor)
-
getAttributeConverterAutoApplyHandler
public ConverterAutoApplyHandler getAttributeConverterAutoApplyHandler()
-
getFilterDefinitions
public Map<String,FilterDefinition> getFilterDefinitions()
从接口复制的说明:MetadataRetrieves the complete map of filter definitions. Returned map is immutable- 指定者:
getFilterDefinitions在接口中Metadata- 返回:
- The filter definition map.
-
getFilterDefinition
public FilterDefinition getFilterDefinition(String name)
从接口复制的说明:MetadataRetrieves a filter definition by name.- 指定者:
getFilterDefinition在接口中Metadata- 参数:
name- The name of the filter definition to retrieve .- 返回:
- The filter definition, or
null.
-
addFilterDefinition
public void addFilterDefinition(FilterDefinition filterDefinition)
从接口复制的说明:InFlightMetadataCollectorAdds a filter definition to this repository.- 指定者:
addFilterDefinition在接口中InFlightMetadataCollector- 参数:
filterDefinition- The filter definition to add.
-
getFetchProfiles
public Collection<FetchProfile> getFetchProfiles()
- 指定者:
getFetchProfiles在接口中Metadata
-
getFetchProfile
public FetchProfile getFetchProfile(String name)
- 指定者:
getFetchProfile在接口中Metadata
-
addFetchProfile
public void addFetchProfile(FetchProfile profile)
- 指定者:
addFetchProfile在接口中InFlightMetadataCollector
-
getIdentifierGenerator
public IdentifierGeneratorDefinition getIdentifierGenerator(String name)
- 指定者:
getIdentifierGenerator在接口中Metadata
-
collectTableMappings
public Collection<Table> collectTableMappings()
- 指定者:
collectTableMappings在接口中Metadata
-
addIdentifierGenerator
public void addIdentifierGenerator(IdentifierGeneratorDefinition generator)
-
addDefaultIdentifierGenerator
public void addDefaultIdentifierGenerator(IdentifierGeneratorDefinition generator)
-
getNamedEntityGraph
public NamedEntityGraphDefinition getNamedEntityGraph(String name)
- 指定者:
getNamedEntityGraph在接口中Metadata
-
getNamedEntityGraphs
public Map<String,NamedEntityGraphDefinition> getNamedEntityGraphs()
- 指定者:
getNamedEntityGraphs在接口中Metadata
-
addNamedEntityGraph
public void addNamedEntityGraph(NamedEntityGraphDefinition definition)
从接口复制的说明:InFlightMetadataCollectorAdds metadata for a named entity graph to this repository- 指定者:
addNamedEntityGraph在接口中InFlightMetadataCollector- 参数:
definition- The procedure call information
-
getNamedQueryDefinition
public NamedQueryDefinition getNamedQueryDefinition(String name)
从接口复制的说明:MetadataRetrieve named query metadata by name.- 指定者:
getNamedQueryDefinition在接口中Metadata- 参数:
name- The query name- 返回:
- The named query metadata, or
null.
-
getNamedQueryDefinitions
public Collection<NamedQueryDefinition> getNamedQueryDefinitions()
- 指定者:
getNamedQueryDefinitions在接口中Metadata
-
addNamedQuery
public void addNamedQuery(NamedQueryDefinition def)
从接口复制的说明:InFlightMetadataCollectorAdds metadata for a named query to this repository.- 指定者:
addNamedQuery在接口中InFlightMetadataCollector- 参数:
def- The metadata
-
addDefaultQuery
public void addDefaultQuery(NamedQueryDefinition queryDefinition)
- 指定者:
addDefaultQuery在接口中InFlightMetadataCollector
-
getNamedNativeQueryDefinition
public NamedSQLQueryDefinition getNamedNativeQueryDefinition(String name)
从接口复制的说明:MetadataRetrieve named SQL query metadata.- 指定者:
getNamedNativeQueryDefinition在接口中Metadata- 参数:
name- The SQL query name.- 返回:
- The named query metadata, or
null
-
getNamedNativeQueryDefinitions
public Collection<NamedSQLQueryDefinition> getNamedNativeQueryDefinitions()
- 指定者:
getNamedNativeQueryDefinitions在接口中Metadata
-
addNamedNativeQuery
public void addNamedNativeQuery(NamedSQLQueryDefinition def)
从接口复制的说明:InFlightMetadataCollectorAdds metadata for a named SQL query to this repository.- 指定者:
addNamedNativeQuery在接口中InFlightMetadataCollector- 参数:
def- The metadata
-
addDefaultNamedNativeQuery
public void addDefaultNamedNativeQuery(NamedSQLQueryDefinition query)
-
getNamedProcedureCallDefinitions
public Collection<NamedProcedureCallDefinition> getNamedProcedureCallDefinitions()
- 指定者:
getNamedProcedureCallDefinitions在接口中Metadata
-
addNamedProcedureCallDefinition
public void addNamedProcedureCallDefinition(NamedProcedureCallDefinition definition)
从接口复制的说明:InFlightMetadataCollectorAdds metadata for a named stored procedure call to this repository.- 指定者:
addNamedProcedureCallDefinition在接口中InFlightMetadataCollector- 参数:
definition- The procedure call information
-
addDefaultNamedProcedureCallDefinition
public void addDefaultNamedProcedureCallDefinition(NamedProcedureCallDefinition definition)
-
getResultSetMappingDefinitions
public Map<String,ResultSetMappingDefinition> getResultSetMappingDefinitions()
- 指定者:
getResultSetMappingDefinitions在接口中Metadata
-
getResultSetMapping
public ResultSetMappingDefinition getResultSetMapping(String name)
从接口复制的说明:MetadataRetrieve the metadata for a named SQL result set mapping.- 指定者:
getResultSetMapping在接口中Metadata- 参数:
name- The mapping name.- 返回:
- The named result set mapping metadata, or
nullif none found.
-
addResultSetMapping
public void addResultSetMapping(ResultSetMappingDefinition resultSetMappingDefinition)
从接口复制的说明:InFlightMetadataCollectorAdds the metadata for a named SQL result set mapping to this repository.- 指定者:
addResultSetMapping在接口中InFlightMetadataCollector- 参数:
resultSetMappingDefinition- The metadata
-
applyResultSetMapping
public void applyResultSetMapping(ResultSetMappingDefinition resultSetMappingDefinition)
-
addDefaultResultSetMapping
public void addDefaultResultSetMapping(ResultSetMappingDefinition definition)
-
getImports
public Map<String,String> getImports()
从接口复制的说明:MetadataRetrieves all defined imports (class renames).- 指定者:
getImports在接口中Metadata- 返回:
- All imports
-
addImport
public void addImport(String importName, String entityName)
从接口复制的说明:InFlightMetadataCollectorAdds an import (HQL entity rename).- 指定者:
addImport在接口中InFlightMetadataCollector- 参数:
importName- The entity name being renamed.entityName- The rename
-
addTable
public Table addTable(String schemaName, String catalogName, String name, String subselectFragment, boolean isAbstract)
从接口复制的说明:InFlightMetadataCollectorAdds table metadata to this repository returning the created metadata instance.- 指定者:
addTable在接口中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)?- 返回:
- The created table metadata, or the existing reference.
-
addDenormalizedTable
public Table addDenormalizedTable(String schemaName, String catalogName, String name, boolean isAbstract, String subselectFragment, Table includedTable) throws DuplicateMappingException
从接口复制的说明:InFlightMetadataCollectorAdds a 'denormalized table' to this repository.- 指定者:
addDenormalizedTable在接口中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- ???- 返回:
- The created table metadata.
- 抛出:
DuplicateMappingException- If such a table mapping already exists.
-
getIdentifierType
public Type getIdentifierType(String entityName) throws MappingException
- 指定者:
getIdentifierType在接口中Mapping- 抛出:
MappingException
-
getIdentifierPropertyName
public String getIdentifierPropertyName(String entityName) throws MappingException
- 指定者:
getIdentifierPropertyName在接口中Mapping- 抛出:
MappingException
-
getReferencedPropertyType
public Type getReferencedPropertyType(String entityName, String propertyName) throws MappingException
- 指定者:
getReferencedPropertyType在接口中Mapping- 抛出:
MappingException
-
addTableNameBinding
public void addTableNameBinding(Identifier logicalName, Table table)
- 指定者:
addTableNameBinding在接口中InFlightMetadataCollector
-
addTableNameBinding
public void addTableNameBinding(String schema, String catalog, String logicalName, String realTableName, Table denormalizedSuperTable)
- 指定者:
addTableNameBinding在接口中InFlightMetadataCollector
-
getLogicalTableName
public String getLogicalTableName(Table ownerTable)
- 指定者:
getLogicalTableName在接口中InFlightMetadataCollector
-
getPhysicalTableName
public String getPhysicalTableName(Identifier logicalName)
-
addColumnNameBinding
public void addColumnNameBinding(Table table, String logicalName, Column column) throws DuplicateMappingException
-
addColumnNameBinding
public void addColumnNameBinding(Table table, Identifier logicalName, Column column) throws DuplicateMappingException
-
getPhysicalColumnName
public String getPhysicalColumnName(Table table, String logicalName) throws MappingException
- 指定者:
getPhysicalColumnName在接口中InFlightMetadataCollector- 抛出:
MappingException
-
getPhysicalColumnName
public String getPhysicalColumnName(Table table, Identifier logicalName) throws MappingException
- 指定者:
getPhysicalColumnName在接口中InFlightMetadataCollector- 抛出:
MappingException
-
getLogicalColumnName
public String getLogicalColumnName(Table table, String physicalName) throws MappingException
- 指定者:
getLogicalColumnName在接口中InFlightMetadataCollector- 抛出:
MappingException
-
getLogicalColumnName
public String getLogicalColumnName(Table table, Identifier physicalName) throws MappingException
- 指定者:
getLogicalColumnName在接口中InFlightMetadataCollector- 抛出:
MappingException
-
addAuxiliaryDatabaseObject
public void addAuxiliaryDatabaseObject(AuxiliaryDatabaseObject auxiliaryDatabaseObject)
从接口复制的说明:InFlightMetadataCollectorAdd metadata pertaining to an auxiliary database object to this repository.- 指定者:
addAuxiliaryDatabaseObject在接口中InFlightMetadataCollector- 参数:
auxiliaryDatabaseObject- The metadata.
-
getClassType
public AnnotatedClassType getClassType(org.hibernate.annotations.common.reflection.XClass clazz)
- 指定者:
getClassType在接口中InFlightMetadataCollector
-
addClassType
public AnnotatedClassType addClassType(org.hibernate.annotations.common.reflection.XClass clazz)
- 指定者:
addClassType在接口中InFlightMetadataCollector
-
addAnyMetaDef
public void addAnyMetaDef(AnyMetaDef defAnn)
- 指定者:
addAnyMetaDef在接口中InFlightMetadataCollector
-
getAnyMetaDef
public AnyMetaDef getAnyMetaDef(String name)
- 指定者:
getAnyMetaDef在接口中InFlightMetadataCollector
-
addMappedSuperclass
public void addMappedSuperclass(Class type, MappedSuperclass mappedSuperclass)
- 指定者:
addMappedSuperclass在接口中InFlightMetadataCollector
-
getMappedSuperclass
public MappedSuperclass getMappedSuperclass(Class type)
- 指定者:
getMappedSuperclass在接口中InFlightMetadataCollector
-
getPropertyAnnotatedWithMapsId
public PropertyData getPropertyAnnotatedWithMapsId(org.hibernate.annotations.common.reflection.XClass entityType, String propertyName)
-
addPropertyAnnotatedWithMapsId
public void addPropertyAnnotatedWithMapsId(org.hibernate.annotations.common.reflection.XClass entityType, PropertyData property)
-
addPropertyAnnotatedWithMapsIdSpecj
public void addPropertyAnnotatedWithMapsIdSpecj(org.hibernate.annotations.common.reflection.XClass entityType, PropertyData property, String mapsIdValue)
-
getPropertyAnnotatedWithIdAndToOne
public PropertyData getPropertyAnnotatedWithIdAndToOne(org.hibernate.annotations.common.reflection.XClass entityType, String propertyName)
-
addToOneAndIdProperty
public void addToOneAndIdProperty(org.hibernate.annotations.common.reflection.XClass entityType, PropertyData property)
-
addMappedBy
public void addMappedBy(String entityName, String propertyName, String inversePropertyName)
- 指定者:
addMappedBy在接口中InFlightMetadataCollector
-
getFromMappedBy
public String getFromMappedBy(String entityName, String propertyName)
- 指定者:
getFromMappedBy在接口中InFlightMetadataCollector
-
addPropertyReferencedAssociation
public void addPropertyReferencedAssociation(String entityName, String propertyName, String propertyRef)
-
getPropertyReferencedAssociation
public String getPropertyReferencedAssociation(String entityName, String propertyName)
-
addDelayedPropertyReferenceHandler
public void addDelayedPropertyReferenceHandler(InFlightMetadataCollector.DelayedPropertyReferenceHandler handler)
-
addUniquePropertyReference
public void addUniquePropertyReference(String referencedClass, String propertyName)
-
addUniqueConstraintHolders
public void addUniqueConstraintHolders(Table table, List<UniqueConstraintHolder> uniqueConstraintHolders)
-
addJpaIndexHolders
public void addJpaIndexHolders(Table table, List<JPAIndexHolder> holders)
- 指定者:
addJpaIndexHolders在接口中InFlightMetadataCollector
-
getEntityTableXref
public InFlightMetadataCollector.EntityTableXref getEntityTableXref(String entityName)
- 指定者:
getEntityTableXref在接口中InFlightMetadataCollector
-
addEntityTableXref
public InFlightMetadataCollector.EntityTableXref addEntityTableXref(String entityName, Identifier primaryTableLogicalName, Table primaryTable, InFlightMetadataCollector.EntityTableXref superEntityTableXref)
- 指定者:
addEntityTableXref在接口中InFlightMetadataCollector
-
getJoins
public Map<String,Join> getJoins(String entityName)
- 指定者:
getJoins在接口中InFlightMetadataCollector
-
addSecondPass
public void addSecondPass(SecondPass secondPass)
- 指定者:
addSecondPass在接口中InFlightMetadataCollector
-
addSecondPass
public void addSecondPass(SecondPass secondPass, boolean onTopOfTheQueue)
- 指定者:
addSecondPass在接口中InFlightMetadataCollector
-
processSecondPasses
public void processSecondPasses(MetadataBuildingContext buildingContext)
Ugh! But we need this done before we ask Envers to produce its entities.
-
secondPassCompileForeignKeys
protected void secondPassCompileForeignKeys(Table table, Set<ForeignKey> done, MetadataBuildingContext buildingContext) throws MappingException
- 抛出:
MappingException
-
locateNaturalIdUniqueKeyBinder
public NaturalIdUniqueKeyBinder locateNaturalIdUniqueKeyBinder(String entityName)
-
registerNaturalIdUniqueKeyBinder
public void registerNaturalIdUniqueKeyBinder(String entityName, NaturalIdUniqueKeyBinder ukBinder)
-
isInSecondPass
public boolean isInSecondPass()
- 指定者:
isInSecondPass在接口中InFlightMetadataCollector
-
buildMetadataInstance
public MetadataImpl buildMetadataInstance(MetadataBuildingContext buildingContext)
Builds the complete and immutable Metadata instance from the collected info.- 返回:
- The complete and immutable Metadata instance
-
-