public abstract class AbstractDelegatingMetadataBuildingOptions extends Object implements MetadataBuildingOptions, JpaOrmXmlPersistenceUnitDefaultAware
Convenience base class for custom implementors of MetadataBuildingOptions using delegation.
JpaOrmXmlPersistenceUnitDefaultAware.JpaOrmXmlPersistenceUnitDefaults| Constructor and Description |
|---|
AbstractDelegatingMetadataBuildingOptions(MetadataBuildingOptions delegate) |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(JpaOrmXmlPersistenceUnitDefaultAware.JpaOrmXmlPersistenceUnitDefaults jpaOrmXmlPersistenceUnitDefaults)
Apply the
orm.xml-defined persistence-unit-defaults values. |
boolean |
createImplicitDiscriminatorsForJoinedInheritance()
Whether we should do discrimination implicitly joined subclass style inheritance when no
discriminator info is provided.
|
protected MetadataBuildingOptions |
delegate() |
ArchiveDescriptorFactory |
getArchiveDescriptorFactory()
Access to the ArchiveDescriptorFactory to be used for scanning
|
List<AttributeConverterInfo> |
getAttributeConverters() |
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.
|
IdGeneratorStrategyInterpreter |
getIdGenerationTypeInterpreter() |
AccessType |
getImplicitCacheAccessType()
Access to any implicit cache AccessType.
|
ImplicitNamingStrategy |
getImplicitNamingStrategy() |
org.jboss.jandex.IndexView |
getJandexView()
Access to the Jandex index passed by call to
MetadataBuilder.applyIndexView(org.jboss.jandex.IndexView), if any. |
MappingDefaults |
getMappingDefaults()
Access to the mapping defaults.
|
MultiTenancyStrategy |
getMultiTenancyStrategy()
Access to the MultiTenancyStrategy for this environment.
|
PhysicalNamingStrategy |
getPhysicalNamingStrategy() |
org.hibernate.annotations.common.reflection.ReflectionManager |
getReflectionManager() |
ScanEnvironment |
getScanEnvironment()
Access to the environment for scanning.
|
Object |
getScanner()
Access to the Scanner to be used for scanning.
|
ScanOptions |
getScanOptions()
Access to the options to be used for scanning
|
StandardServiceRegistry |
getServiceRegistry()
Access to the service registry.
|
SharedCacheMode |
getSharedCacheMode()
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.
|
ClassLoader |
getTempClassLoader()
Access the temporary ClassLoader passed to us as defined by
PersistenceUnitInfo.getNewTempClassLoader(), if any. |
boolean |
ignoreExplicitDiscriminatorsForJoinedInheritance()
Whether explicit discriminator declarations should be ignored for joined
subclass style inheritance.
|
boolean |
isSpecjProprietarySyntaxEnabled() |
boolean |
shouldImplicitlyForceDiscriminatorInSelect()
Whether we should implicitly force discriminators into SQL selects.
|
boolean |
useNationalizedCharacterData()
Should we use nationalized variants of character data (e.g.
|
public AbstractDelegatingMetadataBuildingOptions(MetadataBuildingOptions delegate)
protected MetadataBuildingOptions delegate()
public StandardServiceRegistry getServiceRegistry()
MetadataBuildingOptionsAccess to the service registry.
getServiceRegistry in interface MetadataBuildingOptionspublic MappingDefaults getMappingDefaults()
MetadataBuildingOptionsAccess to the mapping defaults.
getMappingDefaults in interface MetadataBuildingOptionspublic List<BasicTypeRegistration> getBasicTypeRegistrations()
MetadataBuildingOptionsAccess 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>
getBasicTypeRegistrations in interface MetadataBuildingOptionspublic org.jboss.jandex.IndexView getJandexView()
MetadataBuildingOptionsAccess to the Jandex index passed by call to
MetadataBuilder.applyIndexView(org.jboss.jandex.IndexView), if any.
getJandexView in interface MetadataBuildingOptionspublic ScanOptions getScanOptions()
MetadataBuildingOptionsAccess to the options to be used for scanning
getScanOptions in interface MetadataBuildingOptionspublic ScanEnvironment getScanEnvironment()
MetadataBuildingOptionsAccess to the environment for scanning. Consider this temporary; see discussion on
ScanEnvironment
getScanEnvironment in interface MetadataBuildingOptionspublic Object getScanner()
MetadataBuildingOptionsAccess 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>
getScanner in interface MetadataBuildingOptionspublic ArchiveDescriptorFactory getArchiveDescriptorFactory()
MetadataBuildingOptionsAccess to the ArchiveDescriptorFactory to be used for scanning
getArchiveDescriptorFactory in interface MetadataBuildingOptionspublic ClassLoader getTempClassLoader()
MetadataBuildingOptionsAccess the temporary ClassLoader passed to us as defined by
PersistenceUnitInfo.getNewTempClassLoader(), if any.
getTempClassLoader in interface MetadataBuildingOptionspublic ImplicitNamingStrategy getImplicitNamingStrategy()
getImplicitNamingStrategy in interface MetadataBuildingOptionspublic PhysicalNamingStrategy getPhysicalNamingStrategy()
getPhysicalNamingStrategy in interface MetadataBuildingOptionspublic org.hibernate.annotations.common.reflection.ReflectionManager getReflectionManager()
getReflectionManager in interface MetadataBuildingOptionspublic SharedCacheMode getSharedCacheMode()
MetadataBuildingOptionsAccess to the SharedCacheMode for determining whether we should perform second level caching or not.
getSharedCacheMode in interface MetadataBuildingOptionspublic AccessType getImplicitCacheAccessType()
MetadataBuildingOptionsAccess to any implicit cache AccessType.
getImplicitCacheAccessType in interface MetadataBuildingOptionspublic MultiTenancyStrategy getMultiTenancyStrategy()
MetadataBuildingOptionsAccess to the MultiTenancyStrategy for this environment.
getMultiTenancyStrategy in interface MetadataBuildingOptionspublic IdGeneratorStrategyInterpreter getIdGenerationTypeInterpreter()
getIdGenerationTypeInterpreter in interface MetadataBuildingOptionspublic List<CacheRegionDefinition> getCacheRegionDefinitions()
MetadataBuildingOptionsAccess to all explicit cache region mappings.
getCacheRegionDefinitions in interface MetadataBuildingOptionspublic boolean ignoreExplicitDiscriminatorsForJoinedInheritance()
MetadataBuildingOptionsWhether explicit discriminator declarations should be ignored for joined subclass style inheritance.
ignoreExplicitDiscriminatorsForJoinedInheritance in interface MetadataBuildingOptionstrue indicates they should be ignored; false
indicates they should not be ignored.MetadataBuilder.enableExplicitDiscriminatorsForJoinedSubclassSupport(boolean),
AvailableSettings.IGNORE_EXPLICIT_DISCRIMINATOR_COLUMNS_FOR_JOINED_SUBCLASSpublic boolean createImplicitDiscriminatorsForJoinedInheritance()
MetadataBuildingOptionsWhether we should do discrimination implicitly joined subclass style inheritance when no discriminator info is provided.
createImplicitDiscriminatorsForJoinedInheritance in interface MetadataBuildingOptionstrue indicates we should do discrimination; false we should not.MetadataBuilder.enableImplicitDiscriminatorsForJoinedSubclassSupport(boolean),
AvailableSettings.IMPLICIT_DISCRIMINATOR_COLUMNS_FOR_JOINED_SUBCLASSpublic 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 in interface MetadataBuildingOptionstrue indicates we should force the discriminator in selects for any mappings
which do not say explicitly.AvailableSettings.FORCE_DISCRIMINATOR_IN_SELECTS_BY_DEFAULTpublic boolean useNationalizedCharacterData()
MetadataBuildingOptionsShould we use nationalized variants of character data (e.g. NVARCHAR rather than VARCHAR) by default?
useNationalizedCharacterData in interface MetadataBuildingOptionstrue if nationalized character data should be used by default; false otherwise.MetadataBuilder.enableGlobalNationalizedCharacterDataSupport(boolean),
AvailableSettings.USE_NATIONALIZED_CHARACTER_DATApublic boolean isSpecjProprietarySyntaxEnabled()
isSpecjProprietarySyntaxEnabled in interface MetadataBuildingOptionspublic List<MetadataSourceType> getSourceProcessOrdering()
MetadataBuildingOptionsRetrieve the ordering in which sources should be processed.
getSourceProcessOrdering in interface MetadataBuildingOptionspublic Map<String,SQLFunction> getSqlFunctions()
MetadataBuildingOptionsAccess to any SQL functions explicitly registered with the MetadataBuilder. This does not include Dialect defined functions, etc.
getSqlFunctions in interface MetadataBuildingOptionspublic List<AuxiliaryDatabaseObject> getAuxiliaryDatabaseObjectList()
MetadataBuildingOptionsAccess to any AuxiliaryDatabaseObject explicitly registered with the MetadataBuilder. This does not include AuxiliaryDatabaseObject defined in mappings.
getAuxiliaryDatabaseObjectList in interface MetadataBuildingOptionspublic List<AttributeConverterInfo> getAttributeConverters()
getAttributeConverters in interface MetadataBuildingOptionspublic void apply(JpaOrmXmlPersistenceUnitDefaultAware.JpaOrmXmlPersistenceUnitDefaults jpaOrmXmlPersistenceUnitDefaults)
JpaOrmXmlPersistenceUnitDefaultAwareApply the orm.xml-defined persistence-unit-defaults values.
apply in interface JpaOrmXmlPersistenceUnitDefaultAwarejpaOrmXmlPersistenceUnitDefaults - The persistence-unit-defaults valuesCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.