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(ConverterDescriptor
The descriptor descriptor)Implements org. ConverterDescriptor
|
| public <O, R> MetadataBuilder | applyAttributeConverter(Class<? extends AttributeConverter<O, R>>
The AttributeConverter class. attributeConverterClass)Implements org. |
| public <O, R> MetadataBuilder | applyAttributeConverter(Class<? extends AttributeConverter<O, R>>
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. AttributeConverter by Class,
explicitly indicating whether to auto-apply it.
|
| 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. AttributeConverter instance,
explicitly indicating whether to auto-apply it.
|
| public MetadataBuilder | applyAuxiliaryDatabaseObject(AuxiliaryDatabaseObject auxiliaryDatabaseObject)
Implements org. AuxiliaryDatabaseObject.
|
| 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 | applyCacheRegionDefinition(CacheRegionDefinition
The cache region definition to apply cacheRegionDefinition)Implements org. CacheRegionDefinition to be applied to an entity, collection,
or query while building the Metadata object.
|
| public MetadataBuilder | applyColumnOrderingStrategy(ColumnOrderingStrategy columnOrderingStrategy)
Implements org. ColumnOrderingStrategy.
|
| public MetadataBuilder | applyFunctions(FunctionContributor
The contributor to apply functionContributor)Implements org. FunctionContributor
(implicit application via java. will still happen too)
|
| public MetadataBuilder | applyImplicitCatalogName(String
The implicit catalog name implicitCatalogName)Implements org. |
| public MetadataBuilder | applyImplicitNamingStrategy(ImplicitNamingStrategy namingStrategy)
Implements org. ImplicitNamingStrategy.
|
| 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 namingStrategy)
Implements org. PhysicalNamingStrategy.
|
| 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.
Deprecated
as a consequence of
Apply a specific ordering to the processing of sources.
MetadataSourceType being deprecated.
|
| public MetadataBuilder | applySqlFunction(String functionName, SqmFunctionDescriptor function)
Implements org. SqmFunctionDescriptor to HQL.
|
| public MetadataBuilder | applyTempClassLoader(ClassLoader
ClassLoader for use while building the MetadataImplements org. ClassLoader for use while building the Metadata.
|
| public MetadataBuilder | applyTypes(TypeContributor
The contributor to apply typeContributor)Implements org. TypeContributor
(implicit application via java. will still happen too)
|
| public Metadata | build()
Implements org.
Deprecated
as a consequence of
Actually build the metamodel
Metadata being deprecated.
|
| 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 MetadataBuildingOptions | getMetadataBuildingOptions()
Implements org. |
| protected abstract T |
| 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 hibernate.cache.default_cache_concurrency_strategy setting if using property-based configuration.
| |
| 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 hibernate.archive.interpreter setting if using property-based configuration.
| |
| applyAttributeConverter | back to summary |
|---|---|
| public MetadataBuilder applyAttributeConverter(ConverterDescriptor descriptor) Implements org. Doc from org. Adds an AttributeConverter by a
| |
| applyAttributeConverter | back to summary |
|---|---|
| public <O, R> MetadataBuilder applyAttributeConverter(Class<? extends AttributeConverter<O, R>> attributeConverterClass) Implements org. Doc from org. Adds an AttributeConverter by its Class.
| |
| applyAttributeConverter | back to summary |
|---|---|
| public <O, R> MetadataBuilder applyAttributeConverter(Class<? extends AttributeConverter<O, R>> attributeConverterClass, boolean autoApply) Implements org. Doc from org. Adds an
| |
| 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
| |
| applyAuxiliaryDatabaseObject | back to summary |
|---|---|
| public MetadataBuilder applyAuxiliaryDatabaseObject(AuxiliaryDatabaseObject auxiliaryDatabaseObject) Implements org. Doc from org. Contribute an
| |
| 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.
| |
| applyCacheRegionDefinition | back to summary |
|---|---|
| public MetadataBuilder applyCacheRegionDefinition(CacheRegionDefinition cacheRegionDefinition) Implements org. Doc from org. Apply a
| |
| applyColumnOrderingStrategy | back to summary |
|---|---|
| public MetadataBuilder applyColumnOrderingStrategy(ColumnOrderingStrategy columnOrderingStrategy) Implements org. Doc from org. Specify the Its default is defined by the hibernate.column_ordering_strategy setting if using property-based configuration.
| |
| applyFunctions | back to summary |
|---|---|
| public MetadataBuilder applyFunctions(FunctionContributor functionContributor) Implements org. Doc from org. Apply an explicit
| |
| 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 hibernate.default_catalog setting if using property-based configuration.
| |
| applyImplicitNamingStrategy | back to summary |
|---|---|
| public MetadataBuilder applyImplicitNamingStrategy(ImplicitNamingStrategy namingStrategy) Implements org. Doc from org. Specify the Its default is defined by the hibernate.implicit_naming_strategy setting if using property-based configuration.
| |
| 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 hibernate.default_schema setting if using property-based configuration.
| |
| 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's 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.
| |
| applyPhysicalNamingStrategy | back to summary |
|---|---|
| public MetadataBuilder applyPhysicalNamingStrategy(PhysicalNamingStrategy namingStrategy) Implements org. Doc from org. Specify the Its default is defined by the hibernate.physical_naming_strategy setting if using property-based configuration.
| |
| 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 hibernate.archive.scanner setting if using property-based configuration.
| |
| 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.
Its default is defined by the
| |
| applySourceProcessOrdering | back to summary |
|---|---|
| public MetadataBuilder applySourceProcessOrdering(MetadataSourceType... sourceTypes) Implements org. Doc from org. Deprecated as a consequence of Apply a specific ordering to the processing of sources. Unlike most of the methods of this interface (which deal with multiple values internally), this one replaces any source processing order that was already set. Its default is defined by the hibernate.mapping.precedence setting if using property-based configuration.
| |
| applySqlFunction | back to summary |
|---|---|
| public MetadataBuilder applySqlFunction(String functionName, SqmFunctionDescriptor function) Implements org. Doc from org. Contribute a
| |
| applyTempClassLoader | back to summary |
|---|---|
| public MetadataBuilder applyTempClassLoader(ClassLoader tempClassLoader) Implements org. Doc from org. Apply a
Ideally we should avoid accessing
In EE managed environments, this is the
In other environments, pass a
| |
| applyTypes | back to summary |
|---|---|
| public MetadataBuilder applyTypes(TypeContributor typeContributor) Implements org. Doc from org. Apply an explicit
| |
| build | back to summary |
|---|---|
| public Metadata build() Implements org. Doc from org. Deprecated as a consequence of 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 hibernate.discriminator.ignore_explicit_for_joined setting if using property-based configuration.
| |
| 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 hibernate.use_nationalized_character_data setting if using property-based configuration.
| |
| 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 hibernate.discriminator.implicit_for_joined setting if using property-based configuration.
| |
| 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 hibernate.discriminator.force_in_select setting if using property-based configuration.
| |
| 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?". | |