public static class MetadataBuilderImpl.MetadataBuildingOptionsImpl extends Object implements MetadataBuildingOptions, JpaOrmXmlPersistenceUnitDefaultAware
JpaOrmXmlPersistenceUnitDefaultAware.JpaOrmXmlPersistenceUnitDefaults
Constructor and Description |
---|
MetadataBuildingOptionsImpl(StandardServiceRegistry serviceRegistry) |
Modifier and Type | Method and Description |
---|---|
void |
addAttributeConverterDefinition(AttributeConverterDefinition definition) |
void |
apply(JpaOrmXmlPersistenceUnitDefaultAware.JpaOrmXmlPersistenceUnitDefaults jpaOrmXmlPersistenceUnitDefaults)
Yuck.
|
boolean |
createImplicitDiscriminatorsForJoinedInheritance()
Whether we should do discrimination implicitly joined subclass style inheritance when no
discriminator info is provided.
|
ArchiveDescriptorFactory |
getArchiveDescriptorFactory()
Access to the ArchiveDescriptorFactory to be used for scanning
|
List<AttributeConverterDefinition> |
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.
|
org.hibernate.annotations.common.reflection.ClassLoaderDelegate |
getHcannClassLoaderDelegate() |
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 MetadataBuildingOptionsImpl(StandardServiceRegistry serviceRegistry)
public org.hibernate.annotations.common.reflection.ClassLoaderDelegate getHcannClassLoaderDelegate()
public StandardServiceRegistry getServiceRegistry()
MetadataBuildingOptions
getServiceRegistry
in interface MetadataBuildingOptions
public MappingDefaults getMappingDefaults()
MetadataBuildingOptions
getMappingDefaults
in interface MetadataBuildingOptions
public List<BasicTypeRegistration> getBasicTypeRegistrations()
MetadataBuildingOptions
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
in interface MetadataBuildingOptions
public org.jboss.jandex.IndexView getJandexView()
MetadataBuildingOptions
MetadataBuilder.applyIndexView(org.jboss.jandex.IndexView)
, if any.getJandexView
in interface MetadataBuildingOptions
public ScanOptions getScanOptions()
MetadataBuildingOptions
getScanOptions
in interface MetadataBuildingOptions
public ScanEnvironment getScanEnvironment()
MetadataBuildingOptions
ScanEnvironment
getScanEnvironment
in interface MetadataBuildingOptions
public Object getScanner()
MetadataBuildingOptions
getScanner
in interface MetadataBuildingOptions
public ArchiveDescriptorFactory getArchiveDescriptorFactory()
MetadataBuildingOptions
getArchiveDescriptorFactory
in interface MetadataBuildingOptions
public ClassLoader getTempClassLoader()
MetadataBuildingOptions
PersistenceUnitInfo.getNewTempClassLoader()
, if any.getTempClassLoader
in interface MetadataBuildingOptions
public ImplicitNamingStrategy getImplicitNamingStrategy()
getImplicitNamingStrategy
in interface MetadataBuildingOptions
public PhysicalNamingStrategy getPhysicalNamingStrategy()
getPhysicalNamingStrategy
in interface MetadataBuildingOptions
public org.hibernate.annotations.common.reflection.ReflectionManager getReflectionManager()
getReflectionManager
in interface MetadataBuildingOptions
public SharedCacheMode getSharedCacheMode()
MetadataBuildingOptions
getSharedCacheMode
in interface MetadataBuildingOptions
public AccessType getImplicitCacheAccessType()
MetadataBuildingOptions
getImplicitCacheAccessType
in interface MetadataBuildingOptions
public MultiTenancyStrategy getMultiTenancyStrategy()
MetadataBuildingOptions
getMultiTenancyStrategy
in interface MetadataBuildingOptions
public IdGeneratorStrategyInterpreter getIdGenerationTypeInterpreter()
getIdGenerationTypeInterpreter
in interface MetadataBuildingOptions
public List<CacheRegionDefinition> getCacheRegionDefinitions()
MetadataBuildingOptions
getCacheRegionDefinitions
in interface MetadataBuildingOptions
public boolean ignoreExplicitDiscriminatorsForJoinedInheritance()
MetadataBuildingOptions
ignoreExplicitDiscriminatorsForJoinedInheritance
in interface MetadataBuildingOptions
true
indicates they should be ignored; false
indicates they should not be ignored.MetadataBuilder.enableExplicitDiscriminatorsForJoinedSubclassSupport(boolean)
,
AvailableSettings.IGNORE_EXPLICIT_DISCRIMINATOR_COLUMNS_FOR_JOINED_SUBCLASS
public boolean createImplicitDiscriminatorsForJoinedInheritance()
MetadataBuildingOptions
createImplicitDiscriminatorsForJoinedInheritance
in interface MetadataBuildingOptions
true
indicates we should do discrimination; false
we should not.MetadataBuilder.enableImplicitDiscriminatorsForJoinedSubclassSupport(boolean)
,
AvailableSettings.IMPLICIT_DISCRIMINATOR_COLUMNS_FOR_JOINED_SUBCLASS
public boolean shouldImplicitlyForceDiscriminatorInSelect()
MetadataBuildingOptions
shouldImplicitlyForceDiscriminatorInSelect
in interface MetadataBuildingOptions
true
indicates we should force the discriminator in selects for any mappings
which do not say explicitly.AvailableSettings.FORCE_DISCRIMINATOR_IN_SELECTS_BY_DEFAULT
public boolean useNationalizedCharacterData()
MetadataBuildingOptions
useNationalizedCharacterData
in interface MetadataBuildingOptions
true
if nationalized character data should be used by default; false
otherwise.MetadataBuilder.enableGlobalNationalizedCharacterDataSupport(boolean)
,
AvailableSettings.USE_NATIONALIZED_CHARACTER_DATA
public boolean isSpecjProprietarySyntaxEnabled()
isSpecjProprietarySyntaxEnabled
in interface MetadataBuildingOptions
public List<MetadataSourceType> getSourceProcessOrdering()
MetadataBuildingOptions
getSourceProcessOrdering
in interface MetadataBuildingOptions
public Map<String,SQLFunction> getSqlFunctions()
MetadataBuildingOptions
getSqlFunctions
in interface MetadataBuildingOptions
public List<AuxiliaryDatabaseObject> getAuxiliaryDatabaseObjectList()
MetadataBuildingOptions
getAuxiliaryDatabaseObjectList
in interface MetadataBuildingOptions
public List<AttributeConverterDefinition> getAttributeConverters()
getAttributeConverters
in interface MetadataBuildingOptions
public void addAttributeConverterDefinition(AttributeConverterDefinition definition)
public void apply(JpaOrmXmlPersistenceUnitDefaultAware.JpaOrmXmlPersistenceUnitDefaults jpaOrmXmlPersistenceUnitDefaults)
orm.xml
mappings. Forget that there are generally multiple
orm.xml
mappings if using XML approach... Ughapply
in interface JpaOrmXmlPersistenceUnitDefaultAware
jpaOrmXmlPersistenceUnitDefaults
- The persistence-unit-defaults
valuesCopyright © 2001-2017 Red Hat, Inc. All Rights Reserved.