类 MetadataBuilderImpl.MetadataBuildingOptionsImpl
- java.lang.Object
-
- org.hibernate.boot.internal.MetadataBuilderImpl.MetadataBuildingOptionsImpl
-
- 封闭类:
- MetadataBuilderImpl
public static class MetadataBuilderImpl.MetadataBuildingOptionsImpl extends Object implements MetadataBuildingOptions, JpaOrmXmlPersistenceUnitDefaultAware
-
-
嵌套类概要
-
从接口继承的嵌套类/接口 org.hibernate.boot.spi.JpaOrmXmlPersistenceUnitDefaultAware
JpaOrmXmlPersistenceUnitDefaultAware.JpaOrmXmlPersistenceUnitDefaults
-
-
构造器概要
构造器 构造器 说明 MetadataBuildingOptionsImpl(StandardServiceRegistry serviceRegistry)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidapply(JpaOrmXmlPersistenceUnitDefaultAware.JpaOrmXmlPersistenceUnitDefaults jpaOrmXmlPersistenceUnitDefaults)Yuck.booleancreateImplicitDiscriminatorsForJoinedInheritance()Whether we should do discrimination implicitly joined subclass style inheritance when no discriminator info is provided.ArchiveDescriptorFactorygetArchiveDescriptorFactory()Access to the ArchiveDescriptorFactory to be used for scanningList<AttributeConverterInfo>getAttributeConverters()Access to collected AttributeConverter definitions.List<AuxiliaryDatabaseObject>getAuxiliaryDatabaseObjectList()Access to any AuxiliaryDatabaseObject explicitly registered with the MetadataBuilder.List<BasicTypeRegistration>getBasicTypeRegistrations()Access the list of BasicType registrations.List<CacheRegionDefinition>getCacheRegionDefinitions()Access to all explicit cache region mappings.IdGeneratorStrategyInterpretergetIdGenerationTypeInterpreter()AccessTypegetImplicitCacheAccessType()Access to any implicit cache AccessType.ImplicitNamingStrategygetImplicitNamingStrategy()org.jboss.jandex.IndexViewgetJandexView()Access to the Jandex index passed by call toMetadataBuilder.applyIndexView(org.jboss.jandex.IndexView), if any.MappingDefaultsgetMappingDefaults()Access to the mapping defaults.MultiTenancyStrategygetMultiTenancyStrategy()Access to the MultiTenancyStrategy for this environment.PhysicalNamingStrategygetPhysicalNamingStrategy()org.hibernate.annotations.common.reflection.ReflectionManagergetReflectionManager()Retrieve the Hibernate Commons Annotations ReflectionManager to use.ScanEnvironmentgetScanEnvironment()Access to the environment for scanning.ObjectgetScanner()Access to the Scanner to be used for scanning.ScanOptionsgetScanOptions()Access to the options to be used for scanningStringgetSchemaCharset()StandardServiceRegistrygetServiceRegistry()Access to the service registry.javax.persistence.SharedCacheModegetSharedCacheMode()Access to the SharedCacheMode for determining whether we should perform second level caching or not.List<MetadataSourceType>getSourceProcessOrdering()Retrieve the ordering in which sources should be processed.Map<String,SQLFunction>getSqlFunctions()Access to any SQL functions explicitly registered with the MetadataBuilder.ClassLoadergetTempClassLoader()Access the temporary ClassLoader passed to us as defined byPersistenceUnitInfo.getNewTempClassLoader(), if any.booleanignoreExplicitDiscriminatorsForJoinedInheritance()Whether explicit discriminator declarations should be ignored for joined subclass style inheritance.booleanisSpecjProprietarySyntaxEnabled()booleanisXmlMappingEnabled()voidsetBootstrapContext(BootstrapContextImpl bootstrapContext)booleanshouldImplicitlyForceDiscriminatorInSelect()Whether we should implicitly force discriminators into SQL selects.booleanuseNationalizedCharacterData()Should we use nationalized variants of character data (e.g.
-
-
-
构造器详细资料
-
MetadataBuildingOptionsImpl
public MetadataBuildingOptionsImpl(StandardServiceRegistry serviceRegistry)
-
-
方法详细资料
-
getServiceRegistry
public StandardServiceRegistry getServiceRegistry()
从接口复制的说明:MetadataBuildingOptionsAccess to the service registry.- 指定者:
getServiceRegistry在接口中MetadataBuildingOptions- 返回:
- The service registry
-
getMappingDefaults
public MappingDefaults getMappingDefaults()
从接口复制的说明:MetadataBuildingOptionsAccess to the mapping defaults.- 指定者:
getMappingDefaults在接口中MetadataBuildingOptions- 返回:
- The mapping defaults
-
getBasicTypeRegistrations
public List<BasicTypeRegistration> getBasicTypeRegistrations()
从接口复制的说明:MetadataBuildingOptionsAccess 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[])
- 指定者:
getBasicTypeRegistrations在接口中MetadataBuildingOptions- 返回:
- The BasicType registrations
-
getReflectionManager
public org.hibernate.annotations.common.reflection.ReflectionManager getReflectionManager()
从接口复制的说明:MetadataBuildingOptionsRetrieve the Hibernate Commons Annotations ReflectionManager to use.- 指定者:
getReflectionManager在接口中MetadataBuildingOptions- 返回:
- The Hibernate Commons Annotations ReflectionManager to use.
-
getJandexView
public org.jboss.jandex.IndexView getJandexView()
从接口复制的说明:MetadataBuildingOptionsAccess to the Jandex index passed by call toMetadataBuilder.applyIndexView(org.jboss.jandex.IndexView), if any.- 指定者:
getJandexView在接口中MetadataBuildingOptions- 返回:
- The Jandex index
-
getScanOptions
public ScanOptions getScanOptions()
从接口复制的说明:MetadataBuildingOptionsAccess to the options to be used for scanning- 指定者:
getScanOptions在接口中MetadataBuildingOptions- 返回:
- The scan options
-
getScanEnvironment
public ScanEnvironment getScanEnvironment()
从接口复制的说明:MetadataBuildingOptionsAccess to the environment for scanning. Consider this temporary; see discussion onScanEnvironment- 指定者:
getScanEnvironment在接口中MetadataBuildingOptions- 返回:
- The scan environment
-
getScanner
public Object getScanner()
从接口复制的说明:MetadataBuildingOptionsAccess 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
- 指定者:
getScanner在接口中MetadataBuildingOptions- 返回:
- The scanner
-
getArchiveDescriptorFactory
public ArchiveDescriptorFactory getArchiveDescriptorFactory()
从接口复制的说明:MetadataBuildingOptionsAccess to the ArchiveDescriptorFactory to be used for scanning- 指定者:
getArchiveDescriptorFactory在接口中MetadataBuildingOptions- 返回:
- The ArchiveDescriptorFactory
-
getTempClassLoader
public ClassLoader getTempClassLoader()
从接口复制的说明:MetadataBuildingOptionsAccess the temporary ClassLoader passed to us as defined byPersistenceUnitInfo.getNewTempClassLoader(), if any.- 指定者:
getTempClassLoader在接口中MetadataBuildingOptions- 返回:
- The tempo ClassLoader
-
getImplicitNamingStrategy
public ImplicitNamingStrategy getImplicitNamingStrategy()
-
getPhysicalNamingStrategy
public PhysicalNamingStrategy getPhysicalNamingStrategy()
-
getSharedCacheMode
public javax.persistence.SharedCacheMode getSharedCacheMode()
从接口复制的说明:MetadataBuildingOptionsAccess to the SharedCacheMode for determining whether we should perform second level caching or not.- 指定者:
getSharedCacheMode在接口中MetadataBuildingOptions- 返回:
- The SharedCacheMode
-
getImplicitCacheAccessType
public AccessType getImplicitCacheAccessType()
从接口复制的说明:MetadataBuildingOptionsAccess to any implicit cache AccessType.- 指定者:
getImplicitCacheAccessType在接口中MetadataBuildingOptions- 返回:
- The implicit cache AccessType
-
getMultiTenancyStrategy
public MultiTenancyStrategy getMultiTenancyStrategy()
从接口复制的说明:MetadataBuildingOptionsAccess to the MultiTenancyStrategy for this environment.- 指定者:
getMultiTenancyStrategy在接口中MetadataBuildingOptions- 返回:
- The MultiTenancyStrategy
-
getIdGenerationTypeInterpreter
public IdGeneratorStrategyInterpreter getIdGenerationTypeInterpreter()
-
getCacheRegionDefinitions
public List<CacheRegionDefinition> getCacheRegionDefinitions()
从接口复制的说明:MetadataBuildingOptionsAccess to all explicit cache region mappings.- 指定者:
getCacheRegionDefinitions在接口中MetadataBuildingOptions- 返回:
- Explicit cache region mappings.
-
ignoreExplicitDiscriminatorsForJoinedInheritance
public boolean ignoreExplicitDiscriminatorsForJoinedInheritance()
从接口复制的说明:MetadataBuildingOptionsWhether explicit discriminator declarations should be ignored for joined subclass style inheritance.- 指定者:
ignoreExplicitDiscriminatorsForJoinedInheritance在接口中MetadataBuildingOptions- 返回:
trueindicates they should be ignored;falseindicates they should not be ignored.- 另请参阅:
MetadataBuilder.enableExplicitDiscriminatorsForJoinedSubclassSupport(boolean),AvailableSettings.IGNORE_EXPLICIT_DISCRIMINATOR_COLUMNS_FOR_JOINED_SUBCLASS
-
createImplicitDiscriminatorsForJoinedInheritance
public boolean createImplicitDiscriminatorsForJoinedInheritance()
从接口复制的说明:MetadataBuildingOptionsWhether we should do discrimination implicitly joined subclass style inheritance when no discriminator info is provided.- 指定者:
createImplicitDiscriminatorsForJoinedInheritance在接口中MetadataBuildingOptions- 返回:
trueindicates we should do discrimination;falsewe should not.- 另请参阅:
MetadataBuilder.enableImplicitDiscriminatorsForJoinedSubclassSupport(boolean),AvailableSettings.IMPLICIT_DISCRIMINATOR_COLUMNS_FOR_JOINED_SUBCLASS
-
shouldImplicitlyForceDiscriminatorInSelect
public boolean shouldImplicitlyForceDiscriminatorInSelect()
从接口复制的说明:MetadataBuildingOptionsWhether we should implicitly force discriminators into SQL selects. By default, Hibernate will not. This can be specified per discriminator in the mapping as well.- 指定者:
shouldImplicitlyForceDiscriminatorInSelect在接口中MetadataBuildingOptions- 返回:
trueindicates we should force the discriminator in selects for any mappings which do not say explicitly.- 另请参阅:
AvailableSettings.FORCE_DISCRIMINATOR_IN_SELECTS_BY_DEFAULT
-
useNationalizedCharacterData
public boolean useNationalizedCharacterData()
从接口复制的说明:MetadataBuildingOptionsShould we use nationalized variants of character data (e.g. NVARCHAR rather than VARCHAR) by default?- 指定者:
useNationalizedCharacterData在接口中MetadataBuildingOptions- 返回:
trueif nationalized character data should be used by default;falseotherwise.- 另请参阅:
MetadataBuilder.enableGlobalNationalizedCharacterDataSupport(boolean),AvailableSettings.USE_NATIONALIZED_CHARACTER_DATA
-
isSpecjProprietarySyntaxEnabled
public boolean isSpecjProprietarySyntaxEnabled()
-
getSourceProcessOrdering
public List<MetadataSourceType> getSourceProcessOrdering()
从接口复制的说明:MetadataBuildingOptionsRetrieve the ordering in which sources should be processed.- 指定者:
getSourceProcessOrdering在接口中MetadataBuildingOptions- 返回:
- The order in which sources should be processed.
-
getSqlFunctions
public Map<String,SQLFunction> getSqlFunctions()
从接口复制的说明:MetadataBuildingOptionsAccess to any SQL functions explicitly registered with the MetadataBuilder. This does not include Dialect defined functions, etc.- 指定者:
getSqlFunctions在接口中MetadataBuildingOptions- 返回:
- The SQLFunctions registered through MetadataBuilder
-
getAuxiliaryDatabaseObjectList
public List<AuxiliaryDatabaseObject> getAuxiliaryDatabaseObjectList()
从接口复制的说明:MetadataBuildingOptionsAccess to any AuxiliaryDatabaseObject explicitly registered with the MetadataBuilder. This does not include AuxiliaryDatabaseObject defined in mappings.- 指定者:
getAuxiliaryDatabaseObjectList在接口中MetadataBuildingOptions- 返回:
- The AuxiliaryDatabaseObject registered through MetadataBuilder
-
getAttributeConverters
public List<AttributeConverterInfo> getAttributeConverters()
从接口复制的说明:MetadataBuildingOptionsAccess to collected AttributeConverter definitions.- 指定者:
getAttributeConverters在接口中MetadataBuildingOptions- 返回:
- The AttributeConverterInfo registered through MetadataBuilder
-
getSchemaCharset
public String getSchemaCharset()
- 指定者:
getSchemaCharset在接口中MetadataBuildingOptions
-
isXmlMappingEnabled
public boolean isXmlMappingEnabled()
- 指定者:
isXmlMappingEnabled在接口中MetadataBuildingOptions
-
apply
public void apply(JpaOrmXmlPersistenceUnitDefaultAware.JpaOrmXmlPersistenceUnitDefaults jpaOrmXmlPersistenceUnitDefaults)
Yuck. This is needed because JPA lets users define "global building options" inorm.xmlmappings. Forget that there are generally multipleorm.xmlmappings if using XML approach... Ugh- 指定者:
apply在接口中JpaOrmXmlPersistenceUnitDefaultAware- 参数:
jpaOrmXmlPersistenceUnitDefaults- Thepersistence-unit-defaultsvalues
-
setBootstrapContext
public void setBootstrapContext(BootstrapContextImpl bootstrapContext)
-
-