public interface MetadataBuildingOptions
Describes the options used while building the Metadata object (during
MetadataBuilder.build()
processing).
StandardServiceRegistry getServiceRegistry()
Access to the service registry.
MappingDefaults getMappingDefaults()
Access to the mapping defaults.
List<BasicTypeRegistration> getBasicTypeRegistrations()
Access the list of BasicType registrations. These are the BasicTypes explicitly
registered via calls to:<ul>
<li>MetadataBuilder.applyBasicType(org.hibernate.type.BasicType)
</li>
<li>MetadataBuilder.applyBasicType(org.hibernate.type.BasicType, String[])
</li>
<li>MetadataBuilder.applyBasicType(org.hibernate.usertype.UserType, java.lang.String[])
</li>
<li>MetadataBuilder.applyBasicType(org.hibernate.usertype.CompositeUserType, java.lang.String[])
</li>
</ul>
@Deprecated org.hibernate.annotations.common.reflection.ReflectionManager getReflectionManager()
BootstrapContext.getReflectionManager()
instead,
The plan is to remove first getReflectionManager()
keeping BootstrapContext.getReflectionManager()
till the migration from
Hibernate Commons Annotations to Jandex.Retrieve the Hibernate Commons Annotations ReflectionManager to use.
@Deprecated org.jboss.jandex.IndexView getJandexView()
BootstrapContext.getJandexView()
instead.Access to the Jandex index passed by call to
MetadataBuilder.applyIndexView(org.jboss.jandex.IndexView)
, if any.
@Deprecated ScanOptions getScanOptions()
BootstrapContext.getScanOptions()
instead.Access to the options to be used for scanning
@Deprecated ScanEnvironment getScanEnvironment()
BootstrapContext.getScanEnvironment()
instead.Access to the environment for scanning. Consider this temporary; see discussion on
ScanEnvironment
@Deprecated Object getScanner()
BootstrapContext.getScanner()
instead.Access to the Scanner to be used for scanning. Can be:<ul> <li>A Scanner instance</li> <li>A Class reference to the Scanner implementor</li> <li>A String naming the Scanner implementor</li> </ul>
@Deprecated ArchiveDescriptorFactory getArchiveDescriptorFactory()
BootstrapContext.getArchiveDescriptorFactory()
instead.Access to the ArchiveDescriptorFactory to be used for scanning
@Deprecated ClassLoader getTempClassLoader()
BootstrapContext.getJpaTempClassLoader()
instead.Access the temporary ClassLoader passed to us as defined by
PersistenceUnitInfo.getNewTempClassLoader()
, if any.
ImplicitNamingStrategy getImplicitNamingStrategy()
PhysicalNamingStrategy getPhysicalNamingStrategy()
SharedCacheMode getSharedCacheMode()
Access to the SharedCacheMode for determining whether we should perform second level caching or not.
AccessType getImplicitCacheAccessType()
Access to any implicit cache AccessType.
MultiTenancyStrategy getMultiTenancyStrategy()
Access to the MultiTenancyStrategy for this environment.
IdGeneratorStrategyInterpreter getIdGenerationTypeInterpreter()
@Deprecated List<CacheRegionDefinition> getCacheRegionDefinitions()
BootstrapContext.getClassmateContext()
instead.Access to all explicit cache region mappings.
boolean ignoreExplicitDiscriminatorsForJoinedInheritance()
Whether explicit discriminator declarations should be ignored for joined subclass style inheritance.
true
indicates they should be ignored; false
indicates they should not be ignored.MetadataBuilder.enableExplicitDiscriminatorsForJoinedSubclassSupport(boolean)
,
AvailableSettings.IGNORE_EXPLICIT_DISCRIMINATOR_COLUMNS_FOR_JOINED_SUBCLASS
boolean createImplicitDiscriminatorsForJoinedInheritance()
Whether we should do discrimination implicitly joined subclass style inheritance when no discriminator info is provided.
true
indicates we should do discrimination; false
we should not.MetadataBuilder.enableImplicitDiscriminatorsForJoinedSubclassSupport(boolean)
,
AvailableSettings.IMPLICIT_DISCRIMINATOR_COLUMNS_FOR_JOINED_SUBCLASS
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.
true
indicates we should force the discriminator in selects for any mappings
which do not say explicitly.AvailableSettings.FORCE_DISCRIMINATOR_IN_SELECTS_BY_DEFAULT
boolean useNationalizedCharacterData()
Should we use nationalized variants of character data (e.g. NVARCHAR rather than VARCHAR) by default?
true
if nationalized character data should be used by default; false
otherwise.MetadataBuilder.enableGlobalNationalizedCharacterDataSupport(boolean)
,
AvailableSettings.USE_NATIONALIZED_CHARACTER_DATA
boolean isSpecjProprietarySyntaxEnabled()
List<MetadataSourceType> getSourceProcessOrdering()
Retrieve the ordering in which sources should be processed.
default String getSchemaCharset()
@Deprecated Map<String,SQLFunction> getSqlFunctions()
BootstrapContext.getSqlFunctions()
instead.Access to any SQL functions explicitly registered with the MetadataBuilder. This does not include Dialect defined functions, etc.
@Deprecated List<AuxiliaryDatabaseObject> getAuxiliaryDatabaseObjectList()
BootstrapContext.getAuxiliaryDatabaseObjectList()
instead.Access to any AuxiliaryDatabaseObject explicitly registered with the MetadataBuilder. This does not include AuxiliaryDatabaseObject defined in mappings.
@Deprecated List<AttributeConverterInfo> getAttributeConverters()
BootstrapContext.getAttributeConverters()
insteadAccess to collected AttributeConverter definitions.
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.