接口的使用
org.hibernate.boot.MetadataBuilder
-
使用MetadataBuilder的程序包 程序包 说明 org.hibernate.boot This package contains the contracts that make up the Hibernate native bootstrapping API (building a SessionFactory).org.hibernate.boot.internal org.hibernate.boot.spi -
-
org.hibernate.boot中MetadataBuilder的使用
类型参数类型为MetadataBuilder的org.hibernate.boot中的方法 修饰符和类型 方法 说明 <T extends MetadataBuilder>
TMetadataBuilder. unwrap(Class<T> type)Allows unwrapping this builder as another, more specific type.返回MetadataBuilder的org.hibernate.boot中的方法 修饰符和类型 方法 说明 MetadataBuilderMetadataBuilder. applyAccessType(AccessType accessType)Specify the second-level access-type to be used by default for entities and collections that define second-level caching, but do not specify a granular access-type.MetadataBuilderMetadataBuilder. applyArchiveDescriptorFactory(ArchiveDescriptorFactory factory)Specify a particular ArchiveDescriptorFactory instance to use in scanning.MetadataBuilderMetadataBuilder. applyAttributeConverter(Class<? extends javax.persistence.AttributeConverter> attributeConverterClass)Adds an AttributeConverter by its Class.MetadataBuilderMetadataBuilder. applyAttributeConverter(Class<? extends javax.persistence.AttributeConverter> attributeConverterClass, boolean autoApply)Adds an AttributeConverter by its Class plus a boolean indicating whether to auto apply it.MetadataBuilderMetadataBuilder. applyAttributeConverter(javax.persistence.AttributeConverter attributeConverter)Adds an AttributeConverter instance.MetadataBuilderMetadataBuilder. applyAttributeConverter(javax.persistence.AttributeConverter attributeConverter, boolean autoApply)Adds an AttributeConverter instance, explicitly indicating whether to auto-apply.MetadataBuilderMetadataBuilder. applyAttributeConverter(AttributeConverterDefinition definition)已过时。(since 5.3) AttributeConverterDefinition forces early access to the AttributeConverter instance which precludes the possibility to resolve the converter from CDI, etc.MetadataBuilderMetadataBuilder. applyAuxiliaryDatabaseObject(AuxiliaryDatabaseObject auxiliaryDatabaseObject)MetadataBuilderMetadataBuilder. applyBasicType(BasicType type)Specify an additional or overridden basic type mapping.MetadataBuilderMetadataBuilder. applyBasicType(BasicType type, String... keys)Specify an additional or overridden basic type mapping supplying specific registration keys.MetadataBuilderMetadataBuilder. applyBasicType(CompositeUserType type, String... keys)Register an additional or overridden composite custom type mapping.MetadataBuilderMetadataBuilder. applyBasicType(UserType type, String... keys)Register an additional or overridden custom type mapping.MetadataBuilderMetadataBuilder. applyCacheRegionDefinition(CacheRegionDefinition cacheRegionDefinition)Apply a CacheRegionDefinition to be applied to an entity, collection or query while building the Metadata object.MetadataBuilderMetadataBuilder. applyIdGenerationTypeInterpreter(IdGeneratorStrategyInterpreter interpreter)MetadataBuilderMetadataBuilder. applyImplicitCatalogName(String implicitCatalogName)Specify the implicit catalog name to apply to any unqualified database names.MetadataBuilderMetadataBuilder. applyImplicitNamingStrategy(ImplicitNamingStrategy namingStrategy)Specify the ImplicitNamingStrategy to use in building the Metadata.MetadataBuilderMetadataBuilder. applyImplicitSchemaName(String implicitSchemaName)Specify the implicit schema name to apply to any unqualified database names.MetadataBuilderMetadataBuilder. applyIndexView(org.jboss.jandex.IndexView jandexView)Allows specifying a specific Jandex index to use for reading annotation information.MetadataBuilderMetadataBuilder. applyPhysicalNamingStrategy(PhysicalNamingStrategy namingStrategy)Specify the PhysicalNamingStrategy to use in building the Metadata.MetadataBuilderMetadataBuilder. applyScanEnvironment(ScanEnvironment scanEnvironment)Consider this temporary as discussed onScanEnvironmentMetadataBuilderMetadataBuilder. applyScanner(Scanner scanner)Specify a particular Scanner instance to use.MetadataBuilderMetadataBuilder. applyScanOptions(ScanOptions scanOptions)Specify the options to be used in performing scanning.MetadataBuilderMetadataBuilder. applySharedCacheMode(javax.persistence.SharedCacheMode cacheMode)Specify the second-level cache mode to be used.MetadataBuilderMetadataBuilder. applySourceProcessOrdering(MetadataSourceType... sourceTypes)Apply a specific ordering to the processing of sources.MetadataBuilderMetadataBuilder. applySqlFunction(String functionName, SQLFunction function)MetadataBuilderMetadataBuilder. applyTempClassLoader(ClassLoader tempClassLoader)Apply a ClassLoader for use while building the Metadata.MetadataBuilderMetadataBuilder. applyTypes(TypeContributor typeContributor)Apply an explicit TypeContributor (implicit application via ServiceLoader will still happen too)MetadataBuilderMetadataBuilder. enableExplicitDiscriminatorsForJoinedSubclassSupport(boolean enabled)Should we process or ignore explicitly defined discriminators in the case of joined-subclasses.MetadataBuilderMetadataBuilder. enableGlobalNationalizedCharacterDataSupport(boolean enabled)Should nationalized variants of character data be used in the database types?MetadataBuilderMetadataBuilder. enableImplicitDiscriminatorsForJoinedSubclassSupport(boolean enabled)Similarly toenableExplicitDiscriminatorsForJoinedSubclassSupport(boolean), but here how should we treat joined inheritance when there is no explicitly defined discriminator annotations?MetadataBuilderMetadataBuilder. enableImplicitForcingOfDiscriminatorsInSelect(boolean supported)For entities which do not explicitly say, should we force discriminators into SQL selects?MetadataBuilderMetadataBuilder. enableNewIdentifierGeneratorSupport(boolean enable)Should we enable support for the "new" (since 3.2) identifier generator mappings for handling:GenerationType.SEQUENCEGenerationType.IDENTITYGenerationType.TABLEGenerationType.AUTOMetadataBuilderMetadataSources. getMetadataBuilder()Get a builder for metadata where non-default options can be specified.MetadataBuilderMetadataSources. getMetadataBuilder(StandardServiceRegistry serviceRegistry)已过时。UseMetadataSources.getMetadataBuilder()instead -
org.hibernate.boot.internal中MetadataBuilder的使用
实现MetadataBuilder的org.hibernate.boot.internal中的类 修饰符和类型 类 说明 classMetadataBuilderImpl类型参数类型为MetadataBuilder的org.hibernate.boot.internal中的方法 修饰符和类型 方法 说明 <T extends MetadataBuilder>
TMetadataBuilderImpl. unwrap(Class<T> type) -
org.hibernate.boot.spi中MetadataBuilder的使用
org.hibernate.boot.spi中MetadataBuilder的子接口 修饰符和类型 接口 说明 interfaceMetadataBuilderImplementorInternal API for MetadataBuilder exposing the building options being collected.实现MetadataBuilder的org.hibernate.boot.spi中的类 修饰符和类型 类 说明 classAbstractDelegatingMetadataBuilderImplementor<T extends MetadataBuilderImplementor>Convenience base class for custom implementors ofMetadataBuilderImplementorusing delegation.类型参数类型为MetadataBuilder的org.hibernate.boot.spi中的方法 修饰符和类型 方法 说明 <M extends MetadataBuilder>
MAbstractDelegatingMetadataBuilderImplementor. unwrap(Class<M> type)返回MetadataBuilder的org.hibernate.boot.spi中的方法 修饰符和类型 方法 说明 MetadataBuilderAbstractDelegatingMetadataBuilderImplementor. applyAccessType(AccessType accessType)MetadataBuilderAbstractDelegatingMetadataBuilderImplementor. applyArchiveDescriptorFactory(ArchiveDescriptorFactory factory)MetadataBuilderAbstractDelegatingMetadataBuilderImplementor. applyAttributeConverter(Class<? extends javax.persistence.AttributeConverter> attributeConverterClass)MetadataBuilderAbstractDelegatingMetadataBuilderImplementor. applyAttributeConverter(Class<? extends javax.persistence.AttributeConverter> attributeConverterClass, boolean autoApply)MetadataBuilderAbstractDelegatingMetadataBuilderImplementor. applyAttributeConverter(javax.persistence.AttributeConverter attributeConverter)MetadataBuilderAbstractDelegatingMetadataBuilderImplementor. applyAttributeConverter(javax.persistence.AttributeConverter attributeConverter, boolean autoApply)MetadataBuilderAbstractDelegatingMetadataBuilderImplementor. applyAttributeConverter(AttributeConverterDefinition definition)MetadataBuilderAbstractDelegatingMetadataBuilderImplementor. applyAuxiliaryDatabaseObject(AuxiliaryDatabaseObject auxiliaryDatabaseObject)MetadataBuilderAbstractDelegatingMetadataBuilderImplementor. applyBasicType(BasicType type)MetadataBuilderAbstractDelegatingMetadataBuilderImplementor. applyBasicType(BasicType type, String... keys)MetadataBuilderAbstractDelegatingMetadataBuilderImplementor. applyBasicType(CompositeUserType type, String... keys)MetadataBuilderAbstractDelegatingMetadataBuilderImplementor. applyBasicType(UserType type, String... keys)MetadataBuilderAbstractDelegatingMetadataBuilderImplementor. applyCacheRegionDefinition(CacheRegionDefinition cacheRegionDefinition)MetadataBuilderAbstractDelegatingMetadataBuilderImplementor. applyIdGenerationTypeInterpreter(IdGeneratorStrategyInterpreter interpreter)MetadataBuilderAbstractDelegatingMetadataBuilderImplementor. applyImplicitCatalogName(String implicitCatalogName)MetadataBuilderAbstractDelegatingMetadataBuilderImplementor. applyImplicitNamingStrategy(ImplicitNamingStrategy namingStrategy)MetadataBuilderAbstractDelegatingMetadataBuilderImplementor. applyImplicitSchemaName(String implicitSchemaName)MetadataBuilderAbstractDelegatingMetadataBuilderImplementor. applyIndexView(org.jboss.jandex.IndexView jandexView)MetadataBuilderAbstractDelegatingMetadataBuilderImplementor. applyPhysicalNamingStrategy(PhysicalNamingStrategy namingStrategy)MetadataBuilderAbstractDelegatingMetadataBuilderImplementor. applyScanEnvironment(ScanEnvironment scanEnvironment)MetadataBuilderAbstractDelegatingMetadataBuilderImplementor. applyScanner(Scanner scanner)MetadataBuilderAbstractDelegatingMetadataBuilderImplementor. applyScanOptions(ScanOptions scanOptions)MetadataBuilderAbstractDelegatingMetadataBuilderImplementor. applySharedCacheMode(javax.persistence.SharedCacheMode cacheMode)MetadataBuilderAbstractDelegatingMetadataBuilderImplementor. applySourceProcessOrdering(MetadataSourceType... sourceTypes)MetadataBuilderAbstractDelegatingMetadataBuilderImplementor. applySqlFunction(String functionName, SQLFunction function)MetadataBuilderAbstractDelegatingMetadataBuilderImplementor. applyTempClassLoader(ClassLoader tempClassLoader)MetadataBuilderAbstractDelegatingMetadataBuilderImplementor. applyTypes(TypeContributor typeContributor)MetadataBuilderAbstractDelegatingMetadataBuilderImplementor. enableExplicitDiscriminatorsForJoinedSubclassSupport(boolean enabled)MetadataBuilderAbstractDelegatingMetadataBuilderImplementor. enableGlobalNationalizedCharacterDataSupport(boolean enabled)MetadataBuilderAbstractDelegatingMetadataBuilderImplementor. enableImplicitDiscriminatorsForJoinedSubclassSupport(boolean enabled)MetadataBuilderAbstractDelegatingMetadataBuilderImplementor. enableImplicitForcingOfDiscriminatorsInSelect(boolean supported)MetadataBuilderAbstractDelegatingMetadataBuilderImplementor. enableNewIdentifierGeneratorSupport(boolean enable)参数类型为MetadataBuilder的org.hibernate.boot.spi中的方法 修饰符和类型 方法 说明 voidMetadataBuilderContributor. contribute(MetadataBuilder metadataBuilder)Perform the process of contributing to MetadataSources.voidMetadataBuilderInitializer. contribute(MetadataBuilder metadataBuilder, StandardServiceRegistry serviceRegistry)
-