接口 MetadataBuildingOptions
-
public interface MetadataBuildingOptionsDescribes the options used while building the Metadata object (duringMetadataBuilder.build()processing).- 从以下版本开始:
- 5.0
- 作者:
- Steve Ebersole
-
-
方法概要
-
-
-
方法详细资料
-
getServiceRegistry
StandardServiceRegistry getServiceRegistry()
Access to the service registry.- 返回:
- The service registry
-
getMappingDefaults
MappingDefaults getMappingDefaults()
Access to the mapping defaults.- 返回:
- The mapping defaults
-
getBasicTypeRegistrations
List<BasicTypeRegistration> getBasicTypeRegistrations()
Access the list of BasicType registrations. These are the BasicTypes explicitly registered via calls to:MetadataBuilder.applyBasicType(org.hibernate.type.BasicType)MetadataBuilder.applyBasicType(org.hibernate.type.BasicType, String[])MetadataBuilder.applyBasicType(org.hibernate.usertype.UserType, java.lang.String[])MetadataBuilder.applyBasicType(org.hibernate.usertype.CompositeUserType, java.lang.String[])
- 返回:
- The BasicType registrations
-
getReflectionManager
@Deprecated org.hibernate.annotations.common.reflection.ReflectionManager getReflectionManager()
已过时。UseBootstrapContext.getReflectionManager()instead, The plan is to remove firstgetReflectionManager()keepingBootstrapContext.getReflectionManager()till the migration from Hibernate Commons Annotations to Jandex.Retrieve the Hibernate Commons Annotations ReflectionManager to use.- 返回:
- The Hibernate Commons Annotations ReflectionManager to use.
-
getJandexView
@Deprecated org.jboss.jandex.IndexView getJandexView()
已过时。UseBootstrapContext.getJandexView()instead.Access to the Jandex index passed by call toMetadataBuilder.applyIndexView(org.jboss.jandex.IndexView), if any.- 返回:
- The Jandex index
-
getScanOptions
@Deprecated ScanOptions getScanOptions()
已过时。UseBootstrapContext.getScanOptions()instead.Access to the options to be used for scanning- 返回:
- The scan options
-
getScanEnvironment
@Deprecated ScanEnvironment getScanEnvironment()
已过时。UseBootstrapContext.getScanEnvironment()instead.Access to the environment for scanning. Consider this temporary; see discussion onScanEnvironment- 返回:
- The scan environment
-
getScanner
@Deprecated Object getScanner()
已过时。UseBootstrapContext.getScanner()instead.Access to the Scanner to be used for scanning. Can be:- A Scanner instance
- A Class reference to the Scanner implementor
- A String naming the Scanner implementor
- 返回:
- The scanner
-
getArchiveDescriptorFactory
@Deprecated ArchiveDescriptorFactory getArchiveDescriptorFactory()
已过时。UseBootstrapContext.getArchiveDescriptorFactory()instead.Access to the ArchiveDescriptorFactory to be used for scanning- 返回:
- The ArchiveDescriptorFactory
-
getTempClassLoader
@Deprecated ClassLoader getTempClassLoader()
已过时。UseBootstrapContext.getJpaTempClassLoader()instead.Access the temporary ClassLoader passed to us as defined byPersistenceUnitInfo.getNewTempClassLoader(), if any.- 返回:
- The tempo ClassLoader
-
getImplicitNamingStrategy
ImplicitNamingStrategy getImplicitNamingStrategy()
-
getPhysicalNamingStrategy
PhysicalNamingStrategy getPhysicalNamingStrategy()
-
getSharedCacheMode
javax.persistence.SharedCacheMode getSharedCacheMode()
Access to the SharedCacheMode for determining whether we should perform second level caching or not.- 返回:
- The SharedCacheMode
-
getImplicitCacheAccessType
AccessType getImplicitCacheAccessType()
Access to any implicit cache AccessType.- 返回:
- The implicit cache AccessType
-
getMultiTenancyStrategy
MultiTenancyStrategy getMultiTenancyStrategy()
Access to the MultiTenancyStrategy for this environment.- 返回:
- The MultiTenancyStrategy
-
getIdGenerationTypeInterpreter
IdGeneratorStrategyInterpreter getIdGenerationTypeInterpreter()
-
getCacheRegionDefinitions
@Deprecated List<CacheRegionDefinition> getCacheRegionDefinitions()
已过时。UseBootstrapContext.getClassmateContext()instead.Access to all explicit cache region mappings.- 返回:
- Explicit cache region mappings.
-
ignoreExplicitDiscriminatorsForJoinedInheritance
boolean ignoreExplicitDiscriminatorsForJoinedInheritance()
Whether explicit discriminator declarations should be ignored for joined subclass style inheritance.- 返回:
trueindicates they should be ignored;falseindicates they should not be ignored.- 另请参阅:
MetadataBuilder.enableExplicitDiscriminatorsForJoinedSubclassSupport(boolean),AvailableSettings.IGNORE_EXPLICIT_DISCRIMINATOR_COLUMNS_FOR_JOINED_SUBCLASS
-
createImplicitDiscriminatorsForJoinedInheritance
boolean createImplicitDiscriminatorsForJoinedInheritance()
Whether we should do discrimination implicitly joined subclass style inheritance when no discriminator info is provided.- 返回:
trueindicates we should do discrimination;falsewe should not.- 另请参阅:
MetadataBuilder.enableImplicitDiscriminatorsForJoinedSubclassSupport(boolean),AvailableSettings.IMPLICIT_DISCRIMINATOR_COLUMNS_FOR_JOINED_SUBCLASS
-
shouldImplicitlyForceDiscriminatorInSelect
boolean shouldImplicitlyForceDiscriminatorInSelect()
Whether we should implicitly force discriminators into SQL selects. By default, Hibernate will not. This can be specified per discriminator in the mapping as well.- 返回:
trueindicates we should force the discriminator in selects for any mappings which do not say explicitly.- 另请参阅:
AvailableSettings.FORCE_DISCRIMINATOR_IN_SELECTS_BY_DEFAULT
-
useNationalizedCharacterData
boolean useNationalizedCharacterData()
Should we use nationalized variants of character data (e.g. NVARCHAR rather than VARCHAR) by default?- 返回:
trueif nationalized character data should be used by default;falseotherwise.- 另请参阅:
MetadataBuilder.enableGlobalNationalizedCharacterDataSupport(boolean),AvailableSettings.USE_NATIONALIZED_CHARACTER_DATA
-
isSpecjProprietarySyntaxEnabled
boolean isSpecjProprietarySyntaxEnabled()
-
getSourceProcessOrdering
List<MetadataSourceType> getSourceProcessOrdering()
Retrieve the ordering in which sources should be processed.- 返回:
- The order in which sources should be processed.
-
getSchemaCharset
default String getSchemaCharset()
-
isXmlMappingEnabled
default boolean isXmlMappingEnabled()
-
getSqlFunctions
@Deprecated Map<String,SQLFunction> getSqlFunctions()
已过时。UseBootstrapContext.getSqlFunctions()instead.Access to any SQL functions explicitly registered with the MetadataBuilder. This does not include Dialect defined functions, etc.- 返回:
- The SQLFunctions registered through MetadataBuilder
-
getAuxiliaryDatabaseObjectList
@Deprecated List<AuxiliaryDatabaseObject> getAuxiliaryDatabaseObjectList()
已过时。UseBootstrapContext.getAuxiliaryDatabaseObjectList()instead.Access to any AuxiliaryDatabaseObject explicitly registered with the MetadataBuilder. This does not include AuxiliaryDatabaseObject defined in mappings.- 返回:
- The AuxiliaryDatabaseObject registered through MetadataBuilder
-
getAttributeConverters
@Deprecated List<AttributeConverterInfo> getAttributeConverters()
已过时。UseBootstrapContext.getAttributeConverters()insteadAccess to collected AttributeConverter definitions.- 返回:
- The AttributeConverterInfo registered through MetadataBuilder
-
-