Class HibernateOrmExtension
- All Implemented Interfaces:
FromDocumentFieldValueConvertContextExtension<HibernateOrmSessionContext>
,FromDocumentValueConvertContextExtension<HibernateOrmSessionContext>
,ToDocumentFieldValueConvertContextExtension<HibernateOrmMappingContext>
,ToDocumentValueConvertContextExtension<HibernateOrmMappingContext>
,IdentifierBridgeFromDocumentIdentifierContextExtension<HibernateOrmSessionContext>
,IdentifierBridgeToDocumentIdentifierContextExtension<HibernateOrmMappingContext>
,PropertyBridgeWriteContextExtension<HibernateOrmSessionContext>
,RoutingBridgeRouteContextExtension<HibernateOrmSessionContext>
,TypeBridgeWriteContextExtension<HibernateOrmSessionContext>
,ValueBridgeFromIndexedValueContextExtension<HibernateOrmSessionContext>
,ValueBridgeToIndexedValueContextExtension<HibernateOrmMappingContext>
WARNING: while this type is API, because instances should be manipulated by users, all of its methods are considered SPIs and therefore should never be called directly by users. In short, users are only expected to get instances of this type from an API and pass it to another API.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionextendOptional
(FromDocumentFieldValueConvertContext original, BackendSessionContext sessionContext) Deprecated.extendOptional
(FromDocumentValueConvertContext original, BackendSessionContext sessionContext) Attempt to extend a given context, returning an emptyOptional
in case of failure.extendOptional
(ToDocumentFieldValueConvertContext original, BackendMappingContext mappingContext) Deprecated.UseToDocumentFieldValueConverter
andToDocumentFieldValueConvertContext
instead.extendOptional
(ToDocumentValueConvertContext original, BackendMappingContext mappingContext) Attempt to extend a given context, returning an emptyOptional
in case of failure.extendOptional
(IdentifierBridgeFromDocumentIdentifierContext original, BridgeSessionContext sessionContext) Attempt to extend a given context, returning an emptyOptional
in case of failure.extendOptional
(IdentifierBridgeToDocumentIdentifierContext original, BridgeMappingContext mappingContext) Attempt to extend a given context, returning an emptyOptional
in case of failure.extendOptional
(PropertyBridgeWriteContext original, BridgeSessionContext sessionContext) Attempt to extend a given context, returning an emptyOptional
in case of failure.extendOptional
(RoutingBridgeRouteContext original, BridgeSessionContext sessionContext) Attempt to extend a given context, returning an emptyOptional
in case of failure.extendOptional
(TypeBridgeWriteContext original, BridgeSessionContext sessionContext) Attempt to extend a given context, returning an emptyOptional
in case of failure.extendOptional
(ValueBridgeFromIndexedValueContext original, BridgeSessionContext sessionContext) Attempt to extend a given context, returning an emptyOptional
in case of failure.extendOptional
(ValueBridgeToIndexedValueContext original, BridgeMappingContext mappingContext) Attempt to extend a given context, returning an emptyOptional
in case of failure.static HibernateOrmExtension
get()
-
Method Details
-
get
-
extendOptional
public Optional<HibernateOrmMappingContext> extendOptional(IdentifierBridgeToDocumentIdentifierContext original, BridgeMappingContext mappingContext) Attempt to extend a given context, returning an emptyOptional
in case of failure.WARNING: this method is not API, see comments at the type level.
- Specified by:
extendOptional
in interfaceIdentifierBridgeToDocumentIdentifierContextExtension<HibernateOrmMappingContext>
- Parameters:
original
- The original, non-extendedIdentifierBridgeToDocumentIdentifierContext
.mappingContext
- ABridgeMappingContext
.- Returns:
- An optional containing the extended context (
IdentifierBridgeToDocumentIdentifierContextExtension
) in case of success, or an empty optional otherwise.
-
extendOptional
public Optional<HibernateOrmSessionContext> extendOptional(IdentifierBridgeFromDocumentIdentifierContext original, BridgeSessionContext sessionContext) Attempt to extend a given context, returning an emptyOptional
in case of failure.WARNING: this method is not API, see comments at the type level.
- Specified by:
extendOptional
in interfaceIdentifierBridgeFromDocumentIdentifierContextExtension<HibernateOrmSessionContext>
- Parameters:
original
- The original, non-extendedIdentifierBridgeFromDocumentIdentifierContext
.sessionContext
- ABridgeSessionContext
.- Returns:
- An optional containing the extended context (
IdentifierBridgeFromDocumentIdentifierContextExtension
) in case of success, or an empty optional otherwise.
-
extendOptional
public Optional<HibernateOrmSessionContext> extendOptional(RoutingBridgeRouteContext original, BridgeSessionContext sessionContext) Attempt to extend a given context, returning an emptyOptional
in case of failure.WARNING: this method is not API, see comments at the type level.
- Specified by:
extendOptional
in interfaceRoutingBridgeRouteContextExtension<HibernateOrmSessionContext>
- Parameters:
original
- The original, non-extendedRoutingBridgeRouteContext
.sessionContext
- ABridgeSessionContext
.- Returns:
- An optional containing the extended context (
RoutingBridgeRouteContextExtension
) in case of success, or an empty optional otherwise.
-
extendOptional
public Optional<HibernateOrmSessionContext> extendOptional(TypeBridgeWriteContext original, BridgeSessionContext sessionContext) Attempt to extend a given context, returning an emptyOptional
in case of failure.WARNING: this method is not API, see comments at the type level.
- Specified by:
extendOptional
in interfaceTypeBridgeWriteContextExtension<HibernateOrmSessionContext>
- Parameters:
original
- The original, non-extendedTypeBridgeWriteContext
.sessionContext
- ABridgeSessionContext
.- Returns:
- An optional containing the extended context (
TypeBridgeWriteContextExtension
) in case of success, or an empty optional otherwise.
-
extendOptional
public Optional<HibernateOrmSessionContext> extendOptional(PropertyBridgeWriteContext original, BridgeSessionContext sessionContext) Attempt to extend a given context, returning an emptyOptional
in case of failure.WARNING: this method is not API, see comments at the type level.
- Specified by:
extendOptional
in interfacePropertyBridgeWriteContextExtension<HibernateOrmSessionContext>
- Parameters:
original
- The original, non-extendedPropertyBridgeWriteContext
.sessionContext
- ABridgeSessionContext
.- Returns:
- An optional containing the extended context (
PropertyBridgeWriteContextExtension
) in case of success, or an empty optional otherwise.
-
extendOptional
public Optional<HibernateOrmMappingContext> extendOptional(ValueBridgeToIndexedValueContext original, BridgeMappingContext mappingContext) Attempt to extend a given context, returning an emptyOptional
in case of failure.WARNING: this method is not API, see comments at the type level.
- Specified by:
extendOptional
in interfaceValueBridgeToIndexedValueContextExtension<HibernateOrmMappingContext>
- Parameters:
original
- The original, non-extendedValueBridgeToIndexedValueContext
.mappingContext
- ABridgeMappingContext
.- Returns:
- An optional containing the extended context (
ValueBridgeToIndexedValueContextExtension
) in case of success, or an empty optional otherwise.
-
extendOptional
public Optional<HibernateOrmSessionContext> extendOptional(ValueBridgeFromIndexedValueContext original, BridgeSessionContext sessionContext) Attempt to extend a given context, returning an emptyOptional
in case of failure.WARNING: this method is not API, see comments at the type level.
- Specified by:
extendOptional
in interfaceValueBridgeFromIndexedValueContextExtension<HibernateOrmSessionContext>
- Parameters:
original
- The original, non-extendedValueBridgeToIndexedValueContext
.sessionContext
- ABridgeSessionContext
.- Returns:
- An optional containing the extended context (
ValueBridgeFromIndexedValueContextExtension
) in case of success, or an empty optional otherwise.
-
extendOptional
@Deprecated public Optional<HibernateOrmMappingContext> extendOptional(ToDocumentFieldValueConvertContext original, BackendMappingContext mappingContext) Deprecated.UseToDocumentFieldValueConverter
andToDocumentFieldValueConvertContext
instead.Attempt to extend a given context, returning an emptyOptional
in case of failure.WARNING: this method is not API, see comments at the type level.
- Specified by:
extendOptional
in interfaceToDocumentFieldValueConvertContextExtension<HibernateOrmMappingContext>
- Parameters:
original
- The original, non-extendedToDocumentFieldValueConvertContext
.mappingContext
- ABackendMappingContext
.- Returns:
- An optional containing the extended context (
ToDocumentFieldValueConvertContextExtension
) in case of success, or an empty optional otherwise.
-
extendOptional
public Optional<HibernateOrmMappingContext> extendOptional(ToDocumentValueConvertContext original, BackendMappingContext mappingContext) Attempt to extend a given context, returning an emptyOptional
in case of failure.WARNING: this method is not API, see comments at the type level.
- Specified by:
extendOptional
in interfaceToDocumentFieldValueConvertContextExtension<HibernateOrmMappingContext>
- Specified by:
extendOptional
in interfaceToDocumentValueConvertContextExtension<HibernateOrmMappingContext>
- Parameters:
original
- The original, non-extendedToDocumentValueConvertContext
.mappingContext
- ABackendMappingContext
.- Returns:
- An optional containing the extended context (
ToDocumentValueConvertContextExtension
) in case of success, or an empty optional otherwise.
-
extendOptional
@Deprecated public Optional<HibernateOrmSessionContext> extendOptional(FromDocumentFieldValueConvertContext original, BackendSessionContext sessionContext) Deprecated.UseFromDocumentValueConverter
andFromDocumentValueConvertContext
instead.Attempt to extend a given context, returning an emptyOptional
in case of failure.WARNING: this method is not API, see comments at the type level.
- Specified by:
extendOptional
in interfaceFromDocumentFieldValueConvertContextExtension<HibernateOrmSessionContext>
- Parameters:
original
- The original, non-extendedFromDocumentFieldValueConvertContext
.sessionContext
- ABackendSessionContext
.- Returns:
- An optional containing the extended context (
FromDocumentFieldValueConvertContextExtension
) in case of success, or an empty optional otherwise.
-
extendOptional
public Optional<HibernateOrmSessionContext> extendOptional(FromDocumentValueConvertContext original, BackendSessionContext sessionContext) Attempt to extend a given context, returning an emptyOptional
in case of failure.WARNING: this method is not API, see comments at the type level.
- Specified by:
extendOptional
in interfaceFromDocumentFieldValueConvertContextExtension<HibernateOrmSessionContext>
- Specified by:
extendOptional
in interfaceFromDocumentValueConvertContextExtension<HibernateOrmSessionContext>
- Parameters:
original
- The original, non-extendedFromDocumentValueConvertContext
.sessionContext
- ABackendSessionContext
.- Returns:
- An optional containing the extended context (
FromDocumentValueConvertContextExtension
) in case of success, or an empty optional otherwise.
-
FromDocumentValueConverter
andFromDocumentValueConvertContext
instead.