MetadataBuilderImplementor
MetadataBuilderImplementor using delegation.
| Modifier and Type | Field and Description |
|---|---|
| private final MetadataBuilderImplementor |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public MetadataBuilder | applyAccessType(AccessType
The access-type to use as default. accessType)Implements org. |
| public MetadataBuilder | applyArchiveDescriptorFactory(ArchiveDescriptorFactory
The ArchiveDescriptorFactory to use. factory)Implements org. |
| public MetadataBuilder | applyAttributeConverter(AttributeConverterDefinition
The definition definition)Implements org.
Deprecated
as a consequence of
Adds an AttributeConverter by an AttributeConverterDefinition
AttributeConverterDefinition being deprecated.
|
| public MetadataBuilder | applyAttributeConverter(Class<? extends AttributeConverter<X, Y>>
The AttributeConverter class. attributeConverterClass)Implements org. |
| public MetadataBuilder | applyAttributeConverter(Class<? extends AttributeConverter<X, Y>>
The AttributeConverter class. attributeConverterClass, boolean Should the AttributeConverter be auto applied to property types as specified
by its "entity attribute" parameterized type? autoApply)Implements org. |
| public MetadataBuilder | applyAttributeConverter(AttributeConverter<X, Y>
The AttributeConverter instance. attributeConverter)Implements org. |
| public MetadataBuilder | applyAttributeConverter(AttributeConverter<X, Y>
The AttributeConverter instance. attributeConverter, boolean Should the AttributeConverter be auto applied to property types as specified
by its "entity attribute" parameterized type? autoApply)Implements org. |
| public MetadataBuilder | applyAuxiliaryDatabaseObject(AuxiliaryDatabaseObject auxiliaryDatabaseObject)
Implements org. |
| public MetadataBuilder | applyBasicType(BasicType
The type addition or override. type)Implements org. |
| public MetadataBuilder | applyBasicType(BasicType
The type addition or override. type, String... The keys under which to register the basic type. keys)Implements org. |
| public MetadataBuilder | applyBasicType(UserType
The custom type type, String... The keys under which to register the custom type. keys)Implements org. |
| public MetadataBuilder | applyBasicType(CompositeUserType
The composite custom type type, String... The keys under which to register the composite custom type. keys)Implements org. |
| public MetadataBuilder | applyCacheRegionDefinition(CacheRegionDefinition
The cache region definition to apply cacheRegionDefinition)Implements org. |
| public MetadataBuilder | |
| public MetadataBuilder | applyImplicitCatalogName(String
The implicit catalog name implicitCatalogName)Implements org. |
| public MetadataBuilder | applyImplicitNamingStrategy(ImplicitNamingStrategy
The ImplicitNamingStrategy to apply namingStrategy)Implements org. |
| public MetadataBuilder | applyImplicitSchemaName(String
The implicit schema name implicitSchemaName)Implements org. |
| public MetadataBuilder | applyIndexView(IndexView
The Jandex index to use. jandexView)Implements org. |
| public MetadataBuilder | applyPhysicalNamingStrategy(PhysicalNamingStrategy
The PhysicalNamingStrategy to apply namingStrategy)Implements org. |
| public MetadataBuilder | applyScanEnvironment(ScanEnvironment
The environment for scanning scanEnvironment)Implements org. ScanEnvironment
|
| public MetadataBuilder | applyScanner(Scanner
The scanner to use. scanner)Implements org. |
| public MetadataBuilder | applyScanOptions(ScanOptions
The scan options. scanOptions)Implements org. |
| public MetadataBuilder | applySharedCacheMode(SharedCacheMode
The cache mode. cacheMode)Implements org. |
| public MetadataBuilder | applySourceProcessOrdering(MetadataSourceType...
The types, in the order they should be processed sourceTypes)Implements org. |
| public MetadataBuilder | applySqlFunction(String functionName, SQLFunction function)
Implements org. |
| public MetadataBuilder | applyTempClassLoader(ClassLoader
ClassLoader for use during building the Metadata tempClassLoader)Implements org. |
| public MetadataBuilder | applyTypes(TypeContributor
The contributor to apply typeContributor)Implements org. |
| public Metadata | |
| protected MetadataBuilderImplementor | |
| public MetadataBuilder | enableExplicitDiscriminatorsForJoinedSubclassSupport(boolean
Should processing (not ignoring) explicit discriminators be
enabled? enabled)Implements org. |
| public MetadataBuilder | enableGlobalNationalizedCharacterDataSupport(boolean
true says to use nationalized variants; false
says to use the non-nationalized variants.Implements org. |
| public MetadataBuilder | enableImplicitDiscriminatorsForJoinedSubclassSupport(boolean
Should we implicitly create discriminator for joined
inheritance if one is not explicitly mentioned? enabled)Implements org. enableExplicitDiscriminatorsForJoinedSubclassSupport,
but here how should we treat joined inheritance when there is no explicitly
defined discriminator annotations?
|
| public MetadataBuilder | enableImplicitForcingOfDiscriminatorsInSelect(boolean
true indicates we will force the discriminator into the select;
false indicates we will not.Implements org. |
| public MetadataBuilder | enableNewIdentifierGeneratorSupport(boolean
true to enable; false to disable; don't call for
default.Implements org. |
| public MetadataBuilderImplementor | getDelegate()
Deprecated
use
Kept for compatibility reason but should be removed as soon as possible.
delegate() instead
|
| public MetadataBuildingOptions | getMetadataBuildingOptions()
Implements org. |
| protected abstract T | |
| public <M extends MetadataBuilder> M | unwrap(Class<M> type)
Implements org. |
| delegate | back to summary |
|---|---|
| private final MetadataBuilderImplementor delegate | |
| AbstractDelegatingMetadataBuilderImplementor | back to summary |
|---|---|
| public AbstractDelegatingMetadataBuilderImplementor(MetadataBuilderImplementor delegate) | |
| applyAccessType | back to summary |
|---|---|
| public MetadataBuilder applyAccessType(AccessType accessType) Implements org. Doc from org. Specify the second-level access-type to be used by default for entities and collections that define second-level caching, but do not specify a granular access-type.
Its default is defined by the
| |
| applyArchiveDescriptorFactory | back to summary |
|---|---|
| public MetadataBuilder applyArchiveDescriptorFactory(ArchiveDescriptorFactory factory) Implements org. Doc from org. Specify a particular ArchiveDescriptorFactory instance to use in scanning.
Its default is defined by the
| |
| applyAttributeConverter | back to summary |
|---|---|
| public MetadataBuilder applyAttributeConverter(AttributeConverterDefinition definition) Implements org. Doc from org. Deprecated as a consequence of Adds an AttributeConverter by an AttributeConverterDefinition
| |
| applyAttributeConverter | back to summary |
|---|---|
| public MetadataBuilder applyAttributeConverter(Class<? extends AttributeConverter<X, Y>> attributeConverterClass) Implements org. Doc from org. Adds an AttributeConverter by its Class.
| |
| applyAttributeConverter | back to summary |
|---|---|
| public MetadataBuilder applyAttributeConverter(Class<? extends AttributeConverter<X, Y>> attributeConverterClass, boolean autoApply) Implements org. Doc from org. Adds an AttributeConverter by its Class plus a boolean indicating whether to auto apply it.
| |
| applyAttributeConverter | back to summary |
|---|---|
| public MetadataBuilder applyAttributeConverter(AttributeConverter<X, Y> attributeConverter) Implements org. Doc from org. Adds an AttributeConverter instance.
| |
| applyAttributeConverter | back to summary |
|---|---|
| public MetadataBuilder applyAttributeConverter(AttributeConverter<X, Y> attributeConverter, boolean autoApply) Implements org. Doc from org. Adds an AttributeConverter instance, explicitly indicating whether to auto-apply.
| |
| applyAuxiliaryDatabaseObject | back to summary |
|---|---|
| public MetadataBuilder applyAuxiliaryDatabaseObject(AuxiliaryDatabaseObject auxiliaryDatabaseObject) Implements org.
| |
| applyBasicType | back to summary |
|---|---|
| public MetadataBuilder applyBasicType(BasicType type) Implements org. Doc from org. Specify an additional or overridden basic type mapping.
| |
| applyBasicType | back to summary |
|---|---|
| public MetadataBuilder applyBasicType(BasicType type, String... keys) Implements org. Doc from org. Specify an additional or overridden basic type mapping supplying specific registration keys.
| |
| applyBasicType | back to summary |
|---|---|
| public MetadataBuilder applyBasicType(UserType type, String... keys) Implements org. Doc from org. Register an additional or overridden custom type mapping.
| |
| applyBasicType | back to summary |
|---|---|
| public MetadataBuilder applyBasicType(CompositeUserType type, String... keys) Implements org. Doc from org. Register an additional or overridden composite custom type mapping.
| |
| applyCacheRegionDefinition | back to summary |
|---|---|
| public MetadataBuilder applyCacheRegionDefinition(CacheRegionDefinition cacheRegionDefinition) Implements org. Doc from org. Apply a CacheRegionDefinition to be applied to an entity, collection or query while building the Metadata object.
| |
| applyIdGenerationTypeInterpreter | back to summary |
|---|---|
| public MetadataBuilder applyIdGenerationTypeInterpreter(IdGeneratorStrategyInterpreter interpreter) Implements org.
| |
| applyImplicitCatalogName | back to summary |
|---|---|
| public MetadataBuilder applyImplicitCatalogName(String implicitCatalogName) Implements org. Doc from org. Specify the implicit catalog name to apply to any unqualified database names.
Its default is defined by the
| |
| applyImplicitNamingStrategy | back to summary |
|---|---|
| public MetadataBuilder applyImplicitNamingStrategy(ImplicitNamingStrategy namingStrategy) Implements org. Doc from org. Specify the ImplicitNamingStrategy to use in building the Metadata.
Its default is defined by the
| |
| applyImplicitSchemaName | back to summary |
|---|---|
| public MetadataBuilder applyImplicitSchemaName(String implicitSchemaName) Implements org. Doc from org. Specify the implicit schema name to apply to any unqualified database names.
Its default is defined by the
| |
| applyIndexView | back to summary |
|---|---|
| public MetadataBuilder applyIndexView(IndexView jandexView) Implements org. Doc from org. Allows specifying a specific Jandex index to use for reading annotation information. It is important to understand that if a Jandex index is passed in, it is expected that this Jandex index already contains all entries for all classes. No additional indexing will be done in this case. NOTE : Here for future expansion. At the moment the passed Jandex index is not used.
| |
| applyPhysicalNamingStrategy | back to summary |
|---|---|
| public MetadataBuilder applyPhysicalNamingStrategy(PhysicalNamingStrategy namingStrategy) Implements org. Doc from org. Specify the PhysicalNamingStrategy to use in building the Metadata.
Its default is defined by the
| |
| applyScanEnvironment | back to summary |
|---|---|
| public MetadataBuilder applyScanEnvironment(ScanEnvironment scanEnvironment) Implements org. Doc from org. Consider this temporary as discussed on
| |
| applyScanner | back to summary |
|---|---|
| public MetadataBuilder applyScanner(Scanner scanner) Implements org. Doc from org. Specify a particular Scanner instance to use.
Its default is defined by the
| |
| applyScanOptions | back to summary |
|---|---|
| public MetadataBuilder applyScanOptions(ScanOptions scanOptions) Implements org. Doc from org. Specify the options to be used in performing scanning.
| |
| applySharedCacheMode | back to summary |
|---|---|
| public MetadataBuilder applySharedCacheMode(SharedCacheMode cacheMode) Implements org. Doc from org. Specify the second-level cache mode to be used. This is the cache mode in terms of whether or not to cache.
Its default is defined by the
| |
| applySourceProcessOrdering | back to summary |
|---|---|
| public MetadataBuilder applySourceProcessOrdering(MetadataSourceType... sourceTypes) Implements org. Doc from org. Apply a specific ordering to the processing of sources. Note that unlike most of the methods on this contract that deal with multiple values internally, this one *replaces* any already set (its more a setter) instead of adding to.
Its default is defined by the
| |
| applySqlFunction | back to summary |
|---|---|
| public MetadataBuilder applySqlFunction(String functionName, SQLFunction function) Implements org.
| |
| applyTempClassLoader | back to summary |
|---|---|
| public MetadataBuilder applyTempClassLoader(ClassLoader tempClassLoader) Implements org. Doc from org. Apply a ClassLoader for use while building the Metadata.
Ideally we should avoid accessing ClassLoaders when perform 1st phase of bootstrap. This
is a ClassLoader that can be used in cases when we have to. IN EE managed environments, this
is the ClassLoader mandated by
| |
| applyTypes | back to summary |
|---|---|
| public MetadataBuilder applyTypes(TypeContributor typeContributor) Implements org. Doc from org. Apply an explicit TypeContributor (implicit application via ServiceLoader will still happen too)
| |
| build | back to summary |
|---|---|
| public Metadata build() Implements org. Doc from org. Actually build the metamodel | |
| delegate | back to summary |
|---|---|
| protected MetadataBuilderImplementor delegate() | |
| enableExplicitDiscriminatorsForJoinedSubclassSupport | back to summary |
|---|---|
| public MetadataBuilder enableExplicitDiscriminatorsForJoinedSubclassSupport(boolean enabled) Implements org. Doc from org. Should we process or ignore explicitly defined discriminators in the case of joined-subclasses. The legacy behavior of Hibernate was to ignore the discriminator annotations because Hibernate (unlike some providers) does not need discriminators to determine the concrete type when it comes to joined inheritance. However, for portability reasons we do now allow using explicit discriminators along with joined inheritance. It is configurable though to support legacy apps.
Its default is defined by the
| |
| enableGlobalNationalizedCharacterDataSupport | back to summary |
|---|---|
| public MetadataBuilder enableGlobalNationalizedCharacterDataSupport(boolean enabled) Implements org. Doc from org. Should nationalized variants of character data be used in the database types? For example, should
Its default is defined by the
| |
| enableImplicitDiscriminatorsForJoinedSubclassSupport | back to summary |
|---|---|
| public MetadataBuilder enableImplicitDiscriminatorsForJoinedSubclassSupport(boolean enabled) Implements org. Doc from org. Similarly to Again the premise here is JPA portability, bearing in mind that some JPA provider need these discriminators.
Its default is defined by the
| |
| enableImplicitForcingOfDiscriminatorsInSelect | back to summary |
|---|---|
| public MetadataBuilder enableImplicitForcingOfDiscriminatorsInSelect(boolean supported) Implements org. Doc from org. For entities which do not explicitly say, should we force discriminators into
SQL selects? The (historical) default is
Its default is defined by the
| |
| enableNewIdentifierGeneratorSupport | back to summary |
|---|---|
| public MetadataBuilder enableNewIdentifierGeneratorSupport(boolean enable) Implements org. Doc from org. Should we enable support for the "new" (since 3.2) identifier generator mappings for handling:
Its default is defined by the
| |
| getDelegate | back to summary |
|---|---|
| public MetadataBuilderImplementor getDelegate()
Deprecated use Kept for compatibility reason but should be removed as soon as possible.
| |
| getMetadataBuildingOptions | back to summary |
|---|---|
| public MetadataBuildingOptions getMetadataBuildingOptions() Implements org. Doc from org. Get the options being collected on this MetadataBuilder that will ultimately be used in building the Metadata.
| |
| getThis | back to summary |
|---|---|
| protected abstract T getThis() Returns a specific implementation. See the What is the "getThis trick?". | |
| unwrap | back to summary |
|---|---|
| public <M extends MetadataBuilder> M unwrap(Class<M> type) Implements org. Doc from org. Allows unwrapping this builder as another, more specific type.
| |